/* AEM Dashboard - Dramatic Styling for AI Co-founder Interface */

/* ========== Base Dashboard Styles ========== */
.aem-dashboard {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== SURVIVAL Banner - Most Critical Alert ========== */
.survival-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #dc2626, #991b1b, #dc2626);
    background-size: 200% 100%;
    animation: survival-gradient 2s linear infinite;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.8);
}

.survival-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.survival-icon {
    font-size: 1.5rem;
    animation: shake 0.5s infinite;
}

@keyframes survival-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

/* ========== Header Section ========== */
.aem-header {
    animation: fadeInDown 0.6s ease-out;
}

.aether-badge img {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: pulse-glow 3s infinite;
}

.health-metrics {
    display: grid;
    gap: 1rem;
}

.metric-badge {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.5);
}

.metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.health-score[data-score] {
    color: #10b981;
}

.health-score[data-score^="9"], 
.health-score[data-score^="8"] {
    color: #10b981;
}

.health-score[data-score^="7"], 
.health-score[data-score^="6"] {
    color: #eab308;
}

.health-score[data-score^="5"], 
.health-score[data-score^="4"], 
.health-score[data-score^="3"] {
    color: #f97316;
}

.health-score[data-score^="2"], 
.health-score[data-score^="1"], 
.health-score[data-score="0"] {
    color: #dc2626;
    animation: pulse-red 1s infinite;
}

.failure-risk[data-risk] {
    color: #eab308;
}

.failure-risk[data-risk^="0"], 
.failure-risk[data-risk^="1"] {
    color: #10b981;
}

.failure-risk[data-risk^="2"], 
.failure-risk[data-risk^="3"] {
    color: #eab308;
}

.failure-risk[data-risk^="4"], 
.failure-risk[data-risk^="5"], 
.failure-risk[data-risk^="6"], 
.failure-risk[data-risk^="7"], 
.failure-risk[data-risk^="8"], 
.failure-risk[data-risk^="9"] {
    color: #dc2626;
    font-weight: 900;
    animation: pulse-red 1s infinite;
}

.cash-runway[data-days] {
    color: #3b82f6;
}

.cash-runway[data-days^="9"], 
.cash-runway[data-days^="8"], 
.cash-runway[data-days^="7"] {
    color: #eab308;
}

.cash-runway[data-days^="6"], 
.cash-runway[data-days^="5"], 
.cash-runway[data-days^="4"], 
.cash-runway[data-days^="3"] {
    color: #f97316;
}

.cash-runway[data-days^="2"], 
.cash-runway[data-days^="1"], 
.cash-runway[data-days="0"] {
    color: #dc2626;
    animation: pulse-red 0.8s infinite;
}

.score-max, .runway-unit {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: normal;
}

/* ========== Interventions Panel ========== */
.interventions-panel {
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.intervention-count {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.interventions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Intervention Cards */
.intervention-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intervention-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.intervention-card:hover::before {
    left: 100%;
}

/* SURVIVAL Level Styling */
.intervention-card.survival {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.2), rgba(153, 27, 27, 0.3));
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5), inset 0 0 20px rgba(220, 38, 38, 0.2);
}

.intervention-card.survival.shake-animation {
    animation: shake-urgent 2s infinite;
}

@keyframes shake-urgent {
    0%, 100% { transform: translateX(0); }
    5% { transform: translateX(-10px) rotate(-1deg); }
    10% { transform: translateX(10px) rotate(1deg); }
    15% { transform: translateX(-10px) rotate(-1deg); }
    20% { transform: translateX(10px) rotate(1deg); }
    25% { transform: translateX(0); }
}

/* CRITICAL Level Styling */
.intervention-card.critical {
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.2), rgba(154, 52, 18, 0.3));
    border-color: #ea580c;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.4);
}

/* WARNING Level Styling */
.intervention-card.warning {
    background: linear-gradient(135deg, rgba(113, 63, 18, 0.2), rgba(133, 77, 14, 0.3));
    border-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

.intervention-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.intervention-content {
    flex: 1;
}

.intervention-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.severity-badge.survival {
    background: #dc2626;
    color: white;
    animation: pulse-red 1s infinite;
}

.severity-badge.critical {
    background: #ea580c;
    color: white;
}

.severity-badge.warning {
    background: #eab308;
    color: #713f12;
}

.time-critical {
    color: #fca5a5;
    font-size: 0.875rem;
    font-weight: 600;
}

.intervention-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.intervention-description {
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.intervention-recommendation {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.intervention-recommendation strong {
    color: #60a5fa;
}

.intervention-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-action-primary, .btn-action-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-action-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-action-secondary {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.btn-action-secondary:hover {
    background: rgba(100, 116, 139, 0.3);
    border-color: rgba(100, 116, 139, 0.5);
}

/* ========== Live Metrics Grid ========== */
.metrics-grid {
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.metric-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.metric-card.gradient-green::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.metric-card.gradient-red::before {
    background: linear-gradient(90deg, #dc2626, #991b1b);
}

.metric-card.gradient-orange::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.metric-card.gradient-blue::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.metric-card.gradient-purple::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.metric-card.gradient-teal::before {
    background: linear-gradient(90deg, #14b8a6, #0d9488);
}

.metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.metric-name {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-trend {
    font-weight: bold;
    font-size: 0.875rem;
}

.metric-trend.up {
    color: #10b981;
}

.metric-trend.down {
    color: #ef4444;
}

.metric-trend.neutral {
    color: #6b7280;
}

.metric-main-value {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.metric-chart {
    height: 60px;
    margin-bottom: 1rem;
}

.metric-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.metric-target {
    color: #64748b;
}

.metric-progress {
    color: #3b82f6;
    font-weight: 600;
}

.metric-status {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.metric-status.critical {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.metric-status.warning {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

/* ========== Time Machine Section ========== */
.time-machine-section, .experiments-section {
    animation: fadeIn 1.2s ease-out 0.6s backwards;
}

.time-machine-card, .experiments-card, .board-report-card, .alert-timeline {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.simulation-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 0.875rem;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-simulate {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.simulation-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.outcome-probability {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.probability-badge {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
}

.probability-badge.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.probability-badge.warning {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.probability-label {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.probability-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.projected-metrics h4 {
    margin-bottom: 0.75rem;
}

.projection-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #cbd5e1;
}

/* ========== Experiments Section ========== */
.experiment-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.experiment-item:last-child {
    border-bottom: none;
}

.experiment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.experiment-name {
    font-weight: 600;
    color: white;
}

.experiment-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.experiment-status.running {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
}

.experiment-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.progress-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.5s ease;
}

.progress-text {
    color: #94a3b8;
    font-size: 0.75rem;
}

.experiment-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.variant-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    font-size: 0.875rem;
}

.variant-result.winner {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-value {
    color: #cbd5e1;
    font-weight: 600;
}

.winner-badge {
    color: #86efac;
    font-weight: bold;
}

.confidence-level {
    color: #94a3b8;
    font-size: 0.875rem;
}

.confidence-value {
    font-weight: 600;
    margin-left: 0.25rem;
}

.confidence-value.high {
    color: #10b981;
}

.confidence-value.medium {
    color: #eab308;
}

.confidence-value.low {
    color: #ef4444;
}

.btn-new-experiment {
    width: 100%;
    margin-top: 1rem;
    padding: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-new-experiment:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ========== Board Report Section ========== */
.board-report-section, .alert-history-section {
    animation: fadeIn 1.4s ease-out 0.8s backwards;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    margin-bottom: 1rem;
}

.report-date {
    color: #94a3b8;
    font-size: 0.875rem;
}

.report-status {
    background: rgba(16, 185, 129, 0.2);
    color: #86efac;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #cbd5e1;
    line-height: 1.5;
}

.item-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-download-report, .btn-share-report {
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-download-report {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-download-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-share-report {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.btn-share-report:hover {
    background: rgba(100, 116, 139, 0.3);
    border-color: rgba(100, 116, 139, 0.5);
}

/* ========== Alert Timeline ========== */
.timeline-day {
    margin-bottom: 1.5rem;
}

.timeline-day:last-child {
    margin-bottom: 0;
}

.timeline-date {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-event {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    border-left: 3px solid;
    transition: all 0.2s ease;
}

.timeline-event:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(4px);
}

.timeline-event.critical {
    border-left-color: #dc2626;
}

.timeline-event.warning {
    border-left-color: #eab308;
}

.timeline-event.info {
    border-left-color: #3b82f6;
}

.timeline-event.success {
    border-left-color: #10b981;
}

.event-time {
    color: #64748b;
    font-size: 0.75rem;
    min-width: 60px;
}

.event-icon {
    font-size: 1.25rem;
}

.event-text {
    color: #cbd5e1;
    flex: 1;
}

/* ========== Intervention Modal ========== */
.intervention-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.aether-modal-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    color: #94a3b8;
    font-size: 0.875rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 50%;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    color: #fca5a5;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body > div {
    margin-bottom: 1.5rem;
}

.modal-body > div:last-child {
    margin-bottom: 0;
}

.modal-body h3 {
    color: #60a5fa;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.modal-body p {
    color: #cbd5e1;
    line-height: 1.6;
}

.action-plan-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-plan-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.action-plan-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.success-metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-metrics-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.success-metrics-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.modal-footer button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-handle-this {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

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

.btn-remind-later {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.btn-remind-later:hover {
    background: rgba(234, 179, 8, 0.3);
}

.btn-get-help {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-get-help:hover {
    background: rgba(59, 130, 246, 0.3);
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.8);
    }
}

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

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .health-metrics {
        grid-template-columns: 1fr 1fr;
    }
    
    .simulation-controls {
        grid-template-columns: 1fr;
    }
    
    .experiment-metrics {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .intervention-card {
        flex-direction: column;
    }
    
    .intervention-icon {
        align-self: center;
    }
}

/* ========== Utility Classes ========== */
.hidden {
    display: none !important;
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}