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

body {
    background: #0f172a;
    color: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

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

h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 20px;
}

.card {
    background: #1e293b;
    border-radius: 14px;
    padding: 24px;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.35);
}

.index-name {
    color: #94a3b8;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.market-status {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.market-open {
    color: #22c55e;
}

.market-closed {
    color: #ef4444;
}

.index-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.index-change {
    font-size: 1.15rem;
    font-weight: 600;
}

.positive {
    color: #22c55e;
}

.negative {
    color: #ef4444;
}

.updated {
    margin-top: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .index-value {
        font-size: 1.8rem;
    }

}