/* =========================================================
   INDEX DASHBOARD SPECIFIC STYLES
========================================================= */
.dashboard-new-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-info-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.info-card {
    flex: 1;
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.info-card .label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    opacity: 0.9;
}

.info-card .value {
    font-size: 20px;
    font-weight: 700;
}

.bg-ihsg { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.bg-saham { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.bg-suku { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }

.avg-section {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: auto;
}

.avg-item-new {
    background-color: #2ecc71;
    color: #fff;
    padding: 10px 5px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    font-size: 12px;
}

.avg-item-new span {
    display: block;
    font-size: 10px;
    opacity: 0.8;
}

.avg-item-new strong { font-size: 14px; }

.trend-up {
    color: #2ecc71;
    margin-left: 4px;
    font-size: 0.72rem;
}

.trend-down {
    color: #ff4d4f;
    margin-left: 4px;
    font-size: 0.72rem;
}

.trend-flat {
    color: #cfd8dc;
    margin-left: 4px;
    font-size: 0.72rem;
}

.currency-value .trend-up,
.currency-value .trend-down,
.currency-value .trend-flat {
    font-size: 0.95em;
    margin-left: 6px;
    vertical-align: middle;
}

.mini-dashboard-nav {
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mini-dashboard-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.nav-row {
    padding: 18px 10px;
    text-align: center;
}

.nav-label {
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.bg-evaluasi { background: linear-gradient(135deg, #FF512F, #DD2476); }
.bg-aktif { background: linear-gradient(135deg, #8E2DE2, #4A00E0); }
.bg-close { background: linear-gradient(135deg, #00B4DB, #0083B0); }
.bg-obligasi { background: linear-gradient(135deg, #56ab2f, #a8e063); }

.btn-dashboard-location {
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    margin-bottom: 10px;
    margin-right: 5px;
}

.btn-location-current { background-color: #28a745; }
.btn-location-default { background-color: #6c757d; }

.btn-dashboard-link {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    margin-bottom: 10px;
    text-decoration: none;
    display: inline-block;
}

.manual-location-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 0.8em;
}

.manual-location-row { margin-bottom: 5px; }

.manual-location-input {
    width: 80px;
    padding: 2px;
}

.manual-location-btn {
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.prayer-info-meta {
    text-align: center;
    font-family: sans-serif;
    margin: 20px 0;
}

.prayer-info-date {
    font-size: 1em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.prayer-info-qibla {
    font-size: 0.95em;
    color: #555;
}

.stack-column-gap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.macro-card {
    padding: 15px;
    border-radius: 18px;
    color: #fff;
}

.macro-card-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.macro-card-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.macro-card-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.macro-card-value { font-weight: 700; }

.macro-ihsg { background: linear-gradient(135deg, #FF512F, #DD2476); }
.macro-stock { background: linear-gradient(135deg, #f84581, #5c24dd); }
.macro-rate { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.macro-commodity { background: linear-gradient(135deg, #667eea, #764ba2); }
.macro-inflation { background: linear-gradient(135deg, #667eea, #7fd477); }
.macro-unemployment { background: linear-gradient(135deg, #667eea, #b024d3); }

/* Right column stats for dashboard */
.right-column .big-num .label { font-size: 0.8rem; color: #444; }
.right-column .big-num .value { font-size: 1.4rem; font-weight: 800; color: #222; }
.closing-box table td { padding: 4px 6px; }
.closing-box table tr td:first-child { color: #555; }

@media (max-width: 900px) {
    .right-column { width: auto !important; }
    .top-info-row { flex-direction: column; }
}
