/* Стили для основного шаблона */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e1e1e, #3a3a3a);
    animation: gradientAnimation 5s ease infinite;
    background-size: 400% 400%;
    color: #ddd;
}

/* Анимированный градиентный фон */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Хедер */
header {
    background-color: #222;
    color: white;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

/* Основной контейнер */
.container {
    max-width: 90%;
    margin: 20px auto;
    padding: 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* Заголовок (НЕ ссылка) */
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

/* Меню */
.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end; /* Прижимаем к правому краю */
}

.menu li {
    margin-left: 20px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.menu a:hover {
    color: #ffcc00;
}

/* Кнопка мобильного меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
}

/* Адаптивность меню */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background-color: #222;
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        border-radius: 0 0 5px 5px;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .menu.show {
        display: flex;
    }

    .menu li {
        margin: 10px 0; /* Увеличенный отступ между пунктами */
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }
}

/* Стили для вкладок */
.tabs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Вкладки первого уровня */
.tabs {
    display: flex;
    border-bottom: 2px solid #444;
    padding: 0;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 18px;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.tab.active {
    font-weight: bold;
    border-bottom: 3px solid #ff8c00;
}

/* Вкладки второго уровня */
.sub-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #666;
    padding: 8px 0;
    margin-top: 10px;
}

.sub-tab {
    padding: 10px 16px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.sub-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.sub-tab.active {
    font-weight: bold;
    border-bottom: 2px solid #ff4500;
}

/* Контейнер для изображения */
.tab-content {
    margin-top: 20px;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #666;
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.tab-content img {
    width: 91%;
    max-height: 100%;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

/* Контейнер с видео */
.video-container {
    position: relative;
    width: 90%;
    max-width: 90%;
    margin: 20px auto;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Стили для BPM */
.bpm-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #444;
    padding: 8px 0;
    margin-top: 10px;
}

.bpm-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.bpm-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.bpm-tab.active {
    font-weight: bold;
    border-bottom: 3px solid #ff8c00;
}

/* Улучшение кнопок */
button {
    cursor: pointer;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    color: white;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background: linear-gradient(90deg, #ff4500, #ff8c00);
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(255, 140, 0, 0.3);
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container, .video-container {
    animation: fadeIn 0.8s ease-in-out;
}

.form-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-in-out;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background: #fdfdfd;
    color: #000;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 6px rgba(255, 140, 0, 0.3);
}
/* кнопка выхода */
.menu-logout-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.menu-logout-btn:hover {
    color: #ffcc00;
}

/* Стили для выбора аватара */
.avatar-select {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.avatar-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: border 0.3s ease;
}

.avatar-option input[type="radio"] {
    display: none;
}

.avatar-option img.avatar-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
}

.avatar-option input[type="radio"]:checked + img,
.avatar-option:has(input[type="radio"]:checked) {
    border: 2px solid #ff6600;
    border-radius: 12px;
}

/* Стили для выбора инструментов */
.instrument-select {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.instrument-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
}

.instrument-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 5px;
}

.instrument-option input[type="checkbox"] {
    margin-bottom: 4px;
}


.instrument-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 5px;
}

.comments-block {
    margin-top: 20px;
}

.comment-item {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #ff8c00;
    border-radius: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.comment-reply {
    margin-left: 30px;
    border-left: 2px dashed #999;
    background: rgba(255, 255, 255, 0.02);
}

.comment-meta {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
    color: #ffcc00;
    text-decoration: none;
}

.comment-author:hover {
    text-decoration: underline;
    color: #ffaa00;
}

.comment-date {
    font-size: 12px;
    margin-left: 10px;
    color: #888;
}

.comment-text {
    font-size: 16px;
    margin-bottom: 10px;
    color: #eee;
    line-height: 1.4;
}

.comment-actions form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

.comment-actions textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #1e1e1e;
    color: #fff;
    resize: vertical;
    font-size: 14px;
}

.comment-actions button {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.comment-actions button:hover {
    background: linear-gradient(90deg, #ff4500, #ff8c00);
    transform: scale(1.05);
}

/* === АДАПТИВНАЯ МОБИЛЬНАЯ ВЕРСТКА === */
@media (max-width: 768px) {

    .container {
        padding: 20px;
        border-radius: 10px;
    }

    .form-container {
        padding: 15px;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 15px;
        padding: 8px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .profile-row {
        flex-direction: column;
        gap: 20px;
    }

    .profile-avatar img {
        width: 96px;
        height: 96px;
    }

    .profile-details {
        width: 100%;
    }

    .instrument-select {
        justify-content: center;
    }

    .instrument-option {
        width: 70px;
        font-size: 12px;
    }

    .instrument-img {
        width: 64px;
        height: 64px;
    }

    .comment-item {
        padding: 12px 15px;
    }

    .comment-reply {
        margin-left: 15px;
    }

    .comment-meta {
        font-size: 13px;
    }

    .comment-date {
        font-size: 11px;
    }

    .comment-text {
        font-size: 15px;
    }

    .comment-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-actions textarea {
        font-size: 13px;
    }

    .comment-actions button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        margin-top: 6px;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-likes {
        margin: 10px 0;
    }

    button {
        font-size: 15px;
        padding: 10px 18px;
    }

    .video-container {
        width: 100%;
        padding-bottom: 56.25%;
    }
}

/*стили для статистики*/

.profile-statistics {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ddd;
    margin-top: 30px; /* Отступ сверху, чтобы статистика не прилипала */
}

.profile-statistics p {
    margin: 10px 0;
    font-size: 16px;
}


.profile-statistics strong {
    font-weight: bold;
    color: #ffcc00;
}
/*кнопки на странице авторизации*/
.button-link {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 5px 0 0;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}
.button-link:hover {
    background-color: #0056b3;
}
/* модальные окна*/
.modal-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; /* ещё выше */
}

.modal-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 90%;
    z-index: 1000000 !important;
    position: relative;
}

.fc-view-harness,
.fc-scrollgrid {
    z-index: 0 !important;
    position: relative !important;
}
.modal-box h3 {
    color: #111; /* контрастный чёрный */
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
}

/* Кнопки одинаковые и по центру */
.modal-box button {
    width: 100%;
    max-width: 240px;
    margin: 8px auto;
    display: block;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
}

/* Дата и Время — крупнее, по центру */
.modal-box input[type="date"],
.modal-box input[type="time"],
.modal-box select {
    font-size: 16px;
    padding: 10px 14px;
    width: 80%;
    margin: 10px auto;
    display: block;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Заголовки полей формы внутри модалки */
.modal-box label {
    display: block;
    text-align: center;
    color: #111; /* ярко-чёрный */
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Приводим input[type="time"] к виду input[type="date"] */
.modal-box input[type="number"],
.modal-box input[name="hour"],
.modal-box input[type="time"] {
    font-size: 17px;
    padding: 12px 16px;
    width: 80%;
    margin: 10px auto;
    display: block;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}


/*стили календаря */
#calendar {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px;
}

.fc-event {
    border-radius: 12px !important;
    padding: 4px 6px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2) !important;
    border: none !important;
    margin-top: 4px;   /* отступ сверху */
    margin-bottom: 4px; /* отступ снизу */
}
/* Убираем возможный padding и background от внутренних элементов */
.fc-event .fc-event-title,
.fc-event .fc-event-main {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
/* если всё же какая-то внутренняя тень/рамка тянется от .fc-event-main-frame (актуально для FullCalendar 6+) */
.fc-event .fc-event-main-frame {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* Стилизация событий календаря по цвету */
.fc-event[style*="background-color:green"] {
    background-color: #00c853 !important;  /* Свободно */
    color: #fff !important;
}

.fc-event[style*="background-color:blue"] {
    background-color: #1e88e5 !important;  /* Записан */
    color: #fff !important;
}

.fc-event[style*="background-color:red"] {
    background-color: #e53935 !important;  /* Отказано */
    color: #fff !important;
}

.fc-event[style*="background-color:gold"] {
    background-color: #fdd835 !important;  /* Запрошено */
    color: #000 !important;
}

.fc-event[style*="background-color:orange"] {
    background-color: #ff8f00 !important;  /* Предложено преподавателем */
    color: #fff !important;
}
.styled-calendar {
    margin-top: 40px;
}

.fc .fc-scrollgrid {
    border-radius: 14px;
    overflow: hidden;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    font-weight: bold;
    color: #fff;
}

/* Убираем ВСЕ границы и обводки у слотов */
.fc-event,
.fc-event * {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Убираем возможные остаточные бордеры от фреймов/внутренностей */
.fc-event-main,
.fc-event-main-frame,
.fc-event-time,
.fc-event-title,
.fc-event-title-container,
.fc-event .fc-bg {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Убираем возможные псевдоэлементы */
.fc-event::before,
.fc-event::after,
.fc-event *::before,
.fc-event *::after {
    content: none !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Убираем "контур" у скруглений (если есть) */
.fc .fc-event {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}
/* Стили для онлайн комнаты митингов*/
.room-share-block {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.room-share-block input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f3f3f3;
    color: #333;
}

.room-share-block button {
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.room-share-block button:hover {
    background: linear-gradient(90deg, #ff4500, #ff8c00);
    transform: scale(1.03);
}
