:root {
    /* Cute Pink Theme (Light Mode) */
    --bg-color: #fff0f5; /* Lavender Blush */
    --text-color: #5d4e60;
    --card-bg: #ffffff;
    --accent-primary: #ffb7b2; /* Melon */
    --accent-secondary: #ff9cee; /* Pink */
    --header-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --card-shadow: 0 8px 24px rgba(255, 183, 178, 0.3);
    --border-radius: 20px;
    --font-family: 'Quicksand', sans-serif;
    
    /* Status Colors */
    --status-current-bg: #ffe4e1;
    --status-next-bg: #e6e6fa;
}

[data-theme="dark"] {
    /* Cute Dark Mode */
    --bg-color: #2b202a; /* Dark Raisin */
    --text-color: #fce4ec;
    --card-bg: #3e2c3e;
    --accent-primary: #ff77a9;
    --accent-secondary: #d4a5a5;
    --header-gradient: linear-gradient(135deg, #4a2c40 0%, #6d4c6d 100%);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    
    --status-current-bg: #5a3a50;
    --status-next-bg: #45364b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: var(--header-gradient);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    color: white; /* Always white text on the gradient header */
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#time-display {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

#date-display {
    font-size: 1.2rem;
    opacity: 0.9;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.4);
}

/* Dashboard Cards */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-class {
    border-left: 5px solid var(--accent-primary);
    background-color: var(--status-current-bg);
}

.next-class {
    border-left: 5px solid #a8a8a8; /* Neutral for next */
    background-color: var(--status-next-bg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.card-info h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.subject-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.time-range {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0,0,0,0.05);
    padding: 3px 10px;
    border-radius: 10px;
}

/* Schedule Grid */
.schedule-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--accent-primary);
    font-size: 2rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.day-column {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.day-header {
    background: var(--accent-primary);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.day-content {
    padding: 15px;
    min-height: 200px;
}

.schedule-item {
    background: var(--bg-color);
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 12px;
    border-left: 3px solid var(--accent-secondary);
}

.item-time {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    display: block;
    margin-bottom: 4px;
}

.item-subject {
    font-weight: 700;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #time-display {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}
