:root {
    /* Light Mode (Default) */
    --bg-app: #f4f4f5;       
    --bg-card: #ffffff;      
    --bg-input: #f4f4f5;
    --bg-stat-card: #ffffff;     
    
    --primary: #10b981;      
    --primary-hover: #059669;
    --primary-dim: rgba(16, 185, 129, 0.1);
    
    --text-main: #18181b;
    --text-muted: #71717a;
    
    --border: #e4e4e7;
    --radius: 16px;
    
    --font-main: 'Hind Siliguri', sans-serif;
}

:root.dark {
    /* Dark Mode */
    --bg-app: #09090b;       
    --bg-card: #18181b;
    --bg-stat-card: #000000;           
    --bg-input: #27272a;     
    
    --primary: #10b981;      
    --primary-hover: #059669;
    --primary-dim: rgba(16, 185, 129, 0.15);
    
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    --border: #27272a;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#app {
    width: 100%;
    max-width: 480px;
}

/* Main Card */
.dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Hero Section (Green Banner like image) */
.hero-banner {
    background-color: var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}

.hero-banner::after {
    content: "";
    position: absolute;
    top: -50%; right: -20%;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.hero-date {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Countdown Section */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.hero-location {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-card {
    background-color: var(--bg-stat-card); /* Slightly darker/different than card */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.timer-label-small {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.timer-big {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.next-event-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.next-event-row span {
    color: var(--text-main);
    font-weight: 600;
}

/* Dua Section */
.dua-card {
    background-color: var(--bg-input);
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
}

.dua-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dua-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.dua-meaning {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Toggle Button */
.action-btn {
    width: 100%;
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--border);
    border-color: #3f3f46;
}

.action-btn.active {
    background-color: var(--primary-dim);
    color: var(--primary);
    border-color: var(--primary);
}

/* Schedule Grid (referencing the grid in image) */
.schedule-container {
    margin-top: 1rem;
    background: var(--bg-input);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.schedule-container.show {
    display: block;
}

.schedule-row {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr 1fr 1fr 1.2fr;
    padding: 12px;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-head {
    background-color: var(--bg-card);
    font-weight: 600;
    color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule-row.current-day {
    background-color: var(--primary-dim);
    border-left: 3px solid var(--primary);
}

/* Utility */
.icon {
    width: 18px;
    height: 18px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-input); 
}
::-webkit-scrollbar-thumb {
    background: #444; 
    border-radius: 10px;
}

/* Footer */
.footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}


/* Hero Theme Toggle */
.hero-theme-toggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
}

.hero-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

