:root {
    --gold-primary: #FFD700;
    --gold-secondary: #D4AF37;
    --bg-body: #0a0a0a;
    /* Deep Black */
    --bg-card: #151515;
    /* Slightly lighter black for contrast */
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-subtle: rgba(255, 215, 0, 0.15);
    /* Subtle Gold Border */
    --shadow-glow: 0 4px 20px rgba(212, 175, 55, 0.1);
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    height: var(--header-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

header .logo span {
    color: var(--gold-primary);
}

header .date-indicator {
    font-size: 0.75rem;
    color: var(--bg-body);
    background: var(--gold-secondary);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Container */
.dashboard-container {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.iframe-wrapper {
    flex: 1;
    width: 100%;
    position: relative;
    background: var(--bg-card);
    /* Ensure minimum height constraints are met */
    height: calc(100vh - var(--header-height));
    min-height: 650px;
}

iframe {
    width: 100%;
    height: 100%;
    min-height: 650px;
    border: 0;
    display: block;
    /* Optional: Invert/Darken iframe filters if needed, but Looker Studio is hard to theme externally. */
    /* filter: invert(0.9) hue-rotate(180deg);  <-- CAUTION: purely experimental for dark mode iframe */
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-body);
    border-top: 1px solid var(--border-subtle);
}

/* Desktop Styles */
@media (min-width: 768px) {

    /* On desktop, we want a centered, high-end dashboard feel */
    body {
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }

    header {
        background: transparent;
        border: none;
        width: 100%;
        max-width: 1300px;
        justify-content: space-between;
        /* Keep logo left, badge right or similar */
        margin-bottom: 1rem;
        position: static;
    }

    header .logo {
        font-size: 2rem;
    }

    .dashboard-container {
        max-width: 1300px;
        height: 85vh;
        min-height: 700px;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-glow);
        border-radius: 8px;
        /* Sharper corners for modern financial look */
        overflow: hidden;
    }

    .iframe-wrapper {
        height: 100%;
    }

    footer {
        background: transparent;
        border: none;
        margin-top: 1rem;
    }
}