/* Dashboard Moderno - Dark Theme Elegante */
:root {
    /* Dark Theme Colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    
    /* Dark Background Colors */
    --background-color: #0f172a;
    --background-secondary: #1e293b;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --card-bg: #1e293b;
    --card-hover: #334155;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Border and Shadow */
    --border-color: #334155;
    --border-light: #475569;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-info: linear-gradient(135deg, #06b6d4, #0891b2);
    
    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Layout Principal */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar Moderna */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--text-primary);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform var(--transition-normal);
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.sidebar-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    z-index: -1;
    opacity: 0.1;
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: transform var(--transition-normal);
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
    min-height: 100vh;
    background: var(--background-color);
}

.main-content.expanded {
    margin-left: 0;
}

/* Header Moderno */
.header {
    background: var(--card-bg);
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: all var(--transition-normal);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.2;
}

.menu-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Content Area */
.content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

/* Cards Modernos */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stats Grid Moderno */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color, var(--gradient-primary));
    transition: height var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    height: 8px;
}

.stat-card.success::before { background: var(--gradient-success); }
.stat-card.warning::before { background: var(--gradient-warning); }
.stat-card.danger::before { background: var(--gradient-danger); }
.stat-card.info::before { background: var(--gradient-info); }

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    animation: countUp 1s ease-out;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--accent-color, var(--primary-color));
    opacity: 0.2;
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
    opacity: 0.4;
    transform: scale(1.1) rotate(5deg);
}

/* Alerts Modernos */
.alert {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert i {
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

/* Forms Modernos */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--background-secondary);
    color: var(--text-primary);
    position: relative;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons Modernos */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.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 var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* File Upload Moderno */
.file-upload {
    position: relative;
    display: block;
    cursor: pointer;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    background: var(--background-secondary);
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.file-upload:hover .file-upload-area,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

.file-upload:hover .file-upload-area::before {
    opacity: 0.05;
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.file-upload-text {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.file-upload-hint {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Tables Modernos */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.table th,
.table td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

.table th {
    background: var(--background-secondary);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: all var(--transition-normal);
}

.table tbody tr:hover {
    background: var(--card-hover);
    transform: scale(1.01);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Status Badges Modernos */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.badge::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 1s ease;
}

.badge:hover::before {
    left: 100%;
}

.badge-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

/* Login Page Moderno */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.login-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out;
}

.admin-login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-logo-image {
    max-width: 180px;
    max-height: 90px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
}

.admin-logo-image:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Seções do Dashboard */
.dashboard-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-section.active {
    display: block;
}

/* Modal Moderno */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.4s ease-out;
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes countUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Esconder o botão de menu em desktop por padrão */
.menu-toggle {
    display: none;
}

/* Media query para dispositivos móveis */
@media (max-width: 768px) {
    /* Botão do menu mobile - APENAS EM MOBILE */
    .menu-toggle {
        display: block !important;
        background: none !important;
        border: none !important;
        color: #f8fafc !important;
        font-size: 1.25rem !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        border-radius: 0.375rem !important;
        transition: background-color 0.2s !important;
        min-height: 44px !important;
        min-width: 44px !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 9999 !important;
    }
    
    .menu-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
    }
    
    /* Layout principal responsivo */
    .dashboard-layout {
        display: flex;
        flex-direction: column;
    }
    
    /* Sidebar responsiva */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        background: var(--sidebar-bg);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Header da sidebar */
    .sidebar-header {
        padding: 1.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: rgba(59, 130, 246, 0.1);
    }
    
    .sidebar-header i {
        font-size: 1.5rem;
        color: #3b82f6;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-header h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 700;
        color: #f8fafc;
    }
    
    /* Navegação da sidebar */
    .sidebar-nav {
        padding: 1rem 0.5rem;
    }
    
    /* Overlay para fechar sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Conteúdo principal */
    .main-content {
        margin-left: 0;
        width: 100%;
        min-height: 100vh;
    }
    
    /* Header responsivo */
    .header {
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    /* Título da página responsivo */
    .page-title {
        font-size: 1.25rem;
        margin: 0;
    }
    
    /* Conteúdo das seções */
    .content {
        padding: 1rem;
    }
    
    /* Cards responsivos */
    .card {
        margin: 0.5rem 0;
        padding: 1rem;
        border-radius: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Grid responsivo */
    .grid {
        display: grid;
        gap: 1rem;
        width: 100%;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Formulários responsivos */
    .form-group {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .form-input,
    .form-textarea {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(59, 130, 246, 0.2);
        background: rgba(15, 23, 42, 0.8);
        color: #f8fafc;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #f8fafc;
        font-size: 0.95rem;
    }
    
    /* Botões responsivos */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Stats grid responsivo */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
        text-align: center;
        border-radius: 0.75rem;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Tabelas responsivas */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .table {
        min-width: 800px;
        font-size: 0.875rem;
        width: 100%;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
        text-align: left;
    }
    
    /* Modal responsivo */
    .modal-content {
        width: 95%;
        max-width: 500px;
        margin: 2rem auto;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        border-radius: 1rem;
    }
    
    /* Navegação responsiva */
    .nav-item {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: #cbd5e1;
        text-decoration: none;
        border-radius: 0.5rem;
        margin: 0.25rem 0;
        transition: all 0.2s ease;
        min-height: 44px;
        font-size: 0.95rem;
        font-weight: 500;
        position: relative;
    }
    
    .nav-item i {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
        color: inherit;
        text-align: center;
    }
    
    /* Fallback para quando os ícones não carregam */
    .nav-item:not(:has(i))::before {
        content: "▶";
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        flex-shrink: 0;
        color: #3b82f6;
    }
    
    .nav-item:hover,
    .nav-item.active {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }
    
    .nav-item.active {
        background: rgba(59, 130, 246, 0.15);
        border-left: 3px solid #3b82f6;
    }
    
    .nav-item.active i {
        color: #3b82f6;
    }
    
    /* Ajustes específicos para seção de conteúdo principal */
    #gerenciar-conteudo .card {
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    #gerenciar-conteudo .grid {
        gap: 1rem;
    }
    
    #gerenciar-conteudo .form-group {
        margin-bottom: 1rem;
    }
    
    #gerenciar-conteudo .form-textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    #gerenciar-conteudo .btn {
        margin-top: 1rem;
        width: 100%;
    }
    
    /* Headers dos cards */
    .card-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .card-title {
        font-size: 1rem;
        margin: 0;
        font-weight: 600;
    }
    
    /* File upload responsivo */
    .file-upload-area {
        padding: 2rem 1rem;
        text-align: center;
        border: 2px dashed rgba(59, 130, 246, 0.3);
        border-radius: 0.75rem;
        background: rgba(59, 130, 246, 0.05);
        transition: all 0.3s ease;
    }
    
    /* Badges responsivos */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 0.375rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    /* Melhorar legibilidade */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Prevenir overflow horizontal */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ajustar imagens */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Scroll suave */
    html {
        scroll-behavior: smooth;
    }
    
    /* Melhor feedback visual para elementos ativos */
    .nav-item:active,
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Ajustes para inputs de arquivo */
    .file-upload input[type="file"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
    
    /* Aumentar área de toque para elementos interativos */
    .nav-item,
    .btn,
    .menu-toggle {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Espaçamento adequado entre elementos */
    .dashboard-section {
        padding: 1rem 0;
    }
    
    /* Melhor experiência de rolagem */
    .content {
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    .table-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .header {
        padding: 0.75rem;
    }
    
    .page-title {
        font-size: 1.125rem;
    }
    
    .card {
        margin: 0.25rem 0;
        padding: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 98%;
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem;
    }
    
    .sidebar {
        width: 260px;
    }
}

/* Ajustes para orientação landscape em dispositivos móveis */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        width: 250px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Garantir que o botão hambúrguer NÃO apareça em desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    /* Garantir que a sidebar funcione normalmente em desktop */
    .sidebar {
        position: fixed !important;
        left: 0 !important;
        transform: none !important;
    }
    
    .main-content {
        margin-left: var(--sidebar-width) !important;
    }
}t-value {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* Overlay para mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Estilos específicos para manter compatibilidade */
.modelo-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.modelo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modelo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.modelo-card:hover::before {
    opacity: 1;
}

.modelo-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.modelo-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modelo-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modelo-precos {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.edit-form {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.edit-form h3 {
    color: var(--warning-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

/* Badges de plano no admin */
.plano-badge-admin {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.plano-badge-admin::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 1s ease;
}

.plano-badge-admin:hover::before {
    left: 100%;
}

.plano-badge-admin.mensal {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.plano-badge-admin.anual {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color var(--transition-fast), 
                background-color var(--transition-fast), 
                border-color var(--transition-fast), 
                box-shadow var(--transition-fast);
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
.sidebar::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

.sidebar::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

