/* .school-schedule {
max-width: 400px;
margin: 0 auto;
}

.menu {
display: flex;
justify-content: space-around;
padding: 0;
list-style-type: none;
margin: 10px 0px;
}

.menu li {
padding: 10px;
cursor: pointer;
}

.lesson {
display: grid;
grid-template-columns: 20px 90px 90px 1fr;
align-items: center;
justify-content: center;
}

.schedule {
display: flex;
flex-direction: column;
justify-content: center;
}

.buttons {
display: flex;
justify-content: space-around;
margin: 10px 0px;
}

input[type="text"] {
width: 100%;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f8ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.school-schedule {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 82, 204, 0.15);
    overflow: hidden;
}

/* Навигационное меню */
nav {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    padding: 15px 20px;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu li:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Кнопки */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f0f8ff;
    border-bottom: 1px solid #e1efff;
}

.buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.all-days-schedule {
    background: #2c5282;
    color: white;
}

.all-days-schedule:hover {
    background: #1e3f6e;
}

.edit-mode {
    background: #3182ce;
    color: white;
}

.edit-mode:hover {
    background: #226cb9;
}

.edit-save {
    background: white;
    color: #3182ce;
    border: 2px solid #3182ce !important;
}

.edit-save:hover {
    background: #e6f7ff;
}

/* Заголовок расписания */
.school-schedule-head {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #ebf5ff 0%, #e1efff 100%);
}

.school-schedule-head h1 {
    color: #2c5282;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.school-schedule-head h2 {
    color: #3182ce;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.school-schedule-head h3 {
    color: #4a5568;
    font-size: 1.2rem;
    display: inline-block;
    margin: 0 10px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.school-schedule-head h3:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Тело расписания */
.school-schedule-body {
    padding: 25px;
}

.day-title {
    color: #2c5282;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ebf5ff;
}

.day-title:first-child {
    margin-top: 0;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.schedule-table th {
    background: #3182ce;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.schedule-table tr:nth-child(even) {
    background: #f8fbff;
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1efff;
    color: #2d3748;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.subject-title {
    color: #2c5282;
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    padding: 10px 15px;
    background: #f0f8ff;
    border-left: 4px solid #3182ce;
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .buttons button {
        width: 80%;
    }
    
    .schedule-table {
        font-size: 0.9rem;
    }
    
    .schedule-table th, 
    .schedule-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .school-schedule-head h1 {
        font-size: 1.8rem;
    }
    
    .school-schedule-head h2 {
        font-size: 1.3rem;
    }
    
    .school-schedule-head h3 {
        display: block;
        margin: 5px 0;
    }
    
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
}

input {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

/* Стили для текстовых полей */
input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1efff;
    border-radius: 10px;
    font-size: 1rem;
    color: #2d3748;
    background: #f8fbff;
    margin-bottom: 15px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    background: white;
}

input[type="text"]::placeholder {
    color: #a0aec0;
}

/* Стили для полей времени */
input[type="time"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1efff;
    border-radius: 10px;
    font-size: 1rem;
    color: #2d3748;
    background: #f8fbff;
    margin-bottom: 15px;
}

input[type="time"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
    background: white;
}

/* Стили для индикатора выбора времени в WebKit */
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(44%) sepia(40%) saturate(1000%) hue-rotate(170deg) brightness(90%) contrast(90%);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    background: #ebf5ff;
}

input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background: #e1efff;
}

/* Убираем стрелки в поле времени */
input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hr {
    margin-bottom: 15px;
}
