/* Fonts */
:root {
    --bg-color: #0d1b2a;
    /* Deep Navy */
    --card-bg: #f2efe9;
    /* Warm Cream/Eggshell */
    --text-primary: #1b263b;
    /* Dark Navy for text on cream */
    --text-secondary: #415a77;
    /* Muted Blue-Grey */
    --text-on-dark: #e0e1dd;
    /* Off-white for background text */

    --primary-color: #2b6cb0;
    /* Strong Blue */
    --accent-color: #ed8936;
    /* Orange/Gold accent if needed */
    --success-color: #38a169;

    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;

    --card-radius: 24px;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-on-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Typography */
.display-title {
    font-family: var(--font-heading);
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Person Section */
.person-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.person-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    color: #fff;
    background: transparent;
    border: none;
}

.person-avatar {
    width: 72px;
    height: 72px;
    background: #f2efe9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--bg-color);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.person-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    color: #f2efe9;
}

.status-badge {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(46, 213, 115, 0.4);
}

/* Cards & Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.stat-icon-bg {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Charts Layout */
.charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.chart-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    height: 320px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.chart-card.full-width {
    grid-column: span 2;
}

.chart-header {
    margin-bottom: 1rem;
    border-bottom: none;
}

.chart-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.chart-container {
    flex: 1;
    width: 100%;
    min-height: 0;
}

/* Utility Animations */
@keyframes flash {
    0% {
        transform: scale(1.05);
        color: var(--primary-color);
    }

    100% {
        transform: scale(1);
        color: inherit;
    }
}

.flash-update {
    animation: flash 0.6s ease-out;
}