/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f9;
    display: flex; /* Включаем флекс для боковой панели */
}

/* СТИЛИ БОКОВОЙ ПАНЕЛИ */
#schedule-sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}
#schedule-sidebar h2 {
    text-align: center;
    margin-bottom: 15px;
}
#time-slots {
    max-height: 80vh; /* Ограничим высоту */
    overflow-y: auto; /* Включим прокрутку, если слотов много */
}
.time-slot {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 2px;
}
.time-slot .time-label {
    width: 60px;
    font-weight: bold;
}
.time-slot .status {
    flex-grow: 1;
}
.time-slot .status.free {
    background-color: #e8f5e9; /* Светло-зеленый */
}
.time-slot .status.busy {
    background-color: #ffebee; /* Светло-красный */
}
.time-slot .status.lunch {
    background-color: #f3e5f5; /* Светло-фиолетовый */
}
.time-slot .status.free::before {
    content: "🟢";
}
.time-slot .status.busy::before {
    content: "🔴";
}
.time-slot .status.lunch::before {
    content: "🍽️";
}

/* Основной контент */
.main-content {
    flex-grow: 1;
    margin-left: 20px;
}
#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
#menu button {
    padding: 10px 20px;
    font-size: 16px;
}
.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.section.hidden {
    display: none;
}
#output {
    margin-top: 30px;
    padding: 15px;
    background: #e9f5ff;
    border-radius: 8px;
}
#doctorsList, #patientsList {
    max-height: 300px;
    overflow-y: auto;
}
.doctor-card, .patient-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.doctor-card button, .patient-card button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}