@font-face {
    font-family: 'MyFont';
    src: url('fonts/ArodoraPro-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ArodoraCursive';
    src: url('fonts/ArodoraPro-LightItalic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ОБЩИЙ СБРОС ДЛЯ ВСЕХ СТРАНИЦ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Дополнительно для iOS Safe Area */
body {
    padding-bottom: env(safe-area-inset-bottom);
}

/* ОБЩИЕ СТИЛИ */
.logo-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    width: 240px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.title-wrapper {
    width: 100vw;
    background: #cee4f9;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
}

.title-with-lines {
    text-align: center;
    font-weight: normal;
    padding: 15px 0;
    margin: 0;
    color: #000;
    background: #E7F3FF;
    width: 100%;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.back-link {
    position: static;
    margin: 10px 0 20px;
    align-self: flex-start;
    display: inline-block;
}

.back-link img {
    width: 39.0625px;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    flex: 1;
    max-width: 420px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 16px;
    color: #000;
}

.label-text {
    margin-bottom: 8px;
    font-weight: 500;
}

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ */
.index-page,
.question-page,
.request-page,
.tests-page,
.test-page,
.individual-page,
.group-page {
    background-color: #cee4f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'MyFont', Arial, sans-serif;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.index-page {
    font-family: Arial, sans-serif;
}

.index-page header,
.index-page footer {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.index-page .logo-bottom {
    width: 48px;
    height: auto;
}

.index-page main {
    width: 100%;
    max-width: 390px;
    padding: 0 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.index-page .btn {
    width: 100%;
    max-width: 360px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    background-color: #ebe8ff;
    color: #000000;
    border-radius: 200px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 300;
    font-family: 'MyFont', sans-serif;
    transition: all 0.2s ease;
    border: 3px solid #000;
}

.index-page .btn:hover:not(.disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.index-page .btn:active {
    background-color: #3a56c9;
    color: #fff;
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
    width: 100%;
    max-width: 360px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    background-color: #cac8db;
    color: #3f3e3e;
    border-radius: 200px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 300;
    font-family: 'MyFont', sans-serif;
    transition: background-color 0.3s ease;
    border: 3px solid #2b2b2b;
}

/* ===== СТРАНИЦА С ВОПРОСОМ ===== */
.question-page .title-with-lines {
    font-size: 24px;
}

.question-page .back-link {
    margin-bottom: 15px;
}

.question-page .form label {
    font-size: 20px;
}

.question-input {
    resize: none;
    overflow: hidden;
    line-height: 1.4;
    padding: 15px;
    border-radius: 200px;
    border: 2px solid #000;
    font-size: 16px;
    font-family: "ArodoraCursive", sans-serif;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    margin-top: 5px;
}

.question-input::placeholder {
    color: #999;
    font-style: italic;
}

.question-page .hint-container {
    position: relative;
    margin-top: 6px;
    margin-bottom: 12px;
    display: flex;
    border: none;
    border-radius: 0;
    padding: 0;
    background-color: none;
    justify-content: flex-start;
}

.question-page .hint-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-page .hint-button img {
    width: 24px;
    height: 24px;
    display: block;
}

.question-page .hint-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 40px;
    left: 0;
    width: 260px;
    background: #DEDDFF;
    color: #000000;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    transition: 0.3s;
    z-index: 10;
    text-align: left;
    border: 1px solid #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-page .hint-container:hover .hint-text {
    visibility: visible;
    opacity: 1;
}

.question-page .submit-row {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.question-page .submit-button {
    width: 100%;
    max-width: 360px;
    padding: 15px;
    border-radius: 200px;
    border: 3px solid #000;
    background-color: #ebe8ff;
    color: #000;
    font-size: 18px;
    font-family: 'MyFont', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto;
}

.question-page .submit-button:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== СТРАНИЦА ЗАЯВКИ ===== */
.request-page .title-with-lines {
    font-size: 24px;
}

.request-page .back-link {
    margin-top: 12px;
    margin-bottom: 10px;
}

.request-page .form {
    gap: 15px;
}

.request-page label {
    font-size: 20px;
}

.request-page input,
.request-page .text-input {
    margin-top: 6px;
    padding: 12px;
    border-radius: 200px;
    border: 2px solid #000;
    font-size: 16px;
    font-family: "ArodoraCursive", sans-serif;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
}

.request-page .hint-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.request-page .hint-button img {
    width: 30px;
    height: auto;
    display: block;
}

.request-page .hint-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 32px;
    bottom: 18px;
    width: 190px;
    padding: 8px 10px;
    background-color: #DDDEFE;
    color: #000;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #000;
    font-size: 18px;
    transition: 0.3s;
}

.request-page .hint-wrapper:hover .hint-text {
    visibility: visible;
    opacity: 1;
}

.request-page .submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.request-page .submit-button {
    width: 100%;
    max-width: 360px;
    padding: 15px;
    border-radius: 200px;
    border: 3px solid #000;
    background-color: #ebe8ff;
    color: #000;
    font-size: 18px;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.request-page .submit-button:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ КАЛЕНДАРЯ ===== */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input {
    margin-top: 0;
    padding: 12px 40px 12px 15px;
    border-radius: 20px;
    border: 1px solid #000;
    font-size: 16px;
    font-family: "ArodoraCursive", sans-serif;
    background-color: #E7F3FF;
    width: 100%;
    cursor: pointer;
}

.calendar-icon-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #3a56c9;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.calendar-icon-btn:hover {
    color: #1e3a8a;
}

/* Контейнер календаря - УМЕНЬШЕНА ГРАНИЦА */
.calendar-container {
    background-color: #E7F3FF;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #000; /* Уменьшена с 2px до 1px */
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #3a56c9;
    padding: 5px;
    border-radius: 5px;
}

.calendar-month-year {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th {
    font-weight: 500;
    font-size: 14px;
    color: #555;
    padding: 5px 0;
    text-align: center;
}

.calendar-table td {
    width: 14.28%;
    height: 44px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #000;
    cursor: pointer;
    background-color: #E7F3FF;
    font-size: 15px;
    transition: background-color 0.2s;
}

.calendar-table td.selected {
    background-color: #3a56c9;
    color: #fff;
    font-weight: 600;
}

.calendar-table td.past-day {
    background-color: #E7F3FF;
    color: #aaa;
    cursor: not-allowed;
}

.calendar-table td.past-day:hover {
    background-color: transparent;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    display: inline-block;
}

.selected-color {
    background-color: #3a56c9;
}

/* ===== СТРАНИЦА ИНДИВИДУАЛЬНЫХ ЗАНЯТИЙ ===== */
.individual-page .title-with-lines {
    font-size: 20px;
}

.individual-page .title-wrapper {
    margin-bottom: 8px;
}

.individual-page .date-input {
    background-color: #E7F3FF;
}

.individual-page .calendar-table td.available {
    background-color: #FFCAB2;
    font-weight: 600;
}

.individual-page .available-color {
    background-color: #FFA500;
}

.individual-page .time-slots-container {
    background: none;
    border-radius: 0;
    padding: 0 15px;
    box-shadow: none;
    border: none;
    margin-top: 10px;
}

.individual-page .time-slots-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #000;
}

.individual-page .time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.individual-page .time-slot-btn {
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #3a56c9;
    background-color: white;
    color: #3a56c9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
    text-align: center;
    font-family: 'MyFont', sans-serif;
}

.individual-page .time-slot-btn:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.individual-page .time-slot-btn.selected {
    background-color: #3a56c9;
    color: #fff;
}

.individual-page .time-slot-btn.booked {
    background-color: #f0f0f0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
}

.individual-page .submit-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.individual-page .submit-button {
    width: 100%;
    max-width: 360px;
    padding: 15px;
    border-radius: 200px;
    border: 1px solid #000;
    background-color: #ebe8ff;
    color: #000;
    font-size: 18px;
    font-family: 'MyFont', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
    display: block;
}

.individual-page .submit-button:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



.individual-page .submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== СТРАНИЦА ГРУППОВЫХ ЗАНЯТИЙ ===== */
.group-page .title-with-lines {
    font-size: 20px;
}

.group-page .title-wrapper {
    margin-bottom: 8px; /* Исправлено с 20px */
}

.group-page .calendar-table td.available {
    background-color: #4CAF50;
    color: white;
    font-weight: 600;
}

.group-page .calendar-table td.available:hover {
    background-color: #45a049;
}

.group-page .calendar-table td.full {
    background-color: #FF9800;
    color: white;
    font-weight: 600;
    cursor: not-allowed;
}

.group-page .available-color {
    background-color: #4CAF50;
}

.group-page .full-color {
    background-color: #FF9800;
}

.group-page .time-slots-container {
    background: none;
    border-radius: 0;
    padding: 0 15px;
    box-shadow: none;
    border: none;
    margin-top: 10px;
}

.group-page .time-slots-title {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #000;
    padding: 5px 0;
    font-family: 'MyFont', sans-serif;
}

.group-page .time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.group-page .time-slot-btn {
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #4CAF50;
    background-color: white;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
    font-family: 'MyFont', sans-serif;
    position: relative;
}

.group-page .time-slot-btn:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.group-page .time-slot-btn.selected {
    background-color: #3a56c9;
    color: #fff;
}

.group-page .time-slot-btn.full {
    border-color: #FF9800;
    color: #FF9800;
    cursor: not-allowed;
}

.group-page .time-slot-btn.full:hover:not(:disabled) {
    background-color: #FF9800;
    color: white;
}

.group-page .group-info {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
}

.group-page .group-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.group-page .group-details {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.group-page .group-details p {
    margin: 4px 0;
}

.group-page .submit-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.group-page .submit-button {
    width: 100%;
    max-width: 360px;
    padding: 15px;
    border-radius: 200px;
    border: 1px solid #000;
    background-color: #ebe8ff;
    color: #000;
    font-size: 18px;
    font-family: 'MyFont', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
    display: block;
}

.group-page .submit-button:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.group-page .submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ОБЩИЕ СТИЛИ ДЛЯ ТЕКСТОВЫХ ПОЛЕЙ (похожие на поле даты) */
.text-input {
    margin-top: 0;
    padding: 12px 15px;
    border-radius: 20px;
    border: 1px solid #000;
    font-size: 16px;
    font-family: "ArodoraCursive", sans-serif;
    background-color: #E7F3FF;
    width: 100%;
    color: #000;
}

/* Стили для placeholder */
.text-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Стили для focus состояния */
.text-input:focus {
    outline: none;
    border-color: #3a56c9;
    box-shadow: 0 0 0 2px rgba(58, 86, 201, 0.1);
}

/* ===== СТРАНИЦЫ ТЕСТОВ ===== */
.tests-page .title-with-lines,
.test-page .title-with-lines {
    font-size: 24px;
    padding: 6px 0;
}

.tests-page .title-wrapper,
.test-page .title-wrapper {
    padding: 4px 0;
    margin-bottom: 12px;
}

.tests-page .tests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.tests-page .test-button {
    width: 100%;
    padding: 16px 20px;
    background-color: #E7F3FF;
    color: #000;
    border: 2px solid #000;
    border-radius: 14px;
    font-size: 18px;
    font-family: 'MyFont', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tests-page .test-button:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tests-page .test-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-page .test-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin-top: 10px;
}

.test-page .questions-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.test-page .question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
    line-height: 1.4;
}

.test-page .answer-input {
    margin-top: 10px;
    padding: 15px;
    border-radius: 20px;
    border: 2px solid #000;
    font-size: 16px;
    font-family: "ArodoraCursive", sans-serif;
    background-color: #E7F3FF;
    width: 100%;
    height: 50px ;
    resize: none;
}

.test-page .answer-input:focus {
    outline: none;
    border-color: #3a56c9;
    box-shadow: 0 0 0 3px rgba(58, 86, 201, 0.1);
}

.test-page .submit-button {
    width: 100%;
    max-width: 360px;
    padding: 16px;
    border-radius: 200px;
    border: 3px solid #000;
    background-color: #EBE8FF;
    color: #000;
    font-size: 18px;
    font-family: 'MyFont', sans-serif;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    transition: background-color 0.2s ease;
}

.test-page .submit-button:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.test-page .submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.test-page .question-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.test-page .option-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Скрываем стандартный radio button */
.test-page .option-radio {
    display: none;
}

/* Стиль для метки, которая выглядит как поле ввода */
.test-page .option-label {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-radius: 20px;
    border: 1px solid #000;
    font-size: 16px;
    font-family: "ArodoraCursive", sans-serif;
    background-color: #E7F3FF;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Стиль при наведении */
.test-page .option-label:hover {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Стиль для выбранного варианта */
.test-page .option-radio:checked + .option-label {
    background-color: #d1e5ff;
    border-color: #3a56c9;
    border-width: 2px;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(58, 86, 201, 0.1);
}

/* Индикатор выбора (точка) */
.test-page .option-label::before {
    content: '';
    position: absolute;
    right: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #000;
    background-color: transparent;
    transition: all 0.2s ease;
}

.test-page .option-radio:checked + .option-label::before {
    background-color: #3a56c9;
    border-color: #3a56c9;
}

/* Адаптивность */
@media (max-width: 400px) {
    .container {
        padding: 15px;
        max-width: 95%;
    }
    
    .title-with-lines {
        font-size: 18px;
        padding: 12px 0;
    }
    
    .logo {
        width: 160px;
    }
    
    .back-link img {
        width: 34.375px;
    }
    
    .calendar-table td {
        padding: 10px 3px;
        font-size: 14px;
    }
    
    .individual-page .time-slot-btn,
    .group-page .time-slot-btn {
        min-width: 70px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .individual-page .submit-button,
    .group-page .submit-button,
    .test-page .submit-button {
        font-size: 16px;
        padding: 15px;
    }
}


/* Стили для кнопки авторизации Telegram */
#telegram-auth-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0088cc, #0077b3);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'MyFont', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    z-index: 10000;
}

#telegram-auth-btn:hover {
    background: linear-gradient(135deg, #0077b3, #006699);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
    transform: translateY(-2px);
}

#telegram-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

/* Стиль для заблокированных кнопок */
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}



/* Стили для подсказки о заявке */
.application-prompt .prompt-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.application-prompt button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.application-prompt button:first-child {
    background-color: #0088cc;
    color: white;
}

.application-prompt button:last-child {
    background-color: #f0f0f0;
    color: #333;
}

/* Добавьте в style.css */

/* Статус пользователя */
.user-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

#user-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.approved {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.submitted {
    background-color: rgba(0, 123, 255, 0.15);
    color: #004085;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-badge.required {
    background-color: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Кнопки на главной */
a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

a.disabled::after {
    position: absolute;
    right: 10px;
    font-size: 14px;
}

/* Статус заявки на странице request */
.application-status {
    margin-bottom: 20px !important;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.application-status p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.application-status .hint {
    color: #888;
    font-size: 13px;
    font-style: italic;
}



/* Добавьте эти стили в конец style.css */

/* Стили для неактивных (серых) кнопок */
.index-page .btn.disabled {
    background-color: #cac8db !important;
    color: #666 !important;
    border-color: #999 !important;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Стили для активных кнопок */
.index-page .btn {
    background-color: #ebe8ff;
    color: #000000;
    border: 3px solid #000;
    opacity: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.index-page .btn:hover:not(.disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Эффект при нажатии на активные кнопки */
.index-page .btn:active {
    background-color: #3a56c9;
    color: #fff;
}

/* Анимация появления/исчезновения кнопок */
.index-page a[href="request.html"] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Плавное скрытие кнопки заявки */
.index-page a[href="request.html"][style*="display: none"] {
    display: block !important;
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Плавное появление кнопок занятий */
.index-page #individualBtn,
.index-page #groupBtn {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Иконка замка для неактивных кнопок */
.index-page .btn.disabled::before {
    margin-right: 8px;
    font-size: 14px;
}

/* Подсказки при наведении */
.index-page .btn.disabled:hover::after {
    content: attr(title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Адаптивность для подсказок */
@media (max-width: 768px) {
    .index-page .btn.disabled:hover::after {
        font-size: 10px;
        padding: 4px 8px;
        top: -35px;
    }
}

/* Убедитесь, что календарь изначально скрыт */
.calendar-container {
    display: none; /* Скрыт по умолчанию */
    margin-top: 15px;
    /* остальные стили остаются */
}

/* Класс для показа календаря */
.calendar-container.visible {
    display: flex;
}

/* group-page.css - изменить цвет доступных дней с зеленого на #FFCAB2 */

.group-page .calendar-table td.available {
    background-color: #FFCAB2 !important; /* Изменено с #4CAF50 */
    color: #000 !important; /* Черный текст для контраста */
    font-weight: 600;
}

.group-page .calendar-table td.available:hover {
    background-color: #ffb08f !important; /* Более темный оттенок при наведении */
}

.group-page .available-color {
    background-color: #FFCAB2 !important; /* Для легенды */
}

.group-page .time-slot-btn {
    border: 2px solid #FFCAB2 !important; /* Цвет рамки кнопок времени */
    color: #000 !important; /* Черный текст */
}

.group-page .time-slot-btn:hover:not(:disabled) {
    background-color: #3a56c9 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.group-page .time-slot-btn.selected {
    background-color: #3a56c9 !important;
    color: #fff !important;
}

/* Добавьте в конец файла */

/* Стили для индикаторов загрузки */
.loading-time,
.no-lessons,
.error-time {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    font-family: 'MyFont', sans-serif;
}

.error-time {
    color: #ff4444;
}

/* Стили для информации о группе */
.group-page .group-info {
    background-color: #fff8f5;
    border: 1px solid #FFCAB2;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.group-page .group-info h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.group-page .group-details {
    font-size: 14px;
    line-height: 1.5;
}

.group-page .group-details p {
    margin: 5px 0;
}

.group-page .group-details strong {
    color: #555;
    min-width: 100px;
    display: inline-block;
}

/* Подсказки для кнопок времени */
.time-slot-btn[title] {
    position: relative;
}

.time-slot-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}


.group-page .time-slot-btn {
    padding: 10px 15px;
    border-radius: 200px;
    border: 1px solid #000 !important; /* Изменено с 2px solid #4CAF50 на 1px solid #000 */
    background-color: #E7F3FF !important; /* Изменено с white на #E7F3FF */
    color: #000 !important; /* Изменено с #4CAF50 на #000 */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
    font-family: 'MyFont', sans-serif;
    position: relative;
}

.group-page .time-slot-btn:hover:not(:disabled) {
    background-color: #3a56c9 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.group-page .time-slot-btn.selected {
    background-color: #3a56c9 !important;
    color: #fff !important;
}

.group-page .time-slot-btn.full {
    border-color: #ccc !important; /* Светло-серый для заблокированных */
    color: #999 !important;
    cursor: not-allowed;
    background-color: #f5f5f5 !important;
}

.group-page .time-slot-btn.full:hover:not(:disabled) {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}


.individual-page .time-slot-btn {
    padding: 10px 15px;
    border-radius: 200px;
    border: 1px solid #000 !important; /* Изменено с 2px solid #4CAF50 на 1px solid #000 */
    background-color: #E7F3FF !important; /* Изменено с white на #E7F3FF */
    color: #000 !important; /* Изменено с #4CAF50 на #000 */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
    font-family: 'MyFont', sans-serif;
    position: relative;
}

.individual-page .time-slot-btn:hover:not(:disabled) {
    background-color: #3a56c9 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.individual-page .time-slot-btn.selected {
    background-color: #3a56c9 !important;
    color: #fff !important;
}

.individual-page .time-slot-btn.full {
    border-color: #ccc !important; /* Светло-серый для заблокированных */
    color: #999 !important;
    cursor: not-allowed;
    background-color: #f5f5f5 !important;
}

.individual-page .time-slot-btn.full:hover:not(:disabled) {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

/* Стили для кнопок, на которые пользователь уже записан */
.individual-page .time-slot-btn.user-booked,
.group-page .time-slot-btn.user-booked {
    border-color: #999 !important;
    color: #666 !important;
    cursor: not-allowed;
    background-color: #f0f0f0 !important;
    opacity: 0.7;
}

.individual-page .time-slot-btn.user-booked:hover:not(:disabled),
.group-page .time-slot-btn.user-booked:hover:not(:disabled) {
    background-color: #f0f0f0 !important;
    color: #666 !important;
    opacity: 0.7;
}

/* Адаптивность для вариантов ответов */
@media (max-width: 400px) {
    .test-page .option-label {
        padding: 12px 15px;
        font-size: 15px;
        min-height: 45px;
    }
    
    .test-page .option-label::before {
        right: 15px;
        width: 18px;
        height: 18px;
    }
    
    .test-page .question-text {
        font-size: 16px;
    }
    
    .test-page .answer-input {
        padding: 12px;
        height: 45px !important;
        font-size: 15px;
    }
}

/* Анимация для выбора варианта */
@keyframes optionSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

.test-page .option-label:active {
    animation: optionSelect 0.2s ease;
}

/* ===== СТИЛИ ДЛЯ РЕЗУЛЬТАТОВ ТЕСТА ===== */
.test-results {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 20px;
    border: 2px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.test-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.test-results-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

.test-results-score {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a56c9 0%, #5a7ae8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #000;
    box-shadow: 0 4px 12px rgba(58, 86, 201, 0.3);
}

.score-percent {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.test-results-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #000;
    font-size: 16px;
}

.stat-correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.stat-incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.stat-not-answered {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.stat-label {
    font-weight: 600;
    color: #000;
}

.stat-value {
    font-weight: 700;
    font-size: 18px;
}

.test-results-details {
    margin-top: 30px;
}

.test-results-details h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #000;
    background-color: #f8f9fa;
}

.detail-correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.detail-incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.detail-not-answered {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.detail-no-answer {
    background-color: #e9ecef;
    border-color: #6c757d;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.detail-number {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.detail-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.status-icon {
    font-size: 20px;
    font-weight: 700;
}

.detail-correct .status-icon {
    color: #28a745;
}

.detail-incorrect .status-icon {
    color: #dc3545;
}

.detail-not-answered .status-icon {
    color: #ffc107;
}

.detail-question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.detail-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-answer-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.answer-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.answer-value {
    font-size: 16px;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #000;
}

.answer-value.correct {
    background-color: #d4edda;
    border-color: #28a745;
    font-weight: 600;
}

.test-results-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.back-to-tests-button {
    padding: 15px 30px;
    background-color: #3a56c9;
    color: #fff;
    border: 2px solid #000;
    border-radius: 200px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'MyFont', sans-serif;
}

.back-to-tests-button:hover:not(:disabled) {
    background-color: #3a56c9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для результатов теста */
@media (max-width: 768px) {
    .test-results {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .test-results-header h2 {
        font-size: 24px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-percent {
        font-size: 30px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .back-to-tests-button {
        width: 100%;
        padding: 14px;
    }
}