body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* ===== Header ===== */

.header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.last-update {
    text-align: right;
    font-size: 14px;
    color: #777;
}

#lastUpdateTime {
    font-size: 16px;
    font-weight: 600;
    color: #d4a017;
}

.logo {
    height: 60px;
}

.header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #888;
}

/* ===== Container ===== */

.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

/* ===== Top Cards ===== */

.top-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: 0.2s ease;
}

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

.card h3 {
    margin: 0;
    font-weight: 500;
    color: #777;
}

.big-number {
    font-size: 48px;
    font-weight: 600;
    margin-top: 15px;
    color: #d4a017;
}

.diff {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.diff.positive {
    color: #2e7d32;
}

.diff.negative {
    color: #c62828;
}

.diff.neutral {
    color: #777;
}

/* ===== Filter ===== */

.filter-tabs {
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tabs button {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #eee;
    cursor: pointer;
    transition: 0.2s;
}

.tabs button.active {
    background: #d4a017;
    color: white;
}

.custom-range {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-range input[type="date"] {
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #333;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.custom-range input[type="date"]:focus {
    border-color: #d4a017;
}

.custom-range .separator {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.custom-range button {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    background: #eee;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-range button:hover {
    background: #ccc;
}

/* ===== Chart ===== */

#chart {
    height: 450px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 40px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    margin: 0;
    font-weight: 500;
    color: #555;
}

.toggle {
    display: flex;
    gap: 10px;
}

.toggle button {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.toggle button.active {
    background: #d4a017;
    color: white;
}

.toggle button:hover {
    background: #ccc;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .top-section {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
