/* static/css/style.css - ПОЛНЫЙ ФАЙЛ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
}

/* Полноэкранный контейнер без отступов */
.mobile-container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: white;
    overflow: hidden;
    position: relative;
}

/* Главный макет на весь экран */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Учет безопасных зон для мобильных устройств */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* ============ ВЕРХНЯЯ ПАНЕЛЬ (10%) ============ */
.notification-bar {
    height: 10%;
    min-height: 50px;
    background: linear-gradient(90deg, #0a41a5, #1a7fad); /* Голубой градиент, созвучный с основным фоном */
    color: white;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: max(10px, env(safe-area-inset-top, 0px) + 5px);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.notification-icon {
    animation: bellRing 2s infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.current-date {
    font-size: 12px;
    opacity: 0.9;
}

/* ============ ОСНОВНОЙ КОНТЕНТ (70%) ============ */
.main-content {
  background: linear-gradient(90deg, #0c074d, #1a91ad);
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 70%;
}

.calendar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* уменьшили с 20px */
    padding: 5px 0; /* уменьшили с 10px */
    min-height: 40px; /* добавляем минимальную высоту */
}

.nav-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    color: white;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.month-title {
    font-size: 1.2em;
    color: white !important; /* Белый текст для лучшей читаемости */
    font-weight: 600;
    margin: 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Легкая тень для контраста */
}

/* Дни недели */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #b3e0ff; /* Светло-голубой, мягкий на темном фоне */
    margin-bottom: 5px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(179, 224, 255, 0.3); /* Полупрозрачная граница */
    width: 100%;
    flex-shrink: 0;
}

.weekday {
    padding: 5px;
    font-size: 14px;
}

/* Сетка дней */
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr); /* фиксируем 6 строк */
    gap: 3px; /* немного уменьшим отступы */
    width: 100%;
    flex: 1;
    min-height: 0; /* важно для правильной работы grid */
}

/* Элемент дня */
.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 1px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white !important; /* Белый текст */
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1); /* Полупрозрачный белый фон */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Светлая граница */
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
}



/* Добавьте эти стили после стилей для .day.today */
.day.has-training {
    border: 2px solid rgba(102, 187, 106, 0.7);
    box-shadow: 0 0 0 1px rgba(102, 187, 106, 0.3);
}

/* Убедитесь, что для сегодняшнего дня с тренировкой граница остается видимой */
.day.today.has-training {
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4), 0 0 0 1px rgba(76, 175, 80, 0.2);
}

.day:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
}

.day.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.day.empty {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(179, 224, 255, 0.5) !important;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.day.empty:hover {
    background: #f9f9f9;
    transform: none;
    border-color: #f0f0f0;
}

.day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.day-events {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Легенда календаря */
.calendar-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 5px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08); /* Полупрозрачный белый фон */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 100%;
    overflow: hidden;
    backdrop-filter: blur(10px); /* Эффект размытия */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #b3e0ff; /* Светло-голубой текст */
    background: transparent;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
    max-width: 100%;
}

.info-item:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.info-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    min-width: 12px;
}

/* Особые индикаторы для темного фона */
.info-dot[style*="#4CAF50"] {
    background: linear-gradient(135deg, #66BB6A, #43A047) !important;
}

.info-dot[style*="#2196F3"] {
    background: linear-gradient(135deg, #64b5f6, #2196F3) !important;
}

.today-dot {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4) !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 3px rgba(255, 154, 158, 0.5);
}

/* ============ НИЖНЯЯ ПАНЕЛЬ (20%) ============ */
.bottom-nav {
    height: 20%;
    min-height: 70px;
    max-height: 90px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px) + 8px);
}


.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: rgba(26, 145, 173, 0.3); /* Полупрозрачный голубой */
    color: white;
    box-shadow: 0 4px 12px rgba(26, 145, 173, 0.4);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
    color: inherit;
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* ============ МОДАЛЬНЫЕ ОКНА ============ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 7, 77, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(to right, #2196F3, #21CBF3);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}




.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ============ МОДАЛЬНОЕ ОКНО "ДЕТАЛИ ДНЯ" ============ */
.day-details-modal .modal-content {
    max-width: 350px;
    width: 90%;
}

.events-list {
    margin-bottom: 20px;
}

.event-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.event-time {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    font-size: 14px;
}

.event-info {
    flex: 1;
}

.event-type {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    font-size: 15px;
}

.event-location {
    color: #666;
    font-size: 13px;
}

.no-events {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.day-actions {
    display: flex;
    gap: 10px;
}

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

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ============ СТИЛИ ДЛЯ ПРОФИЛЯ, ДЕТЕЙ И ОПЛАТЫ ============ */
/* (Добавьте сюда все стили из предыдущих версий для модальных окон) */

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 480px) {
    .mobile-container {
        border-radius: 0;
    }
    .calendar-header {
        margin-bottom: 8px;
        padding: 3px 0;
        min-height: 35px;
    }

    .nav-button {
     background: rgba(255, 255, 255, 0.15);
        width: 32px;
        height: 32px;
    }

    .month-title {
        font-size: 1.1em;
    }
    .app-layout {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .notification-bar {
        padding-top: max(10px, env(safe-area-inset-top, 0px) + 5px);
    }

    .bottom-nav {
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px) + 8px);
    }
      .days-grid {
        gap: 2px; /* ещё меньше отступы на мобильных */
    }
     .day {
        padding: 2px 0; /* минимальные отступы */
        font-size: 12px; /* уменьшаем текст */
        border-radius: 6px;
    }

     .day-number {
        font-size: 12px; /* уменьшаем цифры */
        margin-bottom: 2px;
    }

    .nav-icon {
        font-size: 18px;
    }

    .nav-text {
        font-size: 10px;
    }
      .event-dot {
        width: 4px;
        height: 4px;
    }

    .day-events {
        gap: 1px;
    }
         .calendar-info {
        gap: 8px;
        padding: 8px 10px;
        border-radius: 10px;
        margin-top: 6px; /* Еще меньше на мобильных */
        margin-bottom: 4px;
    }

    .info-item {
        font-size: 11px;
        padding: 3px 6px;
        gap: 5px;
        flex: 0 0 auto; /* Автоматическая ширина по содержимому */
        white-space: nowrap;
    }

    .info-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        border-width: 1px;
    }
     .nav-item {
        width: 75px; /* увеличили для мобильных */
    }
}


/* Для планшетов и больших телефонов */
@media (min-width: 481px) and (max-width: 768px) {
    .info-item {
        font-size: 12.5px;
        padding: 7px 10px;
        flex: 0 0 auto;
    }
}

/* Для портретной ориентации на мобильных */
@media (max-height: 600px) and (orientation: portrait) {
    .calendar-info {
        margin-top: 10px;
        padding: 8px;
        gap: 6px;
    }

    .info-item {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 900px) and (orientation: landscape) {
    .calendar-info {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding: 8px 10px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .info-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Скрыть скроллбар, но оставить функциональность */
    .calendar-info::-webkit-scrollbar {
        height: 4px;
    }

    .calendar-info::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }

    .calendar-info::-webkit-scrollbar-thumb {
        background: #4CAF50;
        border-radius: 2px;
    }
}



@media (min-height: 800px) {
    .main-content {
        padding: 20px;
    }

       .day {
        padding: 8px 2px; /* фиксированные отступы вместо min-height */
        font-size: 15px;
    }

    .day-number {
        font-size: 15px;
    }
}

/* Для PWA полноэкранного режима */
@media all and (display-mode: fullscreen) {
    .mobile-container {
        height: 100vh;
    }

    .app-layout {
        height: 100vh;
    }
}


/* ============ СТИЛИ ДЛЯ СТРАНИЦЫ ЛОГИНА ============ */

/* Общие стили для страницы логина */
.login-page .mobile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-page .app-layout {
    width: 100%;
    max-width: 400px;
    height: 90vh;
    max-height: 800px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    margin: 0 auto;
}

/* Верхняя панель на странице логина */
.login-page .notification-bar {
    height: 10%;
    min-height: 50px;
    background: linear-gradient(to right, #2196F3, #21CBF3);
}

/* Основной контент на странице логина */
.login-page .main-content {
    height: 80% !important;
    padding: 20px;
    overflow-y: auto;
}

/* Нижняя панель на странице логина */
.login-page .bottom-nav {
    height: 10% !important;
    min-height: 60px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

/* Стили для форм */
.auth-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 40px;
    color: #667eea;
}

.logo h2 {
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.auth-subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

.auth-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    color: #667eea;
    width: 16px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.toggle-password:hover {
    background: #f0f0f0;
}

.input-hint {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.error-message.success {
    color: #2ed573;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #667eea;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
}

/* Блок сообщений */
.message-box {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-box .message-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message-box i {
    font-size: 18px;
    margin-top: 2px;
}

.message-box.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.success i {
    color: #28a745;
}

.message-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-box.error i {
    color: #dc3545;
}

/* Информационные блоки */
.nav-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 12px;
}

.nav-info i {
    color: #667eea;
    font-size: 14px;
}

/* Стили для модальных окон на странице логина */
.terms-content {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.terms-content p {
    margin-bottom: 10px;
}

/* ============ СТИЛИ ДЛЯ СТРАНИЦ СТАТУСОВ ============ */

/* Общие стили для страниц статусов */
.status-page {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.status-page .mobile-container {
    max-width: 400px;
    width: 100%;
}

.status-container {
    width: 100%;
    margin: 0 auto;
}

.status-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 40px;
    text-align: center;
}

.status-icon {
    font-size: 80px;
    color: #f59e0b;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateY(-50%) scale(1.1); }
    100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
}

.status-title {
    color: #d97706;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.status-message {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.status-info {
    background: #fffbeb;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 25px;
    text-align: left;
}

.status-info h4 {
    color: #92400e;
    margin-bottom: 10px;
    font-size: 16px;
}

.status-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.status-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    color: #78350f;
    font-size: 14px;
}

.status-info li i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

.user-data {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.user-data h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.data-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.data-label {
    color: #666;
    font-size: 14px;
}

.data-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Кнопка выхода */
.logout-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.auto-logout {
    margin-top: 20px;
    color: #888;
    font-size: 12px;
    font-style: italic;
}

/* Стили для страницы отказа */
.status-rejected .status-icon {
    color: #e53e3e;
}

.status-rejected .status-title {
    color: #c53030;
}

.status-rejected .status-info {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
}

.status-rejected .status-info h4 {
    color: #742a2a;
}

.status-rejected .status-info li i {
    color: #e53e3e;
}

/* ============ АДАПТИВНОСТЬ ДЛЯ ЛОГИНА И СТАТУСОВ ============ */

@media (max-width: 480px) {
    /* Страница логина */
    .login-page .app-layout {
        height: 100vh;
        max-height: none;
        border-radius: 0;
        max-width: none;
    }

    .logo h2 {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-form {
        padding: 20px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn {
        padding: 12px;
        font-size: 15px;
    }

    .nav-info {
        font-size: 11px;
    }

    /* Страницы статусов */
    .status-card {
        padding: 30px 20px;
        border-radius: 20px;
        margin: 10px;
    }

    .status-icon {
        font-size: 60px;
    }

    .status-title {
        font-size: 20px;
    }

    .logout-btn {
        width: 100%;
        padding: 12px;
    }
    .bottom-nav {
        justify-content: space-between; /* равномерное распределение */
        padding-left: 15px;
        padding-right: 15px;
    }

    .nav-item {
        width: 30%; /* 3 кнопки по 30% ширины */
        min-width: 60px;
    }

    .nav-icon {
        font-size: 18px;
    }

    .nav-text {
        font-size: 10px;
    }
}

/* Для высоких экранов */
@media (min-height: 800px) {
    .login-page .app-layout {
        max-height: 700px;
    }

    .auth-container {
        padding: 30px 0;
    }
}


/* ============ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН ============ */

/* Общие стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(to right, #2196F3, #21CBF3);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

/* Кнопка закрытия для всех модалок */
.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Стили для модального окна "Мои дети" */
.child-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.child-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
}

.child-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.child-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    text-align: center;
}

.child-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.child-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.child-status {
    color: #28a745 !important;
    font-weight: 600;
    margin-top: 5px !important;
    font-size: 13px !important;
}

.child-action {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-action:hover {
    background: #e8e8e8;
}

/* Стили для модального окна "Профиль" */
.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Аватар профиля */
.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a41a5, #1a91ad) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-info h4 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-info p {
    margin: 5px 0;
    color: #b3e0ff;
    font-size: 14px;
    line-height: 1.4;
}

.profile-status {
    color: #4CAF50 !important;
    font-weight: 600;
    margin-top: 8px !important;
    font-size: 13px !important;
    background: rgba(76, 175, 80, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Детали профиля */
.profile-details {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}


.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.detail-item i {
    color: #64b5f6 !important;
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}


.detail-label {
    margin: 0 0 5px 0;
    color: #8cc0ff !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    margin: 0;
    color: white !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* Кнопки действий профиля */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: left;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-action-btn i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: #64b5f6;
}

/* Кнопка выхода */
.profile-action-btn.logout-btn {
    color: #ff8a80 !important;
    border-color: rgba(255, 138, 128, 0.3);
    background: rgba(255, 138, 128, 0.1);
    margin-top: 10px;
}

.profile-action-btn.logout-btn:hover {
    background: rgba(255, 138, 128, 0.2);
    border-color: rgba(255, 138, 128, 0.5);
}

/* Тело модалки профиля */
#profileModal .modal-body {
    padding: 25px;
    background: rgba(12, 7, 77, 0.3);
}

/* Стили для модального окна "Оплата" */
.payment-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.payment-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.balance-amount {
    font-size: 32px;
    font-weight: bold;
    color: #1890ff;
    margin: 0 0 5px 0;
}

.balance-info {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.payment-history {
    margin-bottom: 20px;
}

.payment-history h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}


.payment-item:last-child {
    border-bottom: none;
}

.payment-date {
    color: #666;
    font-size: 14px;
    width: 100px;
    flex-shrink: 0;
}

.payment-amount {
    font-weight: bold;
    color: #52c41a;
    font-size: 16px;
    flex-shrink: 0;
    margin: 0 15px;
}

.payment-description {
    color: #888;
    font-size: 14px;
    text-align: right;
    flex: 1;
}

.payment-actions {
    display: flex;
    gap: 10px;
}

.payment-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.payment-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.payment-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.payment-btn.secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.payment-btn.secondary:hover {
    background: #e8e8e8;
    border-color: #ddd;
}

/* Стили для модального окна "Детали дня" */
.day-details-modal .modal-content {
    max-width: 350px;
    width: 90%;
}

.events-list {
    margin-bottom: 20px;
}

.event-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.event-item:hover {
    background: #f0f0f0;
}

.event-time {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    font-size: 14px;
    flex-shrink: 0;
}

.event-info {
    flex: 1;
}

.event-type {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    font-size: 15px;
}

.event-location {
    color: #666;
    font-size: 13px;
}

.no-events {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.day-actions {
    display: flex;
    gap: 10px;
}

.day-actions .btn {
    margin: 0;
}

/* Кнопки в модальных окнах */
.modal .btn {
    margin: 0;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

/* Стили для полей ввода в модальных окнах */
.modal .form-group {
    margin-bottom: 15px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.modal input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.modal input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Адаптивность модальных окон */
@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-btn {
        width: 100%;
    }

    .child-avatar {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .profile-info h4 {
        font-size: 16px;
    }

    .balance-amount {
        font-size: 28px;
    }

    .payment-item {
        flex-wrap: wrap;
        gap: 5px;
    }

    .payment-date {
        width: 100%;
        order: 1;
    }

    .payment-amount {
        order: 2;
        margin: 0;
    }

    .payment-description {
        order: 3;
        width: 100%;
        text-align: left;
    }
}

/* Прокрутка в модальных окнах */
.modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}



/* PWA Install Banner */
.pwa-install-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInUp 0.3s ease-out;
}

.pwa-install-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
}

.pwa-install-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

.pwa-install-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pwa-dismiss-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Стили для standalone режима */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}



/* Детали ребенка */
.child-details {
    margin-top: 15px;
}

.child-details .detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 10px;
    transition: background-color 0.3s;
    border: 1px solid #f0f0f0;
}

.child-details .detail-item:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.child-details .detail-item i {
    color: #667eea;
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.child-details .detail-label {
    margin: 0 0 3px 0;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.child-details .detail-value {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Индикаторы загрузки */
.loading {
    text-align: center;
    padding: 40px;
}

.loading i {
    color: #667eea;
    animation: spin 1s linear infinite;
}

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

/* Сообщения об ошибках и пустых состояниях */
.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-children {
    text-align: center;
    padding: 40px;
    color: #666;
}

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

/* Стили для загрузки */
.loading-spinner {
    display: inline-block;
    margin-bottom: 15px;
}

/* Детали ребенка в модальном окне */
.child-details-modal .modal-content {
    max-width: 400px;
    width: 90%;
}

.child-details {
    padding: 10px 0;
}

.child-details .detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.child-details .detail-item:hover {
    background: white;
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.child-details .detail-item i {
    color: #667eea;
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.child-details .detail-label {
    margin: 0 0 3px 0;
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.child-details .detail-value {
    margin: 0;
    color: #212529;
    font-size: 14px;
    font-weight: 500;
}

/* Статус ребенка в карточке */
.child-status {
    font-size: 13px !important;
    margin-top: 5px !important;
    padding: 3px 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    display: inline-block;
}

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

.child-card {
    animation: fadeIn 0.3s ease-out;
}
/* static/css/style.css - добавьте в конец */

/* Контейнер для кнопок действий у ребенка */
.child-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.child-action-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-action-btn:hover {
    background: #e8e8e8;
    color: #333;
    transform: scale(1.1);
}

/* Расписание */
.schedule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.schedule-date {
    font-weight: bold;
    color: #333;
    min-width: 100px;
}

.schedule-time {
    color: #666;
    min-width: 80px;
}

.schedule-location {
    color: #666;
    flex: 1;
}

.schedule-trainer {
    color: #888;
    font-size: 14px;
}

.schedule-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.schedule-status.attended {
    background: #d4edda;
    color: #155724;
}

.schedule-status.missed {
    background: #f8d7da;
    color: #721c24;
}

/* Платежи */
.payment-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
}

.payment-date {
    color: #666;
    min-width: 100px;
}

.payment-amount {
    font-weight: bold;
    color: #28a745;
    min-width: 80px;
}

.payment-description {
    color: #333;
    flex: 1;
}

.payment-classes {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* static/css/style.css - добавьте в конец */

/* Дополнительные стили для детальной информации о ребенке */
.child-details-modal .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s;
    backdrop-filter: blur(10px) !important;
}

.child-details-modal .detail-item:hover {
    background: white;
    border-color: #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.child-details-modal .detail-item i {
    color: #667eea;
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.child-details-modal .detail-label {
    margin: 0 0 5px 0;
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.child-details-modal .detail-value {
    margin: 0;
    color: #212529;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* Стили для расписания в детальной информации */
.schedule-item-compact {
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #667eea;
}

.schedule-item-compact p {
    margin: 0;
}

.schedule-item-compact .schedule-time {
    font-weight: 600;
    color: #333;
}

.schedule-item-compact .schedule-place {
    color: #666;
    font-size: 13px;
    margin-top: 3px;
}

/* Кнопки в детальной информации */
.child-details-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.child-details-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.child-details-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.child-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Адаптивность для детального окна */
@media (max-width: 480px) {
    .child-details-modal .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .child-details-modal .detail-item {
        padding: 12px;
        gap: 12px;
    }

    .child-details-actions {
        flex-direction: column;
    }
}



/* ============ КАЛЕНДАРЬ С ДЕТЬМИ ============ */

/* Контейнер для календарей с навигацией по детям */
.children-calendar-container {
    position: relative;
    overflow: hidden;
}

.children-calendar-wrapper {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Плавная анимация */
    height: 100%;
    width: 100%;
    will-change: transform; /* Улучшение производительности */
    touch-action: pan-y pinch-zoom; /* Разрешаем свайп и масштабирование */
}

.child-calendar-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* Разрешите клики внутри календаря */
    pointer-events: auto;
}

/* Индикатор текущего ребенка */
.child-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 15px;
    min-height: 60px;
    position: relative;
}


.child-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.child-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    margin-bottom: 5px;
}

.child-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0; /* Убираем отступы */
}

.child-age {
    color: #666;
    font-size: 14px;
    margin-top: 2px;
}

.child-belt {
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 3px;
}

/* Стрелки навигации между детьми */
.child-nav-button {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0; /* полностью прозрачные */
    pointer-events: none; /* предотвращаем клики */
    flex-shrink: 0;
}

/* Показываем кнопки при наведении на child-indicator */
.child-indicator:hover .child-nav-button {
    opacity: 0.3;
    pointer-events: auto;
}

.child-nav-button:hover {
    opacity: 0.6;
    background: #f0f0f0;
    transform: scale(1.1);
}

.child-nav-button:disabled {
    opacity: 0.1;
    cursor: not-allowed;
    transform: none;
}

/* Точки индикатора (если много детей) */
/* Точки индикатора делаем более заметными */
.child-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 8px;
    background: rgba(0,0,0,0.02);
    border-radius: 20px;
}

.child-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.child-dot.active {
    background: #667eea;
    transform: scale(1.3);
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

/* Анимация смены календаря */
@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-left {
    animation: slideInLeft 0.3s ease-out;
}

.slide-right {
    animation: slideInRight 0.3s ease-out;
}

/* Без детей сообщение */
.no-children-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-children-message i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-children-message p {
    margin: 10px 0;
}

/* Стили для календаря конкретного ребенка */
.calendar-for-child {
    flex: 1; /* занимает всё доступное пространство */
    display: flex;
    flex-direction: column;
    min-height: 0; /* важно для flex-потомков */
}

/* Адаптивность */
@media (max-width: 480px) {
      .child-indicator {
        padding: 8px;
        min-height: 55px;
    }

    .child-avatar-small {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .child-name {
        font-size: 15px;
    }

    .child-age {
        font-size: 13px;
    }

    .child-nav-button {
        width: 32px;
        height: 32px;
    }
    .swipe-hint {
        font-size: 11px;
    }

    .multiple-children-hint {
        font-size: 12px;
        padding: 6px 12px;
    }
       .child-nav-button {
        width: 32px;
        height: 32px;
    }
}

@media (min-height: 700px) {
    .child-indicator {
        min-height: 70px;
    }

    .child-avatar-small {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Жесты для свайпа */

/* Анимация перехода */
.slide-transition {
    transition: transform 0.3s ease-out;
}

/* Подсказка о свайпе */
.swipe-hint {
    text-align: center;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
    font-style: italic;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


/* Индикатор свайпа */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.child-indicator:hover .swipe-indicator.left,
.child-indicator:hover .swipe-indicator.right {
    opacity: 0.8;
}

.swipe-indicator.left {
    left: 5px;
}

.swipe-indicator.right {
    right: 5px;
}

/* Анимация пульсации при свайпе */
@keyframes swipePulse {
    0% { transform: translateY(-50%) scale(0.9); opacity: 0.5; }
    50% { transform: translateY(-50%) scale(1.1); opacity: 0.8; }
    100% { transform: translateY(-50%) scale(0.9); opacity: 0.5; }
}

/* При активном свайпе показываем индикаторы */
.children-calendar-container.swiping .swipe-indicator {
    opacity: 0.6;
    animation: swipePulse 1.5s infinite;
}

/* Уведомление о нескольких детях */
/* Подсказка о свайпе */
.multiple-children-hint {
    text-align: center;
    margin: 10px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    color:  #8cc0ff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.multiple-children-hint i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Плавное появление/скрытие при переключении */
.child-calendar-item:not([style*="display: block"]) {
    opacity: 0;
    pointer-events: none;
}
.child-calendar-item[style*="display: block"] {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s;
}
/* Стили для загрузки и ошибок */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    color: #667eea;
    margin-bottom: 15px;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error-message i {
    font-size: 48px;
    color: #ff4757;
    margin-bottom: 20px;
    display: block;
}

.error-message h3 {
    color: #ff4757;
    margin-bottom: 10px;
}

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

.event-group h4 {
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.event-item {
    background: #f8f9fa;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.event-time {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.event-sport, .event-trainer, .event-location {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}



/* ЗОЛОТОЙ для соревнований */
.day.competition {
    background: linear-gradient(135deg, #FFD700, #FFC107) !important;
    color: #8B6914 !important;
    border: none !important;
    font-weight: bold !important;
    box-shadow:
        0 4px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(139, 105, 20, 0.2) !important;
}

.day.competition .day-number {
    color: #8B6914 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ЗОЛОТОЙ для сегодняшнего дня с соревнованием */
.day.today-competition {
    background: linear-gradient(135deg, #FFD700, #FFC107, #667eea) !important;
    color: white !important;
    border: none !important;
    font-weight: bold !important;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 0 0 2px rgba(102, 126, 234, 0.3) !important;
}

.day.today-competition .day-number {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ФИОЛЕТОВО-ЗЕЛЕНЫЙ для сегодня с посещенной тренировкой */
.day.today-visited-training {
    background: linear-gradient(135deg, #667eea, #764ba2, #4CAF50) !important;
    color: white !important;
    border: none !important;
    font-weight: bold !important;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 0 2px rgba(76, 175, 80, 0.3) !important;
}

.day.today-visited-training .day-number {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Обновляем стиль обычного сегодняшнего дня (только фиолетовый) */
.day.today {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.day.today .day-number {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Убираем точки событий для всех специальных плиток */
.day.visited-training .day-events,
.day.missed-training .day-events,
.day.competition .day-events,
.day.today-competition .day-events,
.day.today-visited-training .day-events,
.day.today .day-events {
    display: none !important;
}

/* Анимации при наведении для новых стилей */
.day.competition:hover,
.day.today-competition:hover,
.day.today-visited-training:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 6px 20px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.day.today-visited-training:hover {
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* В файле style.css, добавьте после стилей для .day.visited-training: */

/* Красная плитка для прогула */
.day.missed-training {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    color: white !important;
    border: none !important;
    font-weight: bold !important;
    box-shadow:
        0 4px 8px rgba(244, 67, 54, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Белый цвет для цифры на красном фоне */
.day.missed-training .day-number {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Убираем точки событий на красной плитке */
.day.missed-training .day-events {
    display: none !important;
}

/* Если сегодняшний день И прогул (маловероятно, но пусть будет) */
.day.today.missed-training {
    background: linear-gradient(135deg, #f44336, #d32f2f, #e53935) !important;
    box-shadow:
        0 4px 15px rgba(244, 67, 54, 0.4),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

/* При наведении на красную плитку */
.day.missed-training:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 6px 20px rgba(244, 67, 54, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Альтернативный вариант красного (менее агрессивный) */
.day.missed-training {
    background: linear-gradient(135deg, #ef5350, #e53935) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    position: relative;
    overflow: hidden;
}

/* Можно добавить легкий диагональный паттерн для красных плиток */
.day.missed-training::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg,
            transparent 48%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 52%);
    background-size: 10px 10px;
    pointer-events: none;
}

/* В файле style.css, найдите стили для .day и добавьте после них: */

/* Зеленая плитка для посещенной тренировки */
.day.visited-training {
    background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
    color: white !important;
    border: none !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4) !important;
}

/* Белый цвет для цифры на зеленом фоне */
.day.visited-training .day-number {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Убираем точки событий на зеленой плитке */
.day.visited-training .day-events {
    display: none !important;
}

/* Если сегодняшний день И есть посещенная тренировка */
.day.today.visited-training {
    background: linear-gradient(135deg, #667eea, #764ba2, #4CAF50) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 0 0 0 2px rgba(76, 175, 80, 0.3) !important;
}

/* При наведении на зеленую плитку */
.day.visited-training:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5) !important;
}

/* Стили для всплывающей подсказки с временем */
.day-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.3s ease-out;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
    max-width: 200px;
    word-break: break-word;
}

/* Стрелочка у подсказки */
.day-tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

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

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .day-tooltip {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 150px;
        white-space: normal;
        text-align: center;
    }
}

/* Стили для отображения статуса кэша */
.cache-status {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 12px;
    margin: 10px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #a5d6a7;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.cache-status i {
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Улучшенные стили для быстрой загрузки */
.loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.loading i {
    margin-bottom: 15px;
    color: #667eea;
}

.loading p {
    margin-top: 10px;
    font-size: 16px;
}

/* Индикатор использования кэша */
.cache-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 100;
}


/* Стили для кликабельного имени ребенка */
.clickable-name {
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    margin: 0;
}

.clickable-name:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.clickable-name:active {
    transform: translateY(0);
}

/* Для светлого текста на темном фоне */
.clickable-name[style*="color: #333"]:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Для темного текста на светлом фоне */
.clickable-name[style*="color: white"]:hover,
.clickable-name[style*="color: #fff"]:hover,
.clickable-name[style*="color: #FFFFFF"]:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Стили для кнопки Обновить */
.refresh-btn {
    position: relative;
    background: rgba(26, 145, 173, 0.4) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(26, 145, 173, 0.3);
    margin: 0 10px;
    transform: scale(1.05);
}

.refresh-btn:hover {
    background: rgba(26, 145, 173, 0.6) !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(26, 145, 173, 0.4);
}

.refresh-btn:active {
    transform: scale(1.02);
}

.refresh-btn .nav-icon {
    animation: none;
}

/* Анимация вращения для иконки обновления */
.refresh-btn .fa-spin {
    animation: spin 1s linear infinite;
}

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

/* Увеличим центральную кнопку на мобильных */
@media (max-width: 480px) {
    .refresh-btn {
        margin: 0 5px;
        transform: scale(1.1);
    }

    .refresh-btn:hover {
        transform: scale(1.12);
    }
}

/* Обновим стили для bottom-nav с 3 кнопками */
.bottom-nav {
    height: 20%;
    min-height: 70px;
    max-height: 90px;
    background: linear-gradient(90deg, #0d1b4c, #1a5f7a); /* Темный градиент, продолжение темы */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Светлая граница */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px) + 8px);
}

/* Кнопки теперь занимают равное пространство */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 15px;
    margin: 0 5px;
    color: #b3e0ff; /* Светло-голубой текст */
}



/* Для мобильных устройств */
@media (max-width: 480px) {
    .bottom-nav {
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-item {
        margin: 0 3px;
    }

    .refresh-btn {
        max-width: 80px;
    }

    .nav-icon {
        font-size: 20px; /* увеличим иконки */
    }

    .nav-text {
        font-size: 11px;
        margin-top: 3px;
    }
}

}

/* ===== Стили для упрощенного модуля платежей ===== */

/* Обновленный payment-modal в едином стиле */
.payment-modal .modal-content {
    max-width: 500px;
    max-height: 80vh;
    background: linear-gradient(135deg, #0c074d, #1a5f7a) !important;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}
/* Хедер платежей */
.payment-modal .modal-header {
    background: linear-gradient(90deg, #0a41a5, #1a7fad);
    color: white;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Кнопки в хедере */
.payment-modal .modal-actions {
    display: flex;
    gap: 10px;
}

.payment-modal .icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.payment-modal .icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}
/* Тело платежной модалки */
.payment-modal .modal-body {
    padding: 25px;
    background: linear-gradient(135deg, #0c074d, #1a5f7a) !important;
}

/* Хедер с детьми - улучшенный стиль */
.payment-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f5;
}

.payment-header h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.children-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.child-header-item {
    flex: 1;
    min-width: 180px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.child-header-item:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 187, 106, 0.5);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 187, 106, 0.3);
}

.child-header-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4CAF50, #66bb6a);
}




.child-name::before {
    content: '';
    display: none;
}

.child-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.classes-remaining {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-weight: 500;
}

.classes-remaining::before {
    content: '🔄';
    font-size: 14px;
}

.classes-remaining span {
    font-weight: 700;
    color: #27ae60;
    font-size: 15px;
    margin-left: 2px;
}

.payment-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-weight: 500;
}

.payment-date::before {
    content: '📅';
    font-size: 14px;
}

.payment-date span {
    color: #2c3e50;
    font-weight: 600;
    margin-left: 2px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* Индикатор срочного платежа */
.child-header-item.urgent {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
}

.child-header-item.urgent::before {
    background: linear-gradient(to bottom, #ff6b6b, #ff8787);
}

.child-header-item.urgent .payment-date span {
    color: #e03131;
    font-weight: 700;
}

/* Индикатор много занятий */
.child-header-item.many-classes {
    border-color: #51cf66;
}

.child-header-item.many-classes .classes-remaining span {
    color: #2b8a3e;
}

/* Индикатор мало занятий */
.child-header-item.few-classes {
    border-color: #ffa94d;
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
}

.child-header-item.few-classes::before {
    background: linear-gradient(to bottom, #ffa94d, #ffc078);
}

.child-header-item.few-classes .classes-remaining span {
    color: #e8590c;
    font-weight: 700;
}

/* Иконки для статусов */
.classes-remaining.low::before {
    content: '⚠️';
    color: #e8590c;
}

.classes-remaining.normal::before {
    content: '✅';
    color: #2b8a3e;
}

/* Бейдж срочности */
.urgent-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.child-header-item {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

.child-header-item:nth-child(1) { animation-delay: 0.1s; }
.child-header-item:nth-child(2) { animation-delay: 0.2s; }
.child-header-item:nth-child(3) { animation-delay: 0.3s; }
.child-header-item:nth-child(4) { animation-delay: 0.4s; }
.child-header-item:nth-child(5) { animation-delay: 0.5s; }

/* История платежей - компактный стиль */
.payment-section {
    margin-bottom: 20px;
}

.payment-section h4 {
    margin-bottom: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.payment-section h4 small {
    font-size: 14px;
    color: #8cc0ff;
    font-weight: normal;
}


.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

.payment-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 187, 106, 0.4);
    transform: translateY(-2px);
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 187, 106, 0.2);
}

.payment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66bb6a);
    border-radius: 10px 10px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.payment-item:hover::before {
    opacity: 1;
}

/* Заголовок платежа - дата и сумма на одной линии */
.payment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.payment-info-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-child {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 20px;
}

.payment-child i {
    color: #4CAF50;
    font-size: 12px;
}

.payment-amount {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
    white-space: nowrap;
}

.payment-amount::before {
    content: '💰';
    margin-right: 4px;
    font-size: 14px;
}

.payment-amount:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* Тело платежа - все в одну строку */
.payment-item-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.payment-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 100px;
}

.payment-date i {
    color: #6c757d;
    font-size: 11px;
}

.payment-description {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f8f9fa;
    min-width: 150px;
}

.payment-description i {
    color: #6c757d;
    font-size: 11px;
}

/* Компактный вариант для mobile */
.payment-item.compact {
    padding: 10px 12px;
}

.payment-item.compact .payment-item-header {
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.payment-item.compact .payment-item-body {
    flex-wrap: wrap;
    gap: 8px;
}

.payment-item.compact .payment-date,
.payment-item.compact .payment-description {
    min-width: auto;
    padding: 3px 8px;
    font-size: 12px;
}

/* Цветовые статусы для типов платежей */
.payment-item.training {
    border-left: 4px solid #4CAF50;
}

.payment-item.competition {
    border-left: 4px solid #2196F3;
}

.payment-item.subscription {
    border-left: 4px solid #9C27B0;
}

/* Индикатор нового платежа (последние 7 дней) */
.payment-item.new {
    position: relative;
}

.payment-item.new::after {
    content: 'NEW';
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff6b6b;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    transform: rotate(15deg);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

/* Анимация появления платежей */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.payment-item {
    animation: slideInRight 0.3s ease-out forwards;
    opacity: 0;
}

.payment-item:nth-child(1) { animation-delay: 0.1s; }
.payment-item:nth-child(2) { animation-delay: 0.15s; }
.payment-item:nth-child(3) { animation-delay: 0.2s; }
.payment-item:nth-child(4) { animation-delay: 0.25s; }
.payment-item:nth-child(5) { animation-delay: 0.3s; }
.payment-item:nth-child(6) { animation-delay: 0.35s; }
.payment-item:nth-child(7) { animation-delay: 0.4s; }
.payment-item:nth-child(8) { animation-delay: 0.45s; }

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #dee2e6;
}

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

.empty-state h4 {
    margin-bottom: 8px;
    color: #495057;
    font-size: 16px;
}

.empty-state p {
    font-size: 13px;
    color: #6c757d;
}

/* Кнопки действий */
.payment-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f5;
}

.payment-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.payment-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    color: white;
}

.payment-btn.primary:hover {
    background: linear-gradient(135deg, #43a047, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.payment-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.payment-btn.secondary:hover {
    background: #e9ecef;
    border-color: #4CAF50;
}

/* Состояния загрузки и ошибок */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6c757d;
    text-align: center;
}

.loading i {
    margin-bottom: 15px;
    color: #4CAF50;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.error-state i {
    margin-bottom: 15px;
    color: #e74c3c;
}

.retry-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: #43a047;
}

/* Адаптивность */
@media (max-width: 768px) {
    .children-header {
        flex-direction: column;
    }

    .child-header-item {
        min-width: 100%;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-item {
        padding: 10px 12px;
    }

    .payment-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .payment-info-line {
        width: 100%;
        justify-content: space-between;
    }

    .payment-item-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .payment-date,
    .payment-description {
        width: 100%;
        justify-content: space-between;
    }

    .payment-amount {
        font-size: 15px;
    }

    .child-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .payment-item {
        padding: 8px 10px;
    }

    .child-header-item {
        padding: 12px;
    }

    .child-name {
        font-size: 14px;
    }

    .child-info {
        font-size: 12px;
    }

    .classes-remaining span {
        font-size: 14px;
    }

    .payment-child {
        font-size: 13px;
        padding: 3px 8px;
    }

    .payment-amount {
        font-size: 14px;
    }

    .payment-date,
    .payment-description {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* Градиенты для точек (добавить к существующим стилям) */
.info-dot[style*="667eea"] {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.info-dot[style*="66BB6A"] {
    background: linear-gradient(135deg, #66BB6A, #43A047) !important;
}

.info-dot[style*="ef5350"] {
    background: linear-gradient(135deg, #ef5350, #e53935) !important;
}

.info-dot[style*="FFD700"] {
    background: linear-gradient(135deg, #FFD700, #FFC107) !important;
}

/* Стиль для пустой границы (будущая тренировка) */
.info-dot[style*="border: 2px solid #4CAF50"] {
    background: white !important;
    border: 2px solid #4CAF50 !important;
}



/* Обновленный profileModal в стиле с основным градиентом */
#profileModal .modal-content {
    max-width: 450px;
    max-height: 80vh;
    background: linear-gradient(135deg, #0c074d, #1a5f7a) !important;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}


/* Хедер профиля */
#profileModal .modal-header {
    background: linear-gradient(90deg, #0a41a5, #1a7fad);
    color: white;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


