:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6b8cbc;
    --accent-color: #ff6b6b;
    --light-color: #f5f7fa;
    --dark-color: #2c3e50;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Цвета для светлой темы */
    --bg-color: #f0f2f5;
    --container-bg: white;
    --text-color: #2c3e50;
    --lesson-bg: #f5f7fa;
    --teacher-color: #666;
    --homework-bg: #fff4e6;
}

/* Темная тема */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f0f0;
    --lesson-bg: #3a3a3a;
    --teacher-color: #aaa;
    --homework-bg: #3a3429;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--container-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.date {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.day {
    font-size: 1.2rem;
    opacity: 0.9;
}

.schedule-section {
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
}

.section-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-color);
}

.lesson {
    background: var(--lesson-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.lesson:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lesson.active {
    background: #e8f4fc;
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .lesson.active {
    background: #2a3b4d;
}

.time {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.subject {
    font-weight: 600;
    margin-bottom: 5px;
}

.teacher {
    color: var(--teacher-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.homework {
    background: var(--homework-bg);
    border-left: 4px solid var(--accent-color);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.homework::before {
    content: "📌 ДЗ: ";
    font-weight: bold;
    color: var(--accent-color);
}

footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.9rem;
}

/* Кнопка переключения темы */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    z-index: 1000;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle::before {
    content: "🌙";
    font-size: 16px;
}

[data-theme="dark"] .theme-toggle::before {
    content: "☀️";
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    .date {
        font-size: 1.3rem;
    }
    
    .day {
        font-size: 1.1rem;
    }
    
    .schedule-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .lesson {
        padding: 12px;
    }
    
    .theme-toggle {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .date {
        font-size: 1.2rem;
    }
    
    .day {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .time, .subject {
        font-size: 0.95rem;
    }
    
    .teacher {
        font-size: 0.85rem;
    }
    
    .homework {
        font-size: 0.85rem;
    }
    
    .theme-toggle {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }
}