* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #34495e;
}

.nav-menu a.logout {
    background-color: #e74c3c;
}

.nav-menu a.logout:hover {
    background-color: #c0392b;
}

.user-info {
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.credentials-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
}

.credentials-info code {
    background-color: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: monospace;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group label .optional {
    color: #7f8c8d;
    font-weight: normal;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 0.3rem;
    display: none;
}

.resultado-item {
    padding: 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.resultado-item:hover {
    background-color: #f8f9fa;
}

.resultado-item:last-child {
    border-bottom: none;
}

.resultado-item strong {
    color: #2c3e50;
}

.resultado-item small {
    color: #7f8c8d;
}

.resultado-item .preco {
    color: #27ae60;
    font-weight: bold;
}

.resultado-item .estoque {
    color: #7f8c8d;
}

.no-results,
.error-results {
    padding: 1rem;
    text-align: center;
    color: #7f8c8d;
}

/* Produto Info */
.produto-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border: 2px solid #3498db;
}

.produto-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.produto-detalhes {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.produto-detalhes p {
    margin-bottom: 0.5rem;
}

#produto-imagem-container img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #229954;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-info {
    background-color: #16a085;
    color: white;
}

.btn-info:hover {
    background-color: #138d75;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dashboard h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 3rem;
}

.card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-number {
    font-size: 2rem;
    font-weight: bold;
}

.quick-actions {
    margin-top: 2rem;
}

.quick-actions h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.actions-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tables */
.table {
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table thead {
    background-color: #2c3e50;
    color: white;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #e9ecef;
}

.text-center {
    text-align: center;
}

/* Badges */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    color: white;
}

.produtos-page,
.historico-page {
    background-color: transparent;
}

/* Form Page */
.form-page {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-page h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.product-form {
    max-width: 600px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Venda Info */
.venda-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.venda-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.venda-info .total {
    font-size: 1.5rem;
    color: #27ae60;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: white;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .actions-buttons {
        flex-direction: column;
    }
    
    .produto-detalhes {
        flex-direction: column;
    }
}

/* ==================== PDV STYLES ==================== */

.pdv-container {
    background-color: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: 80vh;
}

.pdv-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.pdv-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.pdv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    min-height: 70vh;
}

/* Lado Esquerdo */
.pdv-left {
    border-right: 2px solid #ecf0f1;
    padding-right: 2rem;
}

.busca-section {
    margin-bottom: 2rem;
    position: relative;
}

.busca-section label {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.busca-section input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #3498db;
    border-radius: 8px;
    transition: all 0.3s;
}

.busca-section input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.search-results-pdv {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #3498db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
}

.resultado-item-pdv {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s;
}

.resultado-item-pdv:hover {
    background-color: #e8f4f8;
}

.resultado-item-pdv strong {
    color: #2c3e50;
    font-size: 1.05rem;
}

.resultado-item-pdv .preco-pdv {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

.no-results-pdv {
    padding: 1rem;
    text-align: center;
    color: #7f8c8d;
}

/* Detalhes do Produto */
.produto-detalhes-pdv {
    display: flex;
    gap: 2rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ecf0f1;
}

.produto-imagem-pdv {
    flex-shrink: 0;
}

.produto-imagem-pdv img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    background-color: white;
}

.produto-info-pdv {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-row label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
}

.info-row input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

.info-row input:read-only {
    background-color: #ecf0f1;
    color: #2c3e50;
    font-weight: bold;
}

.info-row input[type="number"] {
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-adicionar-item {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.btn-adicionar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Lado Direito - Carrinho */
.pdv-right {
    display: flex;
    flex-direction: column;
}

.carrinho-header {
    background-color: #27ae60;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cliente-info {
    font-size: 0.95rem;
}

.carrinho-table {
    flex: 1;
    background-color: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.carrinho-table thead {
    background-color: #34495e;
    color: white;
}

.carrinho-table th {
    padding: 0.8rem;
    text-align: left;
    font-weight: bold;
}

.carrinho-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #ecf0f1;
}

.carrinho-table tbody tr:hover {
    background-color: #f8f9fa;
}

.btn-remover-item {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-remover-item:hover {
    background-color: #c0392b;
}

/* Total do Pedido */
.total-pedido {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.total-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.total-valor {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Ações de Venda */
.acoes-venda {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.btn-limpar {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-limpar:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-finalizar {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-finalizar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
}

.btn-finalizar:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive PDV */
@media (max-width: 1024px) {
    .pdv-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pdv-left {
        border-right: none;
        border-bottom: 2px solid #ecf0f1;
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .produto-detalhes-pdv {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .pdv-header h2 {
        font-size: 1.3rem;
    }
    
    .total-valor {
        font-size: 2rem;
    }
    
    .acoes-venda {
        grid-template-columns: 1fr;
    }
}

/* ==================== IMAGE UPLOAD STYLES ==================== */

.image-upload-section {
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.upload-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.7rem;
    background-color: #ecf0f1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
}

.tab-btn:hover {
    background-color: #bdc3c7;
}

.tab-btn.active:hover {
    background-color: #2980b9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #3498db;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.preview-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ecf0f1;
}

.preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-remover-imagem {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-remover-imagem:hover {
    background-color: #c0392b;
}

/* Placeholder sem imagem no PDV */
.sem-imagem-placeholder {
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    color: #7f8c8d;
    font-size: 3rem;
    text-align: center;
}

.sem-imagem-placeholder br + span {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ==================== LAYOUT GRID PRODUTO ==================== */

.product-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
}

.form-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-right {
    display: flex;
    flex-direction: column;
}

.form-actions-full {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
}

/* Preview Container Lateral */
.preview-container-lateral {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ecf0f1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-container-lateral img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* Placeholder Sem Preview */
.sem-preview-placeholder {
    margin-top: 1rem;
    padding: 3rem;
    background-color: white;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #bdc3c7;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.sem-preview-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* Ajustes para tabs no layout lateral */
.form-right .upload-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-right .tab-content input[type="url"],
.form-right .tab-content input[type="file"] {
    width: 100%;
}

/* Responsive para layout grid */
@media (max-width: 1024px) {
    .product-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-actions-full {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .preview-container-lateral {
        min-height: 200px;
    }
    
    .preview-container-lateral img {
        max-height: 250px;
    }
    
    .sem-preview-placeholder {
        min-height: 200px;
        padding: 2rem;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
}

/* ==================== USUÁRIOS E CONFIGURAÇÕES ==================== */

.usuarios-page {
    background-color: transparent;
}

/* Checkbox personalizado */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 1rem;
    color: #2c3e50;
}

/* Informações de Níveis */
.nivel-info {
    background-color: #f8f9fa;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.nivel-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.nivel-item {
    margin-bottom: 1.5rem;
}

.nivel-item:last-child {
    margin-bottom: 0;
}

.nivel-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.nivel-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.nivel-item ul li {
    padding: 0.3rem 0;
    color: #555;
}

/* Configurações */
.config-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.config-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 2.5rem;
}

.info-content h4 {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

.info-content p {
    margin: 0.3rem 0 0 0;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background-color: white;
    border: 2px solid #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.action-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.feature-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Support Info */
.support-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.support-info p {
    margin: 0.5rem 0;
    color: #555;
}

.support-info strong {
    color: #2c3e50;
}

/* Badge Customizado */
.badge {
    padding: 0.4rem 0.9rem;
}

.badge-danger {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== SISTEMA DE CAIXA ==================== */

.caixa-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.caixa-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.caixa-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.caixa-aberto {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.caixa-fechado {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.caixa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-aberto {
    background-color: rgba(46, 213, 115, 0.3);
    border: 2px solid rgba(46, 213, 115, 0.8);
}

.status-fechado {
    background-color: rgba(235, 87, 87, 0.3);
    border: 2px solid rgba(235, 87, 87, 0.8);
}

.caixa-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.detail-label {
    font-weight: 500;
}

.detail-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.total-vendas {
    color: #ffd700;
    font-size: 1.3rem;
}

.text-success {
    color: #2ecc71;
}

.text-danger {
    color: #e74c3c;
}

.caixa-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.caixa-vazio {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions button {
    flex: 1;
}

/* ==================== RELATÓRIOS ==================== */

.filtros-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filtros-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filtros-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Resumo */
.resumo-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.resumo-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.resumo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.resumo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resumo-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.resumo-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

.resumo-valor {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Vendedores */
.vendedor-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vendedor-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.vendedores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.vendedor-card {
    background-color: #f8f9fa;
    border: 2px solid #ecf0f1;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.vendedor-card:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.vendedor-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #ecf0f1;
}

.vendedor-icon {
    font-size: 1.5rem;
}

.vendedor-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: white;
    border-radius: 5px;
}

.stat-label {
    color: #7f8c8d;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
}

/* Vendas Section */
.vendas-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.vendas-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.tabela-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    color: #7f8c8d;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .resumo-cards,
    .vendedores-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros-actions {
        flex-direction: column;
    }
    
    .filtros-actions button,
    .filtros-actions a {
        width: 100%;
    }
}

/* ==================== DASHBOARD STYLES ==================== */

.dashboard {
    background-color: transparent;
}

.dashboard h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon {
    font-size: 3.5rem;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-label { color: white; }
.stat-value { color: white; }

.stat-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    color: white;
}

.stat-number {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

/* Ações Rápidas */
.quick-actions {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quick-actions h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.quick-actions .actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    background-color: #f8f9fa;
    border: 2px solid #ecf0f1;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
    text-align: center;
}

.quick-action-card:hover {
    border-color: #3498db;
    background-color: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.action-icon {
    font-size: 2.5rem;
}

.action-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Seção Admin */
.admin-section {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.admin-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.admin-link {
    background-color: #f8f9fa;
    border: 2px solid #ecf0f1;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.admin-link:hover {
    border-color: #9b59b6;
    background-color: #9b59b6;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.3);
}

.link-icon {
    font-size: 2.5rem;
}

.link-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.link-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.admin-link:hover .link-content strong,
.admin-link:hover .link-content p {
    color: white;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quick-actions .actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== CAMPO DE BUSCA PRODUTOS ==================== */

.search-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #ecf0f1;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.search-box input[type="text"]:focus {
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.search-info {
    display: none;
    color: #7f8c8d;
    font-size: 0.9rem;
    padding-left: 1rem;
    font-weight: 500;
}

.table-footer {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-footer p {
    margin: 0;
    color: #7f8c8d;
    font-weight: 600;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-box input[type="text"] {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
}

/* ==================== RESUMO DO PEDIDO - DESCONTO E TROCO ==================== */

.resumo-pedido {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 2px solid #ecf0f1;
}

.resumo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.resumo-row:last-child {
    border-bottom: none;
}

.resumo-row span:first-child {
    font-weight: 500;
    color: #555;
}

.resumo-row span:last-child {
    font-weight: bold;
    color: #2c3e50;
}

/* Desconto */
.desconto-row {
    background-color: #fff3cd;
    margin: 0 -1.5rem;
    padding: 0.8rem 1.5rem;
}

.desconto-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.desconto-input-group input {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid #ffc107;
    border-radius: 5px;
    font-weight: bold;
    text-align: right;
}

.desconto-input-group select {
    padding: 0.5rem;
    border: 2px solid #ffc107;
    border-radius: 5px;
    font-weight: bold;
    background-color: white;
    cursor: pointer;
}

/* Total */
.total-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    margin: 0 -1.5rem;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
}

.total-row span {
    color: white !important;
}

/* Pagamento */
.pagamento-row {
    background-color: #d4edda;
    margin: 0 -1.5rem;
    padding: 0.8rem 1.5rem;
}

.pagamento-row input {
    width: 150px;
    padding: 0.6rem;
    border: 2px solid #28a745;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: right;
}

.pagamento-row input:focus {
    outline: none;
    border-color: #218838;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Troco */
.troco-row {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white !important;
    margin: 0 -1.5rem;
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    animation: pulse 1s ease-in-out infinite;
}

.troco-row span {
    color: white !important;
}

.troco-valor {
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .desconto-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .desconto-input-group input,
    .desconto-input-group select {
        width: 100%;
    }
    
    .pagamento-row input {
        width: 100%;
    }
}

/* ==================== CONFIGURAÇÕES DO SISTEMA ==================== */

.config-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #ecf0f1;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #7f8c8d;
    transition: all 0.3s;
    margin-bottom: -3px;
}

.tab-button:hover {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.tab-button.active {
    background-color: white;
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.config-form .form-group {
    margin-bottom: 1.5rem;
}

.config-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.config-form .form-group small {
    display: block;
    margin-top: 0.3rem;
    color: #95a5a6;
    font-size: 0.85rem;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Color Picker */
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker-group input[type="color"] {
    width: 80px;
    height: 50px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
}

.color-picker-group input[type="text"] {
    width: 120px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

/* Image Preview */
.image-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

/* Backup Section */
.backup-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.backup-info {
    background-color: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.backup-info h4 {
    color: #27ae60;
    margin-bottom: 0.5rem;
}

.backup-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.backup-info ul li {
    margin: 0.3rem 0;
}

.backup-actions {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.backup-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.backup-loading {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.backup-success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.backup-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.backup-warning {
    background-color: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.backup-warning h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.backup-warning p {
    margin: 0.3rem 0;
    color: #856404;
}

.backup-warning code {
    background-color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .config-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: left;
    }
    
    .color-picker-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== MENU DE CONFIGURAÇÕES ==================== */

.config-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.config-menu-card {
    background-color: white;
    border: 2px solid #ecf0f1;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    position: relative;
}

.config-menu-card:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

.config-menu-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.config-menu-content {
    flex: 1;
}

.config-menu-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.config-menu-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.config-menu-arrow {
    font-size: 2rem;
    color: #bdc3c7;
    transition: all 0.3s;
}

.config-menu-card:hover .config-menu-arrow {
    color: #3498db;
    transform: translateX(5px);
}

.config-menu-card:hover .config-menu-content h4 {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .config-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .config-menu-card {
        flex-direction: column;
        text-align: center;
    }
    
    .config-menu-arrow {
        transform: rotate(90deg);
    }
    
    .config-menu-card:hover .config-menu-arrow {
        transform: rotate(90deg) translateX(5px);
    }
}

/* ==================== MELHORIAS NO MENU DE USUÁRIO ==================== */

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.badge-admin {
    background-color: #e74c3c;
    color: white;
}

.badge-vendedor {
    background-color: #3498db;
    color: white;
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

.btn-logout:active {
    transform: translateY(0);
}

/* Ajustes para responsividade */
@media (max-width: 1200px) {
    .user-info {
        align-items: center;
    }
    
    .user-details {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin: 1rem 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        text-align: center;
    }
    
    .user-info {
        width: 100%;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .btn-logout {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== CORREÇÃO DA TELA DE LOGIN ==================== */

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-logo {
    margin-bottom: 1rem;
}

.login-logo img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.login-card h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.login-card p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.login-card .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.login-card .form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.login-card .form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.login-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
}

.login-footer {
    margin-top: 2rem;
    color: white;
    text-align: center;
}

.login-footer p {
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.login-card .alert {
    margin-bottom: 1.5rem;
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-card h1 {
        font-size: 2rem;
    }
}

/* Menu Secundário na Dashboard */
.section-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section-title {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ajustar grid das ações rápidas */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

/* Cards de ação mais elegantes */
.action-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}


/* Seções da Dashboard */
.section-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section-title {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Grid de Ações */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.actions-grid.secondary-menu {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards de Ação */
.action-card {
    background: #f8f9fa;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #3498db;
    background: white;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Cards de Administração */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #3498db;
    background: white;
}

.admin-icon {
    font-size: 3rem;
}

.admin-content {
    flex: 1;
}

.admin-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.admin-description {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Responsivo */
@media (max-width: 768px) {
    .actions-grid,
    .actions-grid.secondary-menu {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .admin-cards {
        grid-template-columns: 1fr;
    }
}


/* Ajustar grid quando há menos cards (para vendedores) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Garantir que cards ocupem espaço adequado */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* Badge de Categoria */
.categoria-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.categoria-badge.sem-categoria {
    background: #f5f5f5;
    color: #757575;
}


/* Badge de promoção SEMPRE visível */
.produto-imagem {
    position: relative !important;
}

.produto-card .produto-imagem > div[style*="position:absolute"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.produto-card:hover .produto-imagem > div[style*="position:absolute"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
