/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow: hidden; /* Mencegah scroll */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* --- HEADER / TOP BAR --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004080;
    padding: 15px 30px;
    height: 12vh;
    border-bottom: 3px solid #FFD700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.masjid-info {
    display: flex;
    align-items: center;
}

.logo {
    height: 70px;
    margin-right: 20px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.nama-masjid {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

.alamat-masjid {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

.time-info {
    text-align: right;
}

.clock {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'Roboto', monospace;
}

.date-info {
    font-size: 1.1rem;
    color: #FFD700;
    margin-top: 5px;
    font-weight: 500;
}

.dot {
    margin: 0 8px;
    color: white;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 30px;
    align-items: flex-start;
}

.left-column, .right-column {
    width: 22%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- COUNTDOWN STYLING (BARU) --- */
.center-spacer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-top: 50px; /* Sedikit turun */
}

.countdown-wrapper {
    text-align: center;
    background: rgba(0, 64, 128, 0.85); /* Biru Semi Transparan */
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px solid #FFD700; /* Border Emas */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.countdown-label {
    font-size: 1.5rem;
    color: #FFD700;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.countdown-timer {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    font-family: 'Roboto', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

/* Card Styling */
.blue-card {
    background-color: #1a5c9e;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.transparent-card {
    background-color: rgba(26, 92, 158, 0.85);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-top: 10px;
}

.card-label {
    font-size: 0.8rem;
    color: #FFD700;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-value {
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
}

.card-header-small {
    font-size: 0.85rem;
    color: #FFD700;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

.finance-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.amount.green { color: #90EE90; font-weight: bold; }
.amount.orange { color: #FFB6C1; font-weight: bold; }

.card-top-label {
    text-align: right;
    font-size: 0.8rem;
    color: #FFD700;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.kajian-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.kajian-ustadz {
    font-size: 0.95rem;
    text-align: right;
    font-style: italic;
    margin-bottom: 5px;
}

.kajian-time {
    font-size: 0.8rem;
    text-align: right;
    color: #ddd;
}

.saldo-label {
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.8;
}

.saldo-value {
    text-align: right;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.qris-box {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 140px;
    margin: 0 auto 0 auto;
    float: right;
    display: block;
    clear: both;
}

.qris-box img {
    width: 100%;
    height: auto;
    display: block;
}

.scan-text {
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 5px;
}

.qris-card::after {
    content: "";
    clear: both;
    display: table;
}

/* --- FOOTER: PRAYER TIMES --- */
.footer-area {
    margin: 0 30px;
    margin-bottom: 5px;
}

.prayer-times {
    display: flex;
    gap: 10px;
}

.prayer-box {
    flex: 1;
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 15px 0;
    border-radius: 10px 10px 0 0;
    border-top: 4px solid #004080;
    transition: all 0.3s ease;
}

.prayer-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.prayer-time {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.prayer-box.active {
    background-color: #FFD700;
    color: #002244;
    border-top: 4px solid #FFEC8B;
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    z-index: 10;
}

.running-text-bar {
    background-color: #002244;
    height: 50px;
    display: flex;
    align-items: center;
    width: 100%;
}

.label-info {
    background-color: #FFD700;
    color: #002244;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    z-index: 2;
}

.label-info i {
    margin-right: 8px;
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}