:root {
    /* Premium Institutional Amber Palette (Muted) */
    --brand-primary: #b45309; /* Deep Amber */
    --brand-primary-hover: #92400e;
    --brand-dark: #0f172a;
    --brand-accent: #d97706; 
    
    /* Semantic Colors (Balanced) */
    --success: #059669;
    --danger: #dc2626;
    --warning: #b45309;
    --info: #d97706;
    
    /* Light Mode Backgrounds */
    --bg-main: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --bg-card: #ffffff;
    
    /* Text Levels (High Contrast) */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    /* Borders & Depth */
    --border-soft: rgba(226, 232, 240, 1);
    --border-strong: #cbd5e1;
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Radius */
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Dark Theme (Optional, but variables defined for completeness) */
[data-theme="dark"], body.theme-dark {
    --bg-main: #0f172a;
    --bg-surface: rgba(30, 41, 59, 0.9);
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-soft: rgba(51, 65, 85, 0.8);
    --border-strong: #334155;
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Base Reset & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg-main);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--text-primary); font-weight: 800; }

/* Dashboard Components */
.app-container { display: flex; min-height: 100vh; }

.main-content {
    flex: 1;
    padding: 1.5rem 2.5rem;
    position: relative;
    z-index: 1;
    min-width: 0;
    transition: 0.3s ease;
}

/* Header Sections */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.header-titles h1 { font-size: 1.35rem; color: var(--brand-primary); text-transform: uppercase; letter-spacing: -0.5px; }
.header-titles p { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }

/* Stats Tiles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-premium); }

.stat-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: var(--brand-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-data .label { font-size: 0.6rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-data .value { font-size: 1.4rem; font-weight: 900; color: var(--text-primary); margin: 0; line-height: 1.2; }

/* Filter Bar (Clean Light Style) */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.filter-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: flex-end;
}

@media (min-width: 1200px) {
    .filter-form-grid {
        grid-template-columns: repeat(5, 1fr) auto;
    }
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 2px; /* Alineaci¨®n visual con inputs */
}

.filter-group label { display: block; font-size: 0.7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }

.premium-input {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--border-soft);
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 600;
    transition: 0.2s;
    outline: none;
}

.premium-input:focus { border-color: var(--brand-primary); background: #fff; box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1); }

/* Tables (Refined Light) */
.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.premium-table { width: 100%; border-collapse: collapse; }

.premium-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 2px solid var(--bg-main);
}

.premium-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.premium-table tbody tr:hover { background: #f8fafc; }

/* Fixed columns utility */
.premium-table .col-actions { width: 120px; text-align: center; }
.premium-table .col-id { font-weight: 800; color: var(--brand-primary); }
.premium-table .col-dni { font-weight: 700; width: 100px; }
.premium-table .col-name { font-weight: 800; text-transform: uppercase; }
.premium-table .col-status { width: 140px; text-align: center; }

/* Badges */
.badge-status {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.badge-status.pending { background: #fee2e2; color: #dc2626; }
.badge-status.success { background: #dcfce7; color: #059669; }
.badge-status.info { background: #e0f2fe; color: #0369a1; }
.badge-status.warning { background: #fef9c3; color: #a16207; }

/* Buttons */
.btn-premium {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-premium.primary { background: var(--brand-primary); color: #fff; box-shadow: 0 4px 6px -1px rgba(180, 83, 9, 0.2); }
.btn-premium.primary:hover { background: var(--brand-primary-hover); transform: translateY(-1px); }

.btn-premium.secondary { 
    background: #e2e8f0; 
    color: #1e293b; 
    border: 1.5px solid #cbd5e1; 
}
.btn-premium.secondary:hover { background: #cbd5e1; border-color: #94a3b8; }

.btn-premium.success { background: #059669; color: #fff; box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2); }
.btn-premium.success:hover { background: #047857; transform: translateY(-1px); }

.btn-premium.danger { background: #dc2626; color: #fff; box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2); }
.btn-premium.danger:hover { background: #b91c1c; transform: translateY(-1px); }

.btn-premium.warning { background: #ea580c; color: #fff; box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.2); }
.btn-premium.warning:hover { background: #c2410c; transform: translateY(-1px); }

.btn-premium.info { background: #2563eb; color: #fff; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); }
.btn-premium.info:hover { background: #1d4ed8; transform: translateY(-1px); }

.btn-premium.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.65rem; }
.btn-premium.btn-icon { 
    width: 38px; 
    height: 38px; 
    padding: 0; 
    justify-content: center; 
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-premium.btn-icon i { font-size: 1rem; }

/* Sidebar styles handled within includes/sidebar.php for dynamic RBAC rendering */

/* Modals (Premium Light) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-solicitud, .modal-card {
    background: var(--bg-card);
    width: 95%;
    max-width: 900px;
    max-height: 92vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Premium Modals (Aliased and Hardened) */
.modal-premium-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; /* Controlled by JS flex */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.modal-premium-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-premium-header {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
}

.modal-premium-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--brand-primary);
}

.modal-premium-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-premium-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.form-group-premium {
    margin-bottom: 1.5rem;
}

.form-group-premium label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.2s;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

/* Fix para anuncios */
.modal-card {
    max-width: 600px;
}

.modal-header {
    background: var(--brand-primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    flex-shrink: 0; /* No se encoge */
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto; /* Scroll interno si es necesario */
    flex: 1; /* Ocupa el espacio restante */
    background: #ffffff;
}

.modal-footer {
    padding: 1.25rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0; /* No se encoge */
}

/* Modal specific inputs & labels */
.solicitud-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

.solicitud-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solicitud-field label, .premium-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.solicitud-full {
    grid-column: span 2;
}

/* Close button for modals */
.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Animations */
.animate-fade, .animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-slide-up { animation: slideUp 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(15px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Global Footer Styling */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: #ffffff;
    border-top: 1px solid var(--border-soft);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.03);
}

.footer-version { font-size: 0.65rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-copy { font-size: 0.65rem; font-weight: 700; color: var(--text-secondary); }

body { padding-bottom: 35px !important; }

@media (max-width: 768px) {
    .main-footer { flex-direction: column; height: auto; padding: 0.5rem; gap: 0.25rem; }
    body { padding-bottom: 60px !important; }
    .main-content { padding: 1.5rem; }
}

/* AI Chat Widget */
#ai-chat-widget {
    position: fixed;
    bottom: 50px;
    right: 25px;
    z-index: 2000;
    font-family: 'Inter', sans-serif;
}

#ai-chat-button {
    width: 60px;
    height: 60px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(180, 83, 9, 0.4);
    transition: 0.3s;
}

#ai-chat-button:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--brand-primary-hover);
}

#ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    animation: slideUp 0.3s ease-out;
}

.ai-chat-header {
    background: var(--brand-primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header span {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.ai-chat-header button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
}

#ai-chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
}

.message.system {
    background: white;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-soft);
}

.message.user {
    background: var(--brand-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.message.typing {
    font-style: italic;
    opacity: 0.7;
}

.ai-chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 0.5rem;
}

.ai-chat-input-area input {
    flex: 1;
    border: 1px solid var(--border-soft);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    outline: none;
    font-size: 0.85rem;
}

.ai-chat-input-area button {
    background: var(--brand-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.ai-chat-input-area button:hover {
    background: var(--brand-primary-hover);
}

/* Specialist Accents */
.accent-emerald { --specialist-color: #059669; --specialist-bg: rgba(5, 150, 105, 0.1); }
.accent-amber { --specialist-color: #b45309; --specialist-bg: rgba(180, 83, 9, 0.1); }
.accent-indigo { --specialist-color: #6366f1; --specialist-bg: rgba(99, 102, 241, 0.1); }
.accent-blue { --specialist-color: #2563eb; --specialist-bg: rgba(37, 99, 235, 0.1); }

.stat-card.accent-emerald .stat-icon { color: #059669; background: rgba(5, 150, 105, 0.1); }
.stat-card.accent-amber .stat-icon { color: #b45309; background: rgba(180, 83, 9, 0.1); }
.stat-card.accent-indigo .stat-icon { color: #6366f1; background: rgba(99, 102, 241, 0.1); }
.stat-card.accent-blue .stat-icon { color: #2563eb; background: rgba(37, 99, 235, 0.1); }

.dashboard-header.specialist-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-header.specialist-header::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--specialist-color, var(--brand-primary));
}

.specialist-header .header-titles h1 {
    color: var(--specialist-color, var(--brand-primary));
}

.badge-status-pill {
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid transparent;
}

.badge-status-pill.pending { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.badge-status-pill.success { background: #dcfce7; color: #059669; border-color: #86efac; }
.badge-status-pill.info { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
/* --- Tactical Specialist Components --- */
.id-badge { 
    background: var(--bg-main); 
    color: var(--text-muted); 
    font-weight: 900; 
    padding: 0.4rem 0.8rem; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    border: 1px solid var(--border-soft);
}

.user-info .name { 
    font-weight: 900; 
    color: var(--text-primary); 
    font-size: 1rem; 
    display: block; 
    margin-bottom: 0.1rem; 
}

.user-info .dni { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    font-weight: 700; 
}

.grade-tag { 
    background: var(--bg-main); 
    color: var(--text-muted); 
    font-weight: 800; 
    font-size: 0.7rem; 
    padding: 0.4rem 0.75rem; 
    border-radius: 6px; 
    text-transform: uppercase;
    border: 1px solid var(--border-soft);
}

.cat-badge { 
    font-weight: 950; 
    color: var(--specialist-color, var(--brand-primary)); 
    background: var(--specialist-bg, rgba(var(--brand-primary-rgb), 0.1)); 
    padding: 0.5rem 1rem; 
    border-radius: 10px; 
    font-size: 0.85rem; 
    display: inline-block;
}

.status-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem; 
    font-weight: 950; 
    font-size: 0.75rem; 
    padding: 0.5rem 1.25rem; 
    border-radius: 12px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success { background: #10b981; color: white; }
.status-badge.warning { background: #f59e0b; color: white; }
.status-badge.danger { background: #ef4444; color: white; }
.status-badge.info { background: #3b82f6; color: white; }

/* Tactical Action Buttons */
.tactical-actions { 
    display: flex; 
    gap: 0.75rem; 
    justify-content: center; 
}

.btn-tactical { 
    width: 42px; 
    height: 42px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    border: 2px solid transparent; 
    background: var(--bg-main);
    color: var(--text-muted);
}

.btn-tactical.view { background: #f1f5f9; color: #475569; }
.btn-tactical.upload { background: var(--specialist-bg); color: var(--specialist-color); }
.btn-tactical.check { background: var(--specialist-color); color: white; }
.btn-tactical.reset { background: #fef2f2; color: #ef4444; }

.btn-tactical:hover { 
    transform: scale(1.15) translateY(-2px); 
    box-shadow: var(--shadow-md); 
}

.btn-tactical.view:hover { background: #e2e8f0; }
.btn-tactical.upload:hover { background: var(--specialist-color); color: white; }
.btn-tactical.reset:hover { background: #ef4444; color: white; }

.pulse-accent { animation: pulse-acc 2s infinite; }
@keyframes pulse-acc { 
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); } 
    70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } 
}


/* Intelligence & Analytics Dashboard */
.intelligence-grid { margin-top: 2rem; }
.stat-card-glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.stat-card-glass:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.chart-container {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 16px;
    padding: 1rem;
}
.insight-icon {
    width: 45px;
    height: 45px;
    background: rgba(var(--specialist-color-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.animate-pulse {
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(var(--role-accent-rgb), 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(var(--role-accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--role-accent-rgb), 0); }
}

@media print {
    .sidebar, .dashboard-header .header-actions { display: none !important; }
    .main-content { padding: 0 !important; }
    .stat-card-glass { border: 1px solid #ddd !important; background: white !important; color: black !important; }
}

.mini-bar-chart { 
    display: flex; 
    align-items: flex-end; 
    gap: 4px; 
    height: 35px; 
}

.mini-bar-chart div { 
    width: 5px; 
    background: var(--specialist-color, var(--brand-primary)); 
    border-radius: 3px; 
    opacity: 0.4; 
}
