/* --- Style Khusus Modul Jadwal Sholat --- */
.sholat-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sholat-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.sholat-title {
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sholat-location {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}
.sholat-meta {
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
}
.sholat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}
.sholat-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.sholat-label {
    font-size: 0.7em;
    font-weight: bold;
    opacity: 0.7;
}
.sholat-time {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 2px;
}
.btn-sholat {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: block;
}
.btn-sholat:hover {
    background: #2ecc71;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f7f6; padding: 20px; }
        
.page-title { text-align: center; color: #2e7d32; }

.prayer-back-wrap {
    text-align: left;
    margin-bottom: 10px;
}

.btn-back {
    text-decoration: none;
    color: #2e7d32;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    background-color: #e6f4ea;
    display: inline-block;
}

.is-hidden {
    display: none;
}

/* Container Form GPS & Judul */
.gps-container {
    background-color: #e6f4ea; /* HIJAU TIPIS */
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.gps-container input, .gps-container select {
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    width: 150px;
}

.btn-action {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: background 0.3s;
}
.btn-search { background-color: #28a745; }
.btn-search:hover { background-color: #218838; }
.btn-current { background-color: #17a2b8; }
.btn-current:hover { background-color: #138496; }

/* Container Tabel - HIJAU TIPIS */
.table-container {
    background-color: #e6f4ea; /* HIJAU TIPIS */
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #c3e6cb;
    overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9em; min-width: 900px; background-color: white; border-radius: 10px; overflow: hidden; }
th, td { text-align: center; padding: 12px; border-bottom: 1px solid #eee; }
th { background-color: #c3e6cb; color: #2e7d32; } /* Hijau lebih tegas untuk header */
tr:hover { background-color: #f1f8e9; }
.no-data { color: #555; }

.location-info { text-align: center; color: #2e7d32; margin-bottom: 15px; font-weight: bold; }

.qibla-box {
    text-align: center;
    background-color: #e6f4ea; /* HIJAU TIPIS */
    color: #2e7d32;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    border: 1px solid #c3e6cb;
    font-size: 1.1em;
}

/* Container Jadwal Sholat */
.card-container-sholat {
    background-color: #e6f4ea;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #c3e6cb;
    font-family: sans-serif;
    color: #333;
    margin-bottom: 20px;
}

.card-header {
    text-align: center;
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 15px;
}

.location {
    font-size: 0.9em;
    color: #555;
}

.coordinates {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

.info-meta {
    font-size: 0.85em;
    margin-bottom: 15px;
    border-bottom: 1px solid #c3e6cb;
    padding-bottom: 10px;
    color: #333;
}

.meta-item {
    margin-bottom: 5px;
}

/* Grid Waktu Sholat */
.prayer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.prayer-box {
    background-color: rgb(221, 109, 109);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
}

.prayer-label {
    font-size: 0.75em;
    color: #2e7d32;
    font-weight: bold;
    margin-bottom: 5px;
}

.prayer-time {
    font-size: 1.1em;
    font-weight: bold;
}

/* Tombol Detail */
.btn-detail {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background-color: #218838;
}

/* Styling untuk halaman Jadwal Sebulan */
.gps-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gps-container input, .gps-container select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    flex: 1;
    min-width: 150px;
}
.btn-action {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-search { background-color: #28a745; }
.btn-search:hover { background-color: #218838; }
.btn-current { background-color: #007bff; }
.btn-current:hover { background-color: #0069d9; }

.table-container {
    overflow-x: auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.85em;
    min-width: 600px; /* Memastikan tabel tidak terlalu gepeng di mobile */
}
table, th, td { border: 1px solid #ddd; }
th, td { padding: 12px; text-align: center; }
th { background-color: #e6f4ea; color: #2e7d32; }
tr:nth-child(even) { background-color: #f9f9f9; }

.no-data { text-align: center; padding: 20px; color: #777; }
.location-info { font-weight: bold; margin-bottom: 10px; color: #555; }
.qibla-box {
    background: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ffeeba;
    color: #856404;
    font-weight: bold;
}

/* --- PERBAIKAN KHUSUS DASHBOARD EMAS (AMAN) --- */

/* --- PERBAIKAN KHUSUS DASHBOARD EMAS (AMAN) --- */

/* 1. Paksa teks ANTAM/G24 agar tidak keluar kotak */
#gold-dashboard-unique .currency-value {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Gunakan rem, jangan vw, agar ukuran font stabil */
    font-size: 1.2rem !important; 
}

/* 2. Memastikan item AVERAGE berada di dalam kotak */
#gold-dashboard-unique .avg-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2px !important;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

/* 3. Paksa angka AVERAGE menyesuaikan lebar */
#gold-dashboard-unique .avg-item strong {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ukuran font kecil agar tidak keluar */
    font-size: 0.85rem !important;
}

/* 4. Aturan khusus untuk layar HP */
@media (max-width: 768px) {
    #gold-dashboard-unique .currency-value {
        font-size: 1rem !important; 
    }
    #gold-dashboard-unique .avg-item strong {
        font-size: 0.75rem !important;
    }
}

/* Improve responsiveness and spacing for prayer grid */
.prayer-grid {
    align-items: stretch;
}
.prayer-box {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 600px) {
    .prayer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .prayer-grid {
        grid-template-columns: 1fr;
    }
    .prayer-label { font-size: 0.7em; }
    .prayer-time { font-size: 1.2em; }
}

/* subtle shadow to distinguish boxes */
.prayer-box {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Stronger, more specific rules to override other styles if needed */
.card-container-sholat .prayer-grid,
.card-container-sholat .prayer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}
.card-container-sholat .prayer-box {
    min-height: 70px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}

@media (max-width: 600px) {
    .card-container-sholat .prayer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 380px) {
    .card-container-sholat .prayer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Strong color overrides to ensure visible text */
.card-container-sholat .prayer-label {
    color: #2e7d32 !important;
    font-weight: 700 !important;
}
.card-container-sholat .prayer-time {
    color: #1b5e20 !important;
}
.card-container-sholat .prayer-box {
    background-color: #ffffff !important;
}