:root {
    --bg-dark: #070b14;
    --accent-gold: #d4af37;
    --emerald-glow: #059669;
    --text-white: #ffffff;
    --text-gold: #fbbf24;
    --card-bg: rgba(13, 19, 33, 0.85);
    --border-gold: 2px solid #d4af37;
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-image: linear-gradient(rgba(7, 11, 20, 0.8), rgba(7, 11, 20, 0.8)), url('../img/sekomandi.png');
    background-size: 500px;
    display: flex;
    flex-direction: column;
}

.main-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: url('../img/mosque_bg.png');
    background-size: cover;
    background-position: right center;
    opacity: 0.4;
    z-index: -1;
}

.tv-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    z-index: 10;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 30px;
}

.arabic-calligraphy {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
    font-family: 'Amiri', serif; /* Simulating calligraphy if font available, or fallback */
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-white);
    opacity: 0.9;
}

.info-bar {
    margin-top: 15px;
    font-size: 1.4rem;
    color: var(--text-gold);
    text-transform: uppercase;
    font-weight: 700;
}

.date-time-row {
    margin-top: 10px;
    font-size: 1.6rem;
    background: rgba(212, 175, 55, 0.15);
    padding: 5px 30px;
    border-radius: 50px;
    display: inline-block;
}

/* Main Content */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 30px;
    min-height: 0;
}

/* Left: Prayer List */
.prayer-list-card {
    background: var(--card-bg);
    border: var(--border-gold);
    border-radius: 25px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-title-gold {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--accent-gold);
    color: black;
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 5px solid var(--accent-gold);
    flex: 1;
}

.prayer-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
}

.prayer-item-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.prayer-item-time {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-gold);
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.iqomah-mini-card {
    background: var(--card-bg);
    border: var(--border-gold);
    border-radius: 25px;
    padding: 20px;
    text-align: center;
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.timer-large {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
}

/* Finance Card */
.finance-card {
    background: var(--card-bg);
    border: var(--border-gold);
    border-radius: 25px;
    padding: 20px;
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.finance-stats {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-top: 15px;
    flex: 1;
}

.total-balance-box h4 { font-size: 1.2rem; color: var(--text-gold); }
.total-balance-box h2 { font-size: 2rem; color: #fff; margin-bottom: 20px; }

.sub-stat { margin-bottom: 10px; }
.sub-stat.pemasukan { color: #10b981; }
.sub-stat.pengeluaran { color: #ef4444; }

/* Footer */
footer {
    height: 60px;
    background: #000;
    margin-top: 20px;
    display: flex;
    align-items: center;
    border-top: 3px solid var(--accent-gold);
}

.marquee-container {
    flex: 1;
    font-size: 2.2rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 700;
}

@media (max-width: 1200px) {
    header h1 { font-size: 2rem; }
}
