:root {
    --primary-blue: #3a7bd5;
    --secondary-gold: #d4b96a;
    --bg-cream: #f4f1ea;
    --text-main: #333333;
    --text-secondary: #666666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header & Logo */
.dashboard-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.logo-container img {
    height: 60px;
    width: auto;
}

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

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: 315px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    position: relative;
    border: 4px solid var(--white);
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    color: var(--text-main);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
}

.status-indicator.success .dot { background-color: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.status-indicator.warning .dot { background-color: #f1c40f; }
.status-indicator.error .dot { background-color: #e74c3c; }

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 6px solid var(--secondary-gold);
}

.metric-card:hover {
    transform: translateY(-8px);
}

.card-icon {
    background-color: rgba(212, 185, 106, 0.1);
    color: var(--secondary-gold);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-icon--green {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.card-icon--blue {
    background-color: rgba(58, 123, 213, 0.1);
    color: var(--primary-blue);
}

.card-icon--purple {
    background-color: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
}

.metric-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

.metric-unit {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.card-refresh {
    margin-top: 1.125rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
    background: #f9f9f9;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-secondary);
}

.dashboard-footer p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Animations */
.value-updated {
    animation: pulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--primary-blue); }
    100% { transform: scale(1); }
}

/* Placeholder glow effect */
.placeholder-glow {
    color: transparent !important;
    background: linear-gradient(110deg, #eeeeee 8%, #f5f5f5 18%, #eeeeee 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
    border-radius: 8px;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

@media (max-width: 768px) {
    .dashboard-header h1 {
        font-size: 2rem;
    }
    .hero-section {
        height: 225px;
    }
    .metric-value {
        font-size: 2.25rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}
