:root {
    --primary: #23432a;
    --secondary: #2d5a36;
    --bg: #fdfdf7;
    --text: #1a1a1a;
    --white: #ffffff;
    --card-bg: linear-gradient(135deg, var(--primary), var(--secondary));
}

body.dark-mode {
    --bg: #121212;
    --text: #f0f0f0;
    --white: #1e1e1e;
    --primary: #4a8c5a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding: 20px;
    display: flex;
    justify-content: center;
    transition: background 0.3s ease;
}

.container { width: 100%; max-width: 480px; position: relative; }

.top-actions { position: absolute; top: 0; right: 0; padding-top: 20px; }

.btn-circle {
    background: var(--white);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header { text-align: center; padding: 30px 0; }
header h1 { color: var(--primary); font-weight: 700; text-transform: uppercase; }

.main-card {
    background: var(--card-bg);
    color: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.current-time { font-size: 3.5rem; font-weight: 700; margin: 5px 0; }

.countdown-box {
    margin-top: 15px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-block;
}

#timer { font-family: monospace; font-weight: 700; font-size: 1.1rem; }

.prayer-list { background: var(--white); border-radius: 20px; padding: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.prayer-header {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    padding: 10px 20px; font-size: 0.75rem; color: var(--primary); font-weight: 800;
}

.prayer-row {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    padding: 18px 20px; border-radius: 12px; transition: 0.3s;
}

.active { background-color: rgba(35, 67, 42, 0.1); border-left: 5px solid var(--primary); }

.prayer-name { font-weight: 600; }
.prayer-time, .iqamah-time { text-align: right; font-weight: 600; }

.footer { text-align: center; margin-top: 40px; color: var(--primary); font-weight: 700; opacity: 0.8; }