@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700;900&display=swap');

/* Общие стили */
body, html {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f4f8f7;
    padding: 0 15px 0 15px;
}

a {
    text-decoration: none;
}


.popular-courses-title { font-family:'Comfortaa', cursive, sans-serif; font-size:40px; font-weight:600; margin-bottom:40px; margin-top:0; color:#18181b; letter-spacing:.02em; text-align:left; }

.main-content {
    width: 100vw;
    background: transparent;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

/* Контейнер */
.container {
    max-width: 1780px;
    margin: 30px auto;
    border-radius: 25px;
}

/* Шапка */
header {
    background-color: #222;
    border-radius: 50px;
    padding: 8px 30px;
    margin: 10px auto 0px auto;
    max-width: 1720px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 4px 20px;
}

.logo a {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
}

.navbar-center {
    display: flex;
    gap: 0px;
}

.navbar-center .nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.navbar-center .nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.navbar-user {
    display: flex;
    align-items: center;
    position: relative;
}

.user-avatar-dropdown {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    border-radius: 999px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.user-avatar-dropdown:hover {
    background-color: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

.avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e6ed;
    background: #fff;
    flex-shrink: 0;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 18px;
    color: #fff;
    transition: transform 0.2s;
}

.user-avatar-dropdown:hover .dropdown-arrow,
.user-avatar-dropdown:focus .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: -20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(112,125,255,0.10);
    min-width: 200px;
    z-index: 200;
    flex-direction: column;
    padding: 12px 0;
}

.user-avatar-dropdown.open .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    color: #2c3e50;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: #f0f4ff;
    color: #707DFF;
}

/* Заголовки и кнопки */
h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

button, .cta-button {
    padding: 10px 22px;
    background-color: #707DFF;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.2s;
}

.navbar button {
    background-color: #6c77ff;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 500;
    color: #fff;
    border: none;
    font-size: 16px;
}

.navbar button:hover {
    background-color: #5c6de0;
}

button:hover, .cta-button:hover {
    background-color: #5c6de0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Блоки редактора уроков */
#editor-blocks {
    margin-top: 20px;
}

.block {
    border: 1px solid #e0e6ed;
    padding: 18px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 12px;
    position: relative;
}

.text-block textarea, .code-block textarea {
    width: 100%;
    min-height: 130px;
    border: 1px solid #d1d9e6;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    resize: vertical;
    background-color: #fafbfc;
}

.code-output {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    font-family: monospace;
}

.add-block-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.add-block-buttons button, .lesson-controls button {
    margin: 5px 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 15px;
}

.delete-block {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-block:hover {
    background-color: #c82333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .nav-links li {
        margin: 5px 0;
    }
    h1, h2, h3 {
        text-align: center;
    }
    .add-block-buttons {
        flex-direction: column;
    }
    .add-block-buttons button {
        margin: 5px 0;
    }
}

.lesson-controls {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lesson-controls h3 {
    width: 100%;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

video{
    border-radius: 20px;
}

img {
    border-radius: 20px;
}


/* Course Card styling */
.course-card {
    border: 1px solid #e0e6ed;
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 20px;
    list-style: none;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.course-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.course-description p {
    margin-bottom: 0.6em;
    line-height: 1.6;
    color: #4a4a4a;
}

.course-description {
    font-size: 15px;
}

/* Course Structure Nested Visual Styling */
#course-structure {
    margin-top: 30px;
}

.module {
    border: 1px solid #d0d7e2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: #fdfdfd;
}

.module > h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #2d3e50;
}

.section {
    border-left: 3px solid #4a90e2;
    margin-left: 20px;
    padding-left: 16px;
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #f9fbff;
    border-radius: 8px;
}

.section > h4 {
    margin-top: 0;
    font-size: 17px;
    color: #34495e;
}

.lessons {
    margin-left: 20px;
    padding-left: 0;
    list-style-type: none;
    font-size: 15px;
    color: #2c3e50;
}

.lessons .lesson {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border: 1px solid #d0d7e2;
    border-left: 3px solid #7f8c8d;
    border-radius: 10px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: background-color 0.2s;
}

.lessons .lesson:hover {
    background-color: #f2f6ff;
}

.editable-module-title,
.editable-section-title {
    outline: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
}

.editable-module-title:focus,
.editable-section-title:focus {
    border-color: #4a90e2;
    background-color: #eef5ff;
}

button.delete-module-button,
button.delete-section-button,
button.add-section-button,
button.add-lesson-button,
button.delete-lesson-button {
    margin: 5px 8px 5px 0;
}
.editable-lesson-title {
    font-size: 16px;
    font-weight: 500;
    outline: none;
    margin-right: 15px;
    flex-grow: 1;
}

.lesson-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

#editable-title {
    outline: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
}

#editable-title:focus {
    border-color: #4a90e2;
    background-color: #eef5ff;
}

.editable-lesson-title:focus {
    border-color: #4a90e2;
    background-color: #eef5ff;
    border-bottom: 1px dashed #4a90e2;
}



.course-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.course-card-wrapper {
    flex: 0 0 calc(50% - 30px);
    max-width: calc(50% - 30px);
    background-color: #fff;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.course-card-text {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.course-card-type {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.course-card-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 20px;
    margin-left: 20px;
}

.course-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
    font-size: 18px;
}

.course-carousel-nav .nav-button {
    width: 44px;
    height: 44px;
    border: 2px solid #111;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.course-carousel-nav .nav-button:hover {
    background-color: #707DFF;
    color: #fff;
    border-color: #707DFF;
}

/* Добавленные стили для выравнивания кнопок внизу карточки курса */
.course-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}
.course-card-actions button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
    background-color: #707DFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.course-card-actions button:hover {
    background-color: #5c6de0;
}

.course-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.course-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.card-text {
    flex-grow: 1;
}

.card-text .course-label {
    font-size: 13px;
    color: #777;
    margin: 0 0 5px 0;
}

.card-text .course-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.card-text .course-date {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.card-image img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    margin-left: 20px;
}

.card-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.card-buttons button {
    padding: 10px 20px;
    background-color: #707DFF;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-buttons button:hover {
    background-color: #5c6de0;
}

.tox-tinymce {
    border-radius: 20px !important;
    --toolbar-button-border-radius: 8px;
}


/* .tox-toolbar__group { 
    padding: 4px 6px; 
    border-radius: 12px;
}
.tox .tox-button, .tox .tox-tbtn {
    border-radius: 10px limportant;
} */

button {
    border-radius: 25px !important;
}


.lesson-title {
    font-size: 16px;
}

.code-output {
    white-space: pre-wrap; /* сохраняет переносы строк */
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 8px;
  }


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
}

.form-control {
    width: calc(100% - 30px);
    padding: 12px 15px;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #707DFF;
    box-shadow: 0 0 0 3px rgba(112, 125, 255, 0.1);
    outline: none;
}

.photo-upload-container {
    margin-top: 10px;
}

.photo-input {
    display: none;
}

.photo-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f7fa;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    cursor: pointer;
    color: #2c3e50;
    font-size: 14px;
    transition: all 0.3s;
}

.photo-upload-button:hover {
    background: #e9ecef;
    border-color: #d0d7e2;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #707DFF;
    color: white;
}

.btn-primary:hover {
    background: #5c6de0;
    box-shadow: 0 4px 12px rgba(112, 125, 255, 0.2);
}

.courses-section,
.my-courses-section {
    background: #fff;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.my-courses-section {
    margin-top: 32px;
}

.courses-section h2,
.my-courses-section h2 {
    margin: 0 0 20px 0 !important;
    color: #2c3e50 !important;
    font-size: 24px !important;
    font-weight: 600;
}


.course-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;



.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 25px 25px 0 0;
}

.card-text {
    padding: 20px;
}

.course-label {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.course-title {
    margin: 8px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.course-date {
    color: #666;
    font-size: 13px;
    margin: 5px 0;
}

.card-buttons {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #d0d7e2;
    margin-bottom: 15px;
}

.empty-state p {
    margin: 10px 0 20px;
    font-size: 15px;
}

@media (max-width: 768px) {
    
    .course-cards {
        grid-template-columns: 1fr;
    }
}

/* --- Новый корпоративный стиль календаря (как на последнем скриншоте) --- */
.calendar-outer-container {
    background: #fff;
    border-radius: 36px;
    box-shadow: 0 8px 48px rgba(112,125,255,0.10);
    padding: 48px 56px 48px 56px;
    margin: 40px auto;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}
@media (max-width: 1200px) {
    .calendar-outer-container {
        flex-direction: column;
        padding: 24px 8px;
        gap: 24px;
    }
}
.calendar-sidebar {
    min-width: 320px;
    max-width: 340px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
#mini-calendar {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 24px rgba(112,125,255,0.07);
    padding: 18px 12px 8px 12px;
}
#mini-calendar .datepicker {
    width: 100%;
    font-size: 1.13rem;
    border-radius: 18px;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
}
#mini-calendar .datepicker-days th {
    color: #b3b3c6;
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 6px;
}
#mini-calendar .datepicker-days td {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    font-size: 15px;
    color: #222;
    transition: background 0.18s, color 0.18s;
}
#mini-calendar .datepicker-days td.active,
#mini-calendar .datepicker-days td.selected,
#mini-calendar .datepicker-days td.today {
    background: #707DFF;
    color: #fff;
    font-weight: 700;
}
#mini-calendar .datepicker-days td:hover {
    background: #f3f0ff;
    color: #707DFF;
}
#mini-calendar .datepicker-switch {
    font-weight: 700;
    color: #707DFF;
    font-size: 16px;
}
.calendar-sidebar .calendar-list {
    margin-top: 24px;
    color: #b3b3c6;
    font-size: 15px;
    font-weight: 500;
    padding-left: 0;
}
.calendar-sidebar .calendar-list li {
    margin-bottom: 8px;
    padding-left: 0;
}
.calendar-sidebar .calendar-list li.active {
    color: #707DFF;
    font-weight: 700;
}
.calendar-form {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.calendar-form input,
.calendar-form select {
    border-radius: 16px;
    border: 1px solid #e0e6ed;
    background: #fff;
    box-shadow: 0 2px 12px rgba(112,125,255,0.04);
    padding: 12px 18px;
    font-size: 15px;
    color: #222;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.calendar-form input:focus,
.calendar-form select:focus {
    border: 1.5px solid #707DFF;
    box-shadow: 0 2px 16px rgba(112,125,255,0.10);
}
.calendar-form button {
    border-radius: 16px;
    background: #707DFF;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(112,125,255,0.08);
    transition: background 0.18s;
}
.calendar-form button:hover {
    background: #4d36c9;
}
.calendar-main {
    flex: 1;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    overflow: visible;
}
#calendar {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.fc {
    background: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 1.13rem;
}
.fc-toolbar {
    margin-bottom: 0;
    gap: 0;
    padding: 0 0 24px 0;
    justify-content: flex-start;
}
.fc-toolbar-title {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.01em;
}
.fc-button {
    border-radius: 50% !important;
    background: #fff !important;
    color: #b3b3c6 !important;
    border: 1.5px solid #e0e6ed !important;
    box-shadow: none !important;
    font-weight: 700;
    padding: 0 !important;

    min-width: 38px !important;
    min-height: 38px !important;
    font-size: 1.1rem !important;
    transition: background 0.18s, color 0.18s, border 0.18s;
    margin: 0 6px;
}
.fc-button.fc-button-active, .fc-button-active {
    background: #707DFF !important;
    color: #fff !important;
    border: 1.5px solid #707DFF !important;
}
.fc-button:hover, .fc-button:focus {
    background: #f3f0ff !important;
    color: #707DFF !important;
    border: 1.5px solid #707DFF !important;
}
.fc-col-header-cell {
    background: #fff;
    border: none;
    font-size: 1.13rem;
    font-weight: 700;
    color: #b3b3c6;
    padding: 14px 0 8px 0;
    letter-spacing: 0.02em;
}

.fc-timegrid-slot {
    border-bottom: 1px solid #f3f0ff !important;
    background: #fff;
}
.fc-timegrid-slot-label {
    color: #b3b3c6;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 40px;
}
.fc-timegrid-axis-cushion {
    font-size: 1.08rem;
    color: #b3b3c6;
    padding-left: 0;
}
.fc-scrollgrid {
    border-radius: 24px;
    overflow: hidden;
    border: none;
}
.fc-event, .fc-v-event {
    background: none !important;
    color: #707DFF !important;
    border-radius: 18px !important;
    box-shadow: none;
    border: 1.5px solid #e0e6ed !important;
    font-weight: 700;
    padding: 10px 18px;
    font-size: 1.08rem;
    transition: box-shadow 0.18s;
    margin: 2px 0;
}
.fc-event:hover, .fc-v-event:hover {
    background: #f3f0ff !important;
    color: #707DFF !important;
    box-shadow: 0 4px 18px rgba(112,125,255,0.10);
}
.fc-daygrid-day-number {
    font-size: 1.13rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
}
.fc-daygrid-day.fc-day-today {
    background: #f3f0ff !important;
}
.fc .fc-toolbar-chunk {
    gap: 0;
}
.fc .fc-button-group {
    gap: 0;
}
.fc-timegrid-slots tr {
    height: 40px;
}
.fc-timegrid-slot {
    height: 40px !important;
}
.fc-timegrid-slot-label {
    line-height: 40px;
}
.fc-timegrid-axis {
    padding-left: 8px;
}
.fc .fc-timegrid-now-indicator-arrow,
.fc .fc-timegrid-now-indicator-arrow::before,
.fc .fc-timegrid-now-indicator-arrow::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    background: none !important;
}
.fc .fc-timegrid-now-indicator-line {
    border-left: 2px solid #707DFF !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    background: none !important;
    width: 2px !important;
    height: 100% !important;
}
.fc .fc-timegrid-now-indicator {
    border: none !important;
    background: none !important;
    pointer-events: none !important;
}
/* --- конец нового корпоративного стиля календаря --- */

/* --- Адаптация под 2560px --- */
@media (min-width: 2000px) {
    .container, header, .main-content {
        max-width: 1920px;
    }
    .course-cards {
        gap: 40px;
    }
    .students-list {
        gap: 36px;
    }
   


    .course-card, .student-card, .lesson-card-today {
        padding: 40px 48px;
        min-height: 120px;
        border-radius: 32px;
    }


    .btn-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        max-width: 48px;
        max-height: 48px;
    }
    .cover-image, .card-image img {
        height: 220px;
        border-radius: 32px;
    }
    
    
    .calendar-wrapper {
        max-width: 100%;
        padding: 0;
        border-radius: 32px;
    }
    #calendar {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin: 0 auto;
    }
    .fc {
        font-size: 1.2rem;
    }
}
/* --- конец адаптации под 2560px --- */

/* --- Современный дизайн FullCalendar --- */
.fc {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(112,125,255,0.07);
    font-size: 1.12rem;
}
.fc-toolbar {
    margin-bottom: 36px;
    gap: 20px;
}
.fc-toolbar-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #222;
    letter-spacing: 0.01em;
}
.fc-button {
    border-radius: 14px !important;
    background: #f5f6fa !important;
    color: #222 !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 600;
    padding: 10px 22px !important;
    font-size: 1.08rem !important;
    transition: background 0.2s, color 0.2s;
}
.fc-button:hover, .fc-button:focus {
    background: #e0e6ed !important;
    color: #007bff !important;
}
.fc-button-active, .fc-button.fc-button-active {
    background: #707DFF !important;
    color: #fff !important;
}
.fc-col-header-cell {
    background: #fafbfc;
    border: none;
    font-size: 1.13rem;
    font-weight: 800;
    color: #888;
    padding: 18px 0;
    letter-spacing: 0.02em;
}

.fc-timegrid-slot {
    border-bottom: 1px dashed #e0e6ed !important;
    background: #fff;
}
.fc-timegrid-slot-label {
    color: #bbb;
    font-size: 1.08rem;
    font-weight: 600;
}
.fc-timegrid-axis-cushion {
    font-size: 1.08rem;
    color: #bbb;
}
.fc-scrollgrid {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}
.fc-event, .fc-v-event {
    background: linear-gradient(90deg, #707DFF 60%, #4a90e2 100%) !important;
    color: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(112,125,255,0.10);
    border: none !important;
    font-weight: 600;
    padding: 6px 14px;
    font-size: 1.08rem;
    transition: box-shadow 0.2s;
}
.fc-event:hover, .fc-v-event:hover {
    background: linear-gradient(90deg, #5c6de0 60%, #4a90e2 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(112,125,255,0.18);
}
.fc-daygrid-day-number {
    font-size: 1.13rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
}
.fc-daygrid-day.fc-day-today {
    background: #e9f0ff !important;
    border-radius: 14px;
}
.fc .fc-toolbar-chunk {
    gap: 10px;
}
.fc .fc-button-group {
    gap: 10px;
}
/* --- конец современного дизайна FullCalendar --- */

/* Стили для модального окна */
#lessonModal, #viewLessonModal, #editLessonModal {
    display: none; /* По умолчанию скрыто */
    position: fixed; /* Фиксированное позиционирование */
    z-index: 1050; /* Поверх остального контента */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Добавляем прокрутку, если контент большой */
    background-color: rgba(0,0,0,0.4); /* Полупрозрачный фон */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
}

#lessonModal > div, #viewLessonModal > div, #editLessonModal > div {
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 500px; /* Максимальная ширина модального окна */
    width: 90%; /* Ширина окна */
    text-align: left;
    position: relative; /* Для позиционирования элементов внутри */
}

#lessonModal h3,
#viewLessonModal h3,
#editLessonModal h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
}

#lessonModal .form-group,
#editLessonModal .form-group {
    margin-bottom: 15px;
}

#lessonModal label,
#editLessonModal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

#modalSelectedTime {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

#lessonModal input[type="text"],
#lessonModal input[type="datetime-local"],
#lessonModal select,
#editLessonModal input[type="text"],
#editLessonModal input[type="datetime-local"],
#editLessonModal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Учитываем padding в ширине */
}

#lessonModal input[type="text"]:focus,
#lessonModal input[type="datetime-local"]:focus,
#lessonModal select:focus,
#editLessonModal input[type="text"]:focus,
#editLessonModal input[type="datetime-local"]:focus,
#editLessonModal select:focus {
    border-color: #707DFF;
    outline: none;
    box-shadow: 0 0 5px rgba(112, 125, 255, 0.5);
}

#lessonModal button[type="submit"],
#editLessonModal button[type="submit"] {
    background-color: #707DFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#lessonModal button[type="submit"]:hover,
#editLessonModal button[type="submit"]:hover {
    background-color: #5c6de0;
}

#modalCancel,
#viewModalClose,
#editModalCancel {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#modalCancel:hover,
#viewModalClose:hover,
#editModalCancel:hover {
    background-color: #bbb;
}

/* Стили для слота при наведении */
.fc-slot-hover {
    background: #e6eaff !important;
    cursor: pointer;
    transition: background 0.1s;
}

/* Стили для загрузки файлов ответов */
.file-upload-container {
    margin: 15px 0;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.file-upload-area:hover {
    border-color: #707dff;
    background: #f0f4ff;
}

.file-upload-area.has-files {
    border-color: #4ade80;
    background: #f0fff4;
}

.upload-button {
    font-size: 24px;
    color: #707dff;
    margin-bottom: 10px;
    font-weight: bold;
}

.upload-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.ege-task-answer-file {
    display: none;
}

.selected-files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.variant-selected-file-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 200px;
}

.variant-file-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    flex-shrink: 0;
}

.variant-file-name {
    font-size: 12px;
    color: #374151;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.variant-remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-remove-file-btn:hover {
    background: #dc2626;
}

/* Стили для отображения загруженных файлов пользователя на странице результатов */
.user-answer-file {
    margin-top: 8px;
}

.user-answer-file .user-file-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.user-answer-file .user-file-link:hover {
    color: #707dff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #707dff;
}

.user-answer-file .task-file-icon {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    flex-shrink: 0;
}

.user-answer-file .user-file-name {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    word-break: break-word;
}

/* Стили для секции ответов */
.answers-section {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.answers-section.user-answer-full-width {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
}

.user-answer.user-answer-full-width {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}



.user-answer {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.user-answer-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.user-answer-content {
    color: #6c757d;
}

.correct-answer {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e9ecef;
}

.correct-answer-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.correct-answer-content {
    color: #6c757d;
} 