/* Reset para evitar conflitos com style.css */
        * {
            box-sizing: border-box;
        }
        
        body {
            margin: 0;
            padding: 0;
        }
        
        /* ========================================
           SIDEBAR MODERNO - DESIGN SYSTEM UX/UI
           ======================================== */
        
        /* Layout principal com sidebar */
        .dashboard-with-sidebar {
            display: flex;
            gap: 0;
            min-height: 100vh;
            background: #f8f9fc;
        }
        
        /* Sidebar container */
        .modern-sidebar {
            width: 260px;
            min-width: 260px;
            background: #000000;
            display: flex;
            flex-direction: column;
            position: sticky;
            top: 0;
            height: 100vh;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
            z-index: 100;
            border-right: 1px solid #1a1a1a;
        }
        
        /* Brand section no topo */
        .modern-sidebar .sidebar-brand {
            padding: 24px 20px;
            border-bottom: 2px solid #1a1a1a;
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
        }
        
        .modern-sidebar .sidebar-brand .brand-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #000000;
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
        }
        
        .modern-sidebar .sidebar-brand .brand-info {
            flex: 1;
        }
        
        .modern-sidebar .sidebar-brand .brand-title {
            font-size: 15px;
            font-weight: 700;
            color: #ffffff;
            margin: 0 0 2px 0;
            letter-spacing: -0.3px;
        }
        
        .modern-sidebar .sidebar-brand .brand-subtitle {
            font-size: 11px;
            color: #808080;
            margin: 0;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* User Info Card */
        .modern-sidebar .sidebar-user-card {
            margin: 20px 16px;
            padding: 14px;
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            border: 1px solid #2a2a2a;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .modern-sidebar .sidebar-user-card .user-avatar {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #000000;
            flex-shrink: 0;
        }
        
        .modern-sidebar .sidebar-user-card .user-info {
            flex: 1;
            min-width: 0;
        }
        
        .modern-sidebar .sidebar-user-card .user-name {
            font-size: 13px;
            font-weight: 600;
            color: #ffffff;
            margin: 0 0 2px 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .modern-sidebar .sidebar-user-card .user-role {
            font-size: 11px;
            color: #808080;
            margin: 0;
            font-weight: 500;
        }
        
        /* Section divider */
        .modern-sidebar .sidebar-section {
            flex: 1;
            overflow-y: auto;
        }
        
        .modern-sidebar .sidebar-section .section-label {
            padding: 8px 20px 8px 20px;
            font-size: 10px;
            font-weight: 700;
            color: #505050;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        
        /* Navegação principal */
        .modern-sidebar .sidebar-nav {
            padding: 0 12px;
        }
        
        /* Scrollbar personalizada para o sidebar */
        .modern-sidebar .sidebar-section::-webkit-scrollbar {
            width: 6px;
        }
        
        .modern-sidebar .sidebar-section::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }
        
        .modern-sidebar .sidebar-section::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }
        
        .modern-sidebar .sidebar-section::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        
        .modern-sidebar .nav-item {
            width: 100%;
            background: transparent;
            border: 1px solid transparent;
            color: #808080;
            padding: 0;
            margin-bottom: 6px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            text-align: left;
            overflow: hidden;
        }
        
        .modern-sidebar .nav-item-icon {
            width: 44px;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
        
        .modern-sidebar .nav-item-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding-right: 8px;
            min-width: 0;
        }
        
        .modern-sidebar .nav-item-title {
            font-size: 13px;
            font-weight: 600;
            color: inherit;
            line-height: 1.2;
        }
        
        .modern-sidebar .nav-item-subtitle {
            font-size: 10px;
            color: #505050;
            line-height: 1.2;
            font-weight: 500;
        }
        
        .modern-sidebar .nav-arrow {
            font-size: 10px;
            margin-right: 12px;
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .modern-sidebar .nav-item:hover {
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            border-color: #2a2a2a;
            color: #ffffff;
            transform: translateX(3px);
        }
        
        .modern-sidebar .nav-item:hover .nav-item-icon {
            transform: scale(1.1);
        }
        
        .modern-sidebar .nav-item:hover .nav-arrow {
            opacity: 1;
            transform: translateX(2px);
        }
        
        .modern-sidebar .nav-item:hover .nav-item-subtitle {
            color: #808080;
        }
        
        .modern-sidebar .nav-item.active {
            background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
            color: #000000;
            border-color: #ffffff;
            box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
        }
        
        .modern-sidebar .nav-item.active .nav-item-subtitle {
            color: #404040;
        }
        
        .modern-sidebar .nav-item.active .nav-arrow {
            opacity: 1;
            color: #000000;
        }
        
        .modern-sidebar .nav-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 28px;
            background: #000000;
            border-radius: 0 4px 4px 0;
        }
        
        /* Footer do sidebar */
        .modern-sidebar .sidebar-footer {
            padding: 16px;
            border-top: 2px solid #1a1a1a;
            background: linear-gradient(135deg, #0d0d0d 0%, #000000 100%);
        }
        
        .modern-sidebar .sidebar-footer .footer-stats {
            margin-bottom: 12px;
        }
        
        .modern-sidebar .sidebar-footer .stat-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            background: #0d0d0d;
            border: 1px solid #1a1a1a;
            border-radius: 8px;
        }
        
        .modern-sidebar .sidebar-footer .stat-item > i {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: #ffffff;
            flex-shrink: 0;
        }
        
        .modern-sidebar .sidebar-footer .stat-content {
            flex: 1;
        }
        
        .modern-sidebar .sidebar-footer .stat-label {
            font-size: 10px;
            color: #606060;
            margin-bottom: 2px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .modern-sidebar .sidebar-footer .stat-value {
            font-size: 12px;
            color: #ffffff;
            font-weight: 600;
        }
        
        .modern-sidebar .btn-logout-sidebar {
            width: 100%;
            padding: 10px;
            background: transparent;
            border: 1px solid #2a2a2a;
            border-radius: 8px;
            color: #808080;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .modern-sidebar .btn-logout-sidebar:hover {
            background: #ff4444;
            border-color: #ff4444;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
        }
        
        .modern-sidebar .btn-logout-sidebar i {
            font-size: 13px;
        }
        
        /* Área de conteúdo principal */
        .dashboard-main-content {
            flex: 1;
            background: #f8f9fc;
            overflow-x: hidden;
            overflow-y: auto;
            width: calc(100% - 260px);
            position: relative;
            min-height: 100vh;
            padding: 0 !important;
            margin: 0 !important;
        }
        
        /* Força isolamento das seções - NADA aparece ao lado */
        .dashboard-main-content {
            display: block;
        }
        
        .dashboard-main-content > * {
            clear: both;
        }
        
        /* Garantir que tab-content ocupe 100% da área disponível */
        .dashboard-main-content .tab-content {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box;
            padding: 0 !important;
            margin: 0 !important;
            min-height: 100vh;
            position: relative;
            left: 0 !important;
            right: 0 !important;
        }
        
        /* RESET COMPLETO: Remove QUALQUER margem ou padding lateral */
        #cupons,
        #relatorios,
        #configuracoes {
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        
        /* FORÇA todos os filhos diretos das seções a ocuparem 100% */
        .dashboard-main-content .tab-content > * {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        
        /* CORREÇÃO ESPECÍFICA: content-header, cupons-container e outros containers */
        #cupons .content-header,
        #cupons .cupons-container,
        #relatorios .content-header,
        #relatorios .relatorios-container,
        #configuracoes .content-header,
        #configuracoes .configuracoes-container {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 40px !important;
            padding-right: 40px !important;
            box-sizing: border-box !important;
        }
        
        /* Garantir que elementos dentro dos containers também fiquem corretos */
        #cupons *,
        #relatorios *,
        #configuracoes * {
            box-sizing: border-box;
        }
        
        /* Section headers melhorados */
        .section-header-modern {
            background: white;
            padding: 32px 40px;
            border-bottom: 1px solid #e5e7eb;
            margin-bottom: 32px;
        }
        
        .section-header-modern h2 {
            font-size: 28px;
            font-weight: 700;
            color: #1a1f36;
            margin: 0 0 8px 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .section-header-modern h2 i {
            font-size: 24px;
            color: #1a1a1a;
        }
        
        .section-header-modern p {
            font-size: 15px;
            color: #6b7280;
            margin: 0;
            font-weight: 400;
        }
        
        /* Cards de configuração */
        .config-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 24px;
            padding: 0 40px 40px;
        }
        
        .config-card {
            background: white;
            border-radius: 12px;
            padding: 28px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            border: 1px solid #e5e7eb;
            transition: all 0.2s ease;
        }
        
        .config-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border-color: #1a1a1a;
        }
        
        .config-card h3 {
            font-size: 18px;
            font-weight: 600;
            color: #1a1f36;
            margin: 0 0 6px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .config-card h3 i {
            color: #1a1a1a;
            font-size: 20px;
        }
        
        .config-card .card-description {
            font-size: 14px;
            color: #6b7280;
            margin: 0 0 24px 0;
            line-height: 1.6;
        }
        
        .config-card .form-group-modern {
            margin-bottom: 20px;
        }
        
        .config-card .form-group-modern:last-of-type {
            margin-bottom: 0;
        }
        
        .config-card label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }
        
        .config-card input,
        .config-card select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 15px;
            color: #1a1f36;
            transition: all 0.2s ease;
            background: #fafbfc;
        }
        
        .config-card input:focus,
        .config-card select:focus {
            outline: none;
            border-color: #1a1a1a;
            background: white;
            box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
        }
        
        .btn-save-config {
            width: 100%;
            padding: 14px 24px;
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-top: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn-save-config:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4);
        }
        
        .btn-save-config:active {
            transform: translateY(0);
        }
        
        /* Responsivo */
        @media (max-width: 1024px) {
            .dashboard-with-sidebar {
                flex-direction: column;
            }
            
            .modern-sidebar {
                width: 100%;
                min-width: 100%;
                height: auto;
                position: relative;
            }
            
            .dashboard-main-content {
                width: 100%;
            }
            
            .config-cards-grid {
                grid-template-columns: 1fr;
                padding: 0 20px 20px;
            }
            
            .section-header-modern {
                padding: 24px 20px;
            }
        }
        
        /* Override para garantir que não há margem ou padding indesejado */
        .main-content {
            padding: 0 !important;
            margin: 0 !important;
        }
        
        /* Garantir que dashboard-with-sidebar ocupa 100% */
        .dashboard-with-sidebar {
            width: 100%;
            max-width: 100%;
        }
        
        /* Remover qualquer container extra */
        .dashboard-container {
            padding: 0;
            margin: 0;
        }
        
        /* ===== SISTEMA DE SEÇÕES - ULTRA SIMPLES ===== */
        /* Inline style.display vai controlar tudo */
        .dashboard-main-content .tab-content {
            width: 100%;
            box-sizing: border-box;
        }
        
        /* Ajustar padding do dashboard-header dentro da área de vendas */
        #vendas .dashboard-header,
        #cupons > *,
        #relatorios > *,
        #configuracoes > * {
            margin: 0;
            padding: 32px 40px;
            background: white;
            border-bottom: 1px solid #e5e7eb;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        
        /* Garantir que analytics-grid fique visível */
        #vendas .analytics-grid {
            padding: 24px 40px;
            background: #f8f9fc;
        }
        
        /* Ajustar loader */
        #vendas .loader-container {
            padding: 60px 40px;
        }
        
        /* Tabs dentro de vendas */
        #vendas .tabs-container {
            padding: 0 40px;
            background: white;
            border-bottom: 1px solid #e5e7eb;
        }
        
        /* Estilos minimalistas para relatórios */
        .btn-report:hover {
            background: #333 !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .btn-report:active {
            transform: translateY(0);
        }
        
        /* Estilos minimalistas para cupons */
        #criar-cupom-btn:hover {
            background: #333 !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .cupom-card-minimal:hover {
            border-color: #ccc !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        .btn-delete-cupom:hover {
            color: #ff4444 !important;
        }
        
        #cancelar-cupom:hover {
            background: #f5f5f5 !important;
            border-color: #ccc !important;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Estilos para inputs do Lote Automático */
        #form-lote-automatico input[type="text"]:focus,
        #form-lote-automatico input[type="number"]:focus {
            border-color: #2563eb !important;
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        #form-lote-automatico .novo-valor-ingresso:focus {
            border-color: #059669 !important;
            outline: none;
            box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
        }
        
        #form-lote-automatico button[type="submit"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
        }
        
        #form-lote-automatico button[type="button"]:hover {
            background: #f5f5f5 !important;
            border-color: #d1d5db !important;
        }