/* --- GLOBAL STYLES --- */
body { 
    font-family: 'Inter', sans-serif; 
    background: #f8fafc; 
    color: #334155; 
}

/* Animations */
@keyframes slideDown { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.slide-down { animation: slideDown 0.4s ease-out forwards; }

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- COMPONENTS --- */

/* Modern Card */
.modern-card { 
    background: white; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    transition: all 0.3s ease; 
}
.modern-card:hover { 
    transform: translateY(-2px); 
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
}

/* Modern Button */
.modern-btn { 
    padding: 0.5rem 1rem; 
    border-radius: 8px; 
    font-weight: 600; 
    transition: all 0.2s; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    background: #2563eb; 
    color: white; 
    cursor: pointer; 
    border: none;
    font-size: 0.875rem;
}
.modern-btn:hover { 
    background: #1d4ed8; 
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3); 
    transform: translateY(-1px);
}

.modern-btn-secondary { 
    background: white; 
    border: 1px solid #cbd5e1; 
    color: #475569; 
}
.modern-btn-secondary:hover { 
    background: #f1f5f9; 
    border-color: #94a3b8; 
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.modern-btn-success { background: #10b981; color: white; }
.modern-btn-success:hover { background: #059669; }

.modern-btn-warning { background: #f59e0b; color: white; }
.modern-btn-warning:hover { background: #d97706; }

/* Inputs & Forms */
.modern-input, .modern-textarea, .modern-select { 
    width: 100%; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 0.5rem 0.75rem; 
    transition: all 0.2s; 
    outline: none; 
    background: white;
    font-size: 0.875rem;
}
.modern-input:focus, .modern-textarea:focus, .modern-select:focus { 
    border-color: #3b82f6; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
}
.modern-input:disabled { 
    background-color: #f8fafc; 
    cursor: not-allowed; 
}

/* Progress Bars */
.progress-track { 
    background: #f1f5f9; 
    border-radius: 999px; 
    height: 8px; 
    overflow: hidden; 
}
.progress-fill { 
    height: 100%; 
    border-radius: 999px; 
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); 
}
.bg-gradient-blue { background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%); }
.progress-green { background: #10b981; } 
.progress-blue { background: #3b82f6; } 
.progress-orange { background: #f59e0b; }

/* Tags & Badges */
.badge, .modern-badge { 
    padding: 2px 8px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    display: inline-block; 
}
.badge-admin { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }
.badge-unit { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-success, .badge-completed { background: #dcfce7; color: #166534; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-warning, .badge-progress { background: #fef3c7; color: #92400e; }
.badge-planned { background: #f1f5f9; color: #475569; }

/* Navigation Tabs */
.nav-item { 
    padding: 0.75rem 1.5rem; 
    color: #64748b; 
    font-weight: 600; 
    cursor: pointer; 
    border-bottom: 2px solid transparent; 
    transition: all 0.2s; 
    white-space: nowrap; 
    display: flex;
    align-items: center;
}
.nav-item:hover { color: #2563eb; background-color: #f8fafc; }
.nav-item.active { color: #2563eb; border-bottom-color: #2563eb; }

/* Header & Layout */
.modern-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.icon-container {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

/* --- DASHBOARD SPECIFIC --- */

/* Stat Card */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 12px;
}
.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 8px;
}

/* Activity Item */
.activity-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}
.activity-item:hover {
    background: white;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Evidence Card */
.evidence-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
}
.evidence-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Indicator Card */
.indicator-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}
.indicator-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}
.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* Utils */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 24px 0;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal */
.modern-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}
.modern-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay { 
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(4px); 
}
.modern-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }