/*
 * SYSPMI - Sistema de Monitoramento Epidemiológico
 * Design System Moderno - Rails 8
 */

/* ============================================
   CSS Variables - Design Tokens
============================================ */
:root {
    /* Primary Colors */
    --primary-50: #e0f2f1;
    --primary-100: #b2dfdb;
    --primary-200: #80cbc4;
    --primary-300: #4db6ac;
    --primary-400: #26a69a;
    --primary-500: #009688;
    --primary-600: #00897b;
    --primary-700: #00796b;
    --primary-800: #00695c;
    --primary-900: #004d40;

    /* Neutral Colors */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Background & Surface */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --surface-elevated: #ffffff;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy compatibility */
    --colorbasic: var(--primary-700);
    --colorbasic2: var(--primary-500);
    --colortext: var(--text-primary);
}

/* ============================================
   Base Styles & Reset
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-800);
    text-decoration: none;
}

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

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

.page-header::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-full);
}

/* ============================================
   Buttons
============================================ */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary, .colorprimarybtn {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.3);
}

.btn-primary:hover, .colorprimarybtn:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.4);
    color: var(--text-inverse);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-500);
}

.btn-outline-primary:hover {
    background: var(--primary-500);
    color: var(--text-inverse);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--text-inverse);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ============================================
   Cards
============================================ */
.card {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

/* Stats Cards - Dashboard */
.stat-card {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    opacity: 0.3;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-card .stat-detail {
    font-size: 0.8125rem;
    opacity: 0.85;
}

/* Variant Cards */
.stat-card.success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.stat-card.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.stat-card.danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.stat-card.info {
    background: linear-gradient(135deg, var(--info), #2563eb);
}

/* Legacy card-menu compatibility */
.card-menu {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-lg);
}

.card-menu .card-body {
    padding: 1.5rem;
}

.card-menu .card-title {
    color: var(--text-inverse);
}

.card-text1 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Forms
============================================ */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    background: var(--surface-elevated);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control-label, label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* ============================================
   Tables
============================================ */
.table {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.table thead th {
    background: var(--gray-50);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Action Buttons */
.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.table-actions a, .table-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.table td a.view, a.view {
    color: var(--info);
    background: rgba(59, 130, 246, 0.1);
}

.table td a.view:hover, a.view:hover {
    background: var(--info);
    color: var(--text-inverse);
}

.table td a.edit, a.edit {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.table td a.edit:hover, a.edit:hover {
    background: var(--warning);
    color: var(--text-inverse);
}

.table td a.delete, a.delete {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.table td a.delete:hover, a.delete:hover {
    background: var(--danger);
    color: var(--text-inverse);
}

/* ============================================
   Sidebar Navigation
============================================ */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar {
    min-width: 280px;
    max-width: 280px;
    background: linear-gradient(180deg, var(--primary-700), var(--primary-900));
    color: var(--text-inverse);
    transition: all var(--transition-slow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -280px;
}

#sidebar .sidebar-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar .sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-inverse);
    margin: 0;
    letter-spacing: -0.025em;
}

#sidebar .sidebar-header a {
    color: var(--text-inverse);
}

#sidebar ul.components {
    padding: 1rem 0;
    border-bottom: none;
}

#sidebar ul li {
    margin: 0.25rem 0.75rem;
}

#sidebar ul li a {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: rgba(255, 255, 255, 0.85);
}

#sidebar ul li a i {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
}

#sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-inverse);
    transform: translateX(4px);
}

#sidebar ul li.active > a,
#sidebar ul li a[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-inverse);
}

#sidebar ul ul {
    padding-left: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
}

#sidebar ul ul li a {
    padding-left: 3rem;
    font-size: 0.875rem;
}

.dropdown-toggle::after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

ul.CTAs {
    padding: 1.5rem;
    margin-top: auto;
}

ul.CTAs a {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

/* ============================================
   Main Content Area
============================================ */
#content {
    width: calc(100% - 280px);
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    transition: all var(--transition-slow);
    background: var(--bg-primary);
}

#sidebar.active + #content {
    width: 100%;
    margin-left: 0;
}

/* ============================================
   Navbar
============================================ */
.navbar {
    background: var(--surface-elevated);
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.navbar-btn {
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.navbar-btn:hover {
    background: var(--gray-200);
}

/* ============================================
   Charts & Data Visualization
============================================ */
.chart-container {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-title i {
    color: var(--primary-500);
}

/* ============================================
   Maps
============================================ */
#mapa, #mapa-menu {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#mapa {
    height: 400px;
    width: 100%;
}

#mapa-menu {
    height: 100%;
    min-height: 200px;
    width: 100%;
}

/* ============================================
   Badges & Labels
============================================ */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-primary {
    background: rgba(0, 150, 136, 0.15);
    color: var(--primary-600);
}

/* ============================================
   Pagination
============================================ */
.pagination {
    gap: 0.25rem;
}

.page-item .page-link {
    border: none;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.page-item .page-link:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.page-item.active .page-link,
.page-item.active.colorlinkprimary .page-link {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--text-inverse);
    box-shadow: 0 2px 4px rgba(0, 150, 136, 0.3);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background: transparent;
}

/* ============================================
   Alerts & Notifications
============================================ */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

/* ============================================
   Empty States
============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ============================================
   Dashboard Specific
============================================ */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

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

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================================
   Search & Filter Bar
============================================ */
.filter-bar {
    background: var(--surface-elevated);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input input {
    padding-left: 2.75rem;
}

/* ============================================
   File Upload
============================================ */
.file-upload {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    background: var(--gray-50);
}

.file-upload:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.file-upload i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ============================================
   Utility Classes
============================================ */
.text-primary { color: var(--primary-500) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-light { background: var(--gray-50) !important; }
.bg-white { background: var(--surface-elevated) !important; }

.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1.5rem 0;
}

/* ============================================
   Animations
============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 1200px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    #sidebar {
        margin-left: -280px;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
    
    .page-header {
        font-size: 1.25rem;
    }
    
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .filter-bar {
        padding: 1rem;
    }
    
    #mapa {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   Sidebar Footer & Logout Button
============================================ */
.sidebar-footer {
    padding: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-300), var(--primary-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar i {
    color: white;
    font-size: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #fca5a5;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-logout i {
    font-size: 1rem;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.logo-container i {
    font-size: 1.75rem;
    color: var(--primary-200);
}

/* Menu Sections */
.menu-section {
    padding: 1rem 1rem 0.5rem 1rem;
    margin-top: 0.5rem;
}

.menu-section span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Print Styles
============================================ */
@media print {
    #sidebar, .navbar-btn, .btn, .pagination {
        display: none !important;
    }
    
    #content {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .card, .stat-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}
