/*
 * Стили фронтенда для расписания студии.
 * Используется тёмная цветовая схема и аккуратные карточки.
 */

/* Базовые стили */
.studio-schedule-wrapper {
    font-family: Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Таб переключателей */
.studio-schedule-tabs {
    text-align: center;
    margin-bottom: 20px;
}
.schedule-tab-button {
    background: linear-gradient(45deg, #ff6b9d, #ffc0cb);
    color: #2c2c2c;
    border: none;
    padding: 10px 20px;
    /* Добавлен вертикальный отступ между кнопками */
    margin: 10px 5px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.schedule-tab-button.active {
    box-shadow: 0 0 10px rgba(255,107,157,0.6);
    transform: translateY(-2px);
}
.schedule-tab-button:hover {
    box-shadow: 0 0 10px rgba(255,107,157,0.6);
}

/* День недели */
.studio-day {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.studio-day-title {
    font-size: 1.5rem;
    color: #ffc0cb;
    margin-bottom: 15px;
}
.studio-day-sessions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Карточка занятия */
.studio-session-card {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px;
    width: calc(50% - 15px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.studio-session-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b9d;
    box-shadow: 0 10px 20px rgba(255, 107, 157, 0.2);
}
.studio-session-card.full,
.studio-session-card.closed {
    opacity: 0.6;
}
.session-info {
    margin-bottom: 10px;
}
.session-time {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #ffc0cb;
}
.session-type,
.session-teacher {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}
.session-places {
    font-size: 0.9rem;
    color: #bbb;
}
.session-status-label {
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
}
.session-book-button {
    background: linear-gradient(45deg, #ff6b9d, #ffc0cb);
    color: #2c2c2c;
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.session-book-button:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
}
.session-book-button:hover:not(:disabled) {
    box-shadow: 0 0 10px rgba(255,107,157,0.5);
}

/* Модальное окно */
.studio-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.studio-modal-content {
    background: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* ========== ДОБАВЬТЕ после существующих правил .studio-modal-content ========== */
.studio-modal-content{
    /* уже есть: background, padding, width и т.д. */
    max-height: calc(100vh - 4rem); /* оставляем по 2 rem сверху и снизу */
    overflow-y: auto;               /* включаем внутренний скролл */
    overscroll-behavior: contain;   /* чтобы «проталкивание» не скроллило фон */
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
}
/* Если хотите совсем убрать отступы на низких экранах */
@media (max-height: 500px){
    .studio-modal-content{
        max-height: calc(100vh - 2rem);
    }
}
.studio-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}
.studio-modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffc0cb;
    text-align: center;
}
.studio-modal .form-row {
    margin-bottom: 15px;
}
.studio-modal label {
    display: block;
    margin-bottom: 5px;
    color: #ffc0cb;
    font-size: 0.9rem;
}
.studio-modal input[type="text"],
.studio-modal input[type="tel"],
.studio-modal select {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #3a3a3a;
    color: #fff;
}
.studio-modal textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #3a3a3a;
    color: #fff;
}
.studio-modal .button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.studio-modal .button.button-primary {
    background: linear-gradient(45deg, #ff6b9d, #ffc0cb);
    color: #2c2c2c;
}
.studio-modal .button.button-secondary {
    background: #555;
    color: #fff;
}
.studio-modal .button:hover {
    opacity: 0.9;
}
#studio-book-response {
    font-size: 0.9rem;
    color: #ffc0cb;
    text-align: center;
}

/* Дополнительные заметки для абонемента и пробного занятия */
#studio-subscription-note p,
#studio-trial-note p {
    margin-top: 8px;
    color: #ffc0cb;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .studio-day-sessions {
        flex-direction: column;
    }
    .studio-session-card {
        width: 100%;
    }
}

/* Стили для аккаунта (страница входа/регистрации и профиль) */
.studio-account-wrapper {
    background: #2c2c2c;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.studio-account-wrapper h2,
.studio-account-wrapper h3 {
    color: #ffc0cb;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}
.studio-account-wrapper hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 20px 0;
}
.studio-account-wrapper .form-row {
    margin-bottom: 15px;
}
.studio-account-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ffc0cb;
}
.studio-account-wrapper input[type="text"],
.studio-account-wrapper input[type="email"],
.studio-account-wrapper input[type="password"],
.studio-account-wrapper input[type="date"],
.studio-account-wrapper input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #3a3a3a;
    color: #fff;
}
.studio-account-wrapper .button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.studio-account-wrapper .button.button-primary {
    background: linear-gradient(45deg, #ff6b9d, #ffc0cb);
    color: #2c2c2c;
}
.studio-account-wrapper .button.button-secondary {
    background: #555;
    color: #fff;
}
.studio-account-wrapper .button:hover {
    opacity: 0.9;
}
.studio-booking-history {
    list-style: disc;
    padding-left: 20px;
}
.studio-booking-history li {
    margin-bottom: 5px;
}

/* Message shown when a user's account is blocked */
.studio-blocked-message {
    background: rgba(214, 54, 56, 0.1);
    border: 1px solid #d63638;
    padding: 15px;
    border-radius: 10px;
    color: #d63638;
    font-weight: bold;
    margin-bottom: 20px;
}