/* Reset básico */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin-bottom: 60px;
}

/* Melhorias nos controles de foco */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #28a745;
    outline: none;
}

/* === NAVEGAÇÃO MODERNA === */
.modern-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.top-nav {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 70px;
}

/* === BRAND === */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-link:hover {
    color: #1f2937;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.75rem;
}

.brand-text {
    font-weight: 700;
}

/* === NAVIGATION TABS === */
.nav-tabs-container {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 2rem;
}

.nav-tabs {
    display: flex;
    background: #f9fafb;
    border-radius: 12px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    color: #374151;
    background: rgba(255,255,255,0.5);
    text-decoration: none;
}

.nav-tab.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-tab i {
    font-size: 1rem;
}

/* === ACTIONS === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.action-btn:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.cart-btn {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.cart-btn:hover {
    background: #059669;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mobile-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-item:hover {
    background: #f9fafb;
    color: #374151;
    text-decoration: none;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
}

/* === RESPONSIVIDADE === */
/* Toggle hamburger ativo até 1279px (Tailwind xl) — pareado com o esconde da
   navbar horizontal em layout-fix.css. */
@media (max-width: 1023px) {
    .nav-tabs-container {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .profile-btn {
        display: none;
    }

    .mobile-menu.show {
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .display-4 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
}

/* === CARDS === */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.produto-card, .categoria-card {
    height: 100%;
    position: relative;
}

.produto-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-card:hover .card-img-top {
    transform: scale(1.05);
}

.categoria-card .card-body {
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

/* === BADGES === */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.badge.bg-info {
    background: linear-gradient(45deg, #17a2b8, #6f42c1) !important;
    box-shadow: 0 2px 5px rgba(23, 162, 184, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14) !important;
    color: #212529 !important;
    box-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
}

/* === CARRINHO === */
.carrinho-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.carrinho-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.carrinho-item:last-child {
    margin-bottom: 0;
}

#carrinho-count {
    background: linear-gradient(45deg, #dc3545, #fd7e14) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === DASHBOARD MODERNO === */
.dashboard-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.dashboard-subtitle {
    color: #718096;
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

/* === KPI CARDS === */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kpi-color);
}

.kpi-card.kpi-primary { --kpi-color: #667eea; }
.kpi-card.kpi-success { --kpi-color: #48bb78; }
.kpi-card.kpi-info { --kpi-color: #4299e1; }
.kpi-card.kpi-warning { --kpi-color: #ed8936; }

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.kpi-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--kpi-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.kpi-data {
    flex: 1;
}

.kpi-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.kpi-label {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.kpi-trend.positive {
    color: #48bb78;
}

.kpi-trend.negative {
    color: #f56565;
}

.kpi-trend i {
    font-size: 0.75rem;
}

/* === TABELAS === */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table th {
    border-top: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 1rem;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* === BOTÕES === */
.btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background: linear-gradient(45deg, #28a745, #20c997);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

/* Cores temáticas para produtos naturais */
.text-natural {
    color: #28a745 !important;
}

.bg-natural {
    background-color: #28a745 !important;
}

.border-natural {
    border-color: #28a745 !important;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* === FORMULÁRIOS === */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* === ALERTAS === */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* === ANIMAÇÕES SIMPLES === */
.fade-in-up, .slide-in-left {
    opacity: 1;
    transform: none;
}

/* Apenas hover suave */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn {
    transition: all 0.2s ease;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .hero-section {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .table-responsive {
        border-radius: 15px;
    }
}

/* === ESTILO SHOPIFY === */
.shopify-header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e1e3e5;
    margin-bottom: 2rem;
}

.shopify-title {
    font-size: 2rem;
    font-weight: 600;
    color: #202223;
    margin: 0;
}

.shopify-subtitle {
    color: #6d7175;
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
}

.shopify-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-shopify {
    background: #008060;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-shopify:hover {
    background: #006b4f;
    color: white;
    transform: translateY(-1px);
}

.shopify-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.shopify-search {
    position: relative;
}

.shopify-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6d7175;
}

.shopify-search input {
    padding-left: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.shopify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.shopify-card {
    background: white;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.shopify-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.shopify-card-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.shopify-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #202223;
    margin: 0;
}

.shopify-card-subtitle {
    color: #6d7175;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.shopify-status {
    flex-shrink: 0;
}

.badge-success {
    background: #d4edda;
    color: #155724;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-secondary {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.shopify-card-body {
    padding: 1.5rem;
}

.shopify-info-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.shopify-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6d7175;
}

.shopify-info-item i {
    width: 16px;
    color: #9ca3af;
}

.shopify-description {
    background: #f9fafb;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #6d7175;
    margin-top: 1rem;
}

.shopify-card-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e1e3e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shopify-actions-group {
    display: flex;
    gap: 0.5rem;
}

.shopify-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e3e5;
}

.shopify-empty-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.shopify-empty-icon i {
    font-size: 2rem;
    color: #9ca3af;
}

.shopify-empty-state h3 {
    color: #202223;
    margin-bottom: 0.5rem;
}

.shopify-empty-state p {
    color: #6d7175;
    margin-bottom: 2rem;
}

/* === FORMULÁRIOS SHOPIFY === */
.shopify-form {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.shopify-card {
    background: white;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.shopify-card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e1e3e5;
    padding: 1rem 1.5rem;
}

.shopify-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
}

.shopify-card-body {
    padding: 1.5rem;
}

.shopify-form-actions {
    background: #f9fafb;
    border-top: 1px solid #e1e3e5;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    border-radius: 0 0 8px 8px;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #008060;
    box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-check-input {
    margin: 0;
}

.form-check-label {
    font-weight: 500;
    color: #374151;
}

.text-danger {
    color: #dc2626 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* === RESPONSIVIDADE SHOPIFY === */
@media (max-width: 768px) {
    .shopify-header {
        padding: 1rem 0;
    }
    
    .shopify-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .shopify-actions {
        justify-content: stretch;
    }
    
    .shopify-grid {
        grid-template-columns: 1fr;
    }
    
    .shopify-filters .row {
        flex-direction: column;
    }
    
    .shopify-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shopify-card-body {
        padding: 1rem;
    }
    
    .shopify-card-header {
        padding: 1rem;
    }
}

/* === PÁGINA INICIAL MODERNA === */
.modern-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-icon {
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #667eea;
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-stats {
    display: grid;
    gap: 1rem;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === QUICK ACTIONS === */
.quick-actions {
    margin-bottom: 3rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: inherit;
    text-decoration: none;
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.action-card h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.action-card p {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

/* === SEÇÕES === */
.categories-section, .recent-products {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.view-all-link:hover {
    color: #5a67d8;
}

/* === CATEGORIAS === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f9fafb;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: #f3f4f6;
    color: inherit;
    text-decoration: none;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: #10b981;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-info h6 {
    margin: 0;
    font-weight: 600;
}

.category-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* === PRODUTOS === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

.product-badges {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.badge-organic {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.product-info {
    padding: 1rem;
}

.product-info h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.product-category {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 600;
    color: #10b981;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .modern-hero {
        padding: 2rem 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        justify-content: center;
    }
    
    .action-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .categories-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-section, .recent-products {
        padding: 1rem;
    }
}

/* === ANALYTICS GRID === */
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.chart-card.main-chart {
    grid-row: span 2;
}

.chart-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-btn.active,
.chart-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all:hover {
    color: #5a67d8;
}

.chart-container {
    padding: 1.5rem;
    height: 300px;
}

/* === TOP ITEMS === */
.top-items {
    padding: 1.5rem;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f7fafc;
}

.top-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.item-meta {
    font-size: 0.875rem;
    color: #718096;
}

.item-value {
    font-weight: 600;
    color: #48bb78;
}

/* === BOTTOM GRID === */
.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.activity-card,
.quick-actions-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.activity-header,
.quick-actions-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-header h3,
.quick-actions-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.activity-list {
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f7fafc;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.activity-icon.status-pendente { background: #ed8936; }
.activity-icon.status-confirmado { background: #4299e1; }
.activity-icon.status-enviado { background: #667eea; }
.activity-icon.status-entregue { background: #48bb78; }
.activity-icon.status-cancelado { background: #f56565; }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #a0aec0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.status-pendente { background: #fef5e7; color: #c05621; }
.status-badge.status-confirmado { background: #ebf8ff; color: #2b6cb0; }
.status-badge.status-enviado { background: #edf2f7; color: #4a5568; }
.status-badge.status-entregue { background: #f0fff4; color: #276749; }
.status-badge.status-cancelado { background: #fed7d7; color: #c53030; }

/* === QUICK ACTIONS === */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1a202c;
    transition: all 0.2s ease;
}

.quick-action:hover {
    background: #f7fafc;
    color: #1a202c;
    text-decoration: none;
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.quick-action span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        padding: 1rem 0;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === RELATÓRIOS MODERNOS === */
.report-header {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.report-title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.report-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.report-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.report-subtitle {
    color: #718096;
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
}

.report-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-modern-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    color: white;
}

/* === FILTROS MODERNOS === */
.report-filters {
    margin-bottom: 2rem;
}

.filters-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.filters-header {
    background: #f9fafb;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
}

.quick-filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.filters-form {
    padding: 1.5rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.filter-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 1rem;
}

/* === CARDS DE RESUMO === */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color);
}

.summary-card.card-revenue { --card-color: #48bb78; }
.summary-card.card-orders { --card-color: #4299e1; }
.summary-card.card-average { --card-color: #ed8936; }
.summary-card.card-growth { --card-color: #9f7aea; }

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.summary-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.summary-trend.positive {
    color: #10b981;
}

.summary-trend.negative {
    color: #ef4444;
}

/* === TABELA MODERNA === */
.modern-table-container {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-header {
    background: #f9fafb;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
}

.table-actions {
    display: flex;
    gap: 1rem;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.modern-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    color: #1a202c;
}

.modern-table tbody tr:hover {
    background: #f9fafb;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* === STATUS BADGES === */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pendente {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmado {
    background: #dbeafe;
    color: #1e40af;
}

.status-preparando {
    background: #e0e7ff;
    color: #3730a3;
}

.status-enviado {
    background: #f3e8ff;
    color: #6b21a8;
}

.status-entregue {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelado {
    background: #fee2e2;
    color: #991b1b;
}

/* === RESPONSIVIDADE === */
@media (max-width: 1024px) {
    .report-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .report-title {
        font-size: 2rem;
    }
    
    .report-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .modern-table-container {
        overflow-x: auto;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

/* === PRINT STYLES === */
@media print {
    .btn, .navbar, .footer, .report-actions, .filter-actions {
        display: none !important;
    }
    
    .card, .modern-table-container, .filters-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .report-header {
        border-bottom: 2px solid #000;
    }
    
    .hero-section {
        background: #28a745 !important;
        color: white !important;
    }
}
