body {
    font-family: Arial, sans-serif;
}

.select-container {
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.select-group, .select-teacher, .select-date {
    display: flex;
    flex-direction: column;
}

.select-group label, .select-teacher label, .select-date label {
    font-weight: bold;
    margin-bottom: 5px;
}

.custom-select {
    width: 300px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f8f8f8;
    height: auto;
    min-height: 100px;
    overflow-y: auto;
}

.custom-select option {
    padding: 10px;
}

.custom-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

td.empty-cell {
    background-color: #d0e8d0 !important;
    border: 1px solid #a5d6a7 !important;
}


#date-picker {
    width: 300px;
    height: 20px;
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f8f8f8;
}

button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: top;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
    padding: 10px;
}

th:first-child, td:first-child {
    text-align: left;
    padding-left: 15px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: #fff;
}

tr:hover {
    background-color: #f1f1f1;
}

td {
    min-height: 60px;
    border-top: outset;
}

.lesson {
    margin: 5px 0;
    padding: 8px;
    border-radius: 3px;
    text-align: left;
    border-left: 4px solid transparent;
    padding-left: 12px;
}

.lesson.lecture {
    border-left-color: #52c41a;
}

.lesson.practice {
    border-left-color: #ffa940;
}

.lesson.lab {
    border-left-color: #1890ff;
}

.lesson.default {
    border-left-color: #ccc;
}

.lesson-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.lesson-details {
    font-size: 13px;
    color: #555;
}
.stream-details {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-details[open] {
    white-space: normal;
    word-break: break-word;
}

.stream-content {
    max-height: 100px;
    overflow-y: auto;
    word-break: break-word;
}

summary {
    cursor: pointer;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: '+';
    margin-left: 5px;
}

details[open] summary:after {
    content: '-';
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}