/* ===============================================
   RESET & BASE
   =============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px 100px 12px; /* Увеличен нижний отступ для bottom nav */
    position: relative;
    z-index: 2;
}

/* ===============================================
   HEADER
   =============================================== */
.header-fixed {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.header {
    text-align: center;
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

/* Логотип */
.logo-container {
    width: 96px;
    height: 96px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    margin-top: auto;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 1px;  /* Уменьшил с 2px */
}

.main-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.sport-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 2px;
    opacity: 0.8;
}

.admin-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

/* ===============================================
   BOTTOM NAVIGATION (iOS/Android Style)
   =============================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px 4px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-btn:active {
    transform: scale(0.95);
}

.bottom-nav-btn.active {
    color: #667eea;
}

.nav-icon {
    font-size: 24px;
    line-height: 1;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===============================================
   OVERLAY MENU (Slide-up)
   =============================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    max-height: 60vh;
    overflow-y: auto;
}

.menu-overlay.active .menu-panel {
    transform: translateY(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.menu-title {
    font-size: 20px;
    font-weight: 700;
}

.menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.menu-items {
    display: grid;
    gap: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    text-align: left;
}

.menu-item:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.menu-item-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.menu-item-text {
    flex: 1;
}

.menu-item-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: 12px;
    opacity: 0.7;
}

/* ===============================================
   TAB CONTENT
   =============================================== */
.content {
    margin-top: 20px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ===============================================
   STATS GRID
   =============================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.stat-icon {
    font-size: 38px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ===============================================
   SECTION TITLE
   =============================================== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* ===============================================
   CHARTS
   =============================================== */
.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 25px;
}

canvas {
    max-height: 300px !important;
    width: 100% !important;
}

/* ===============================================
   ALERTS / ПРОБЛЕМНЫЕ ЗОНЫ
   =============================================== */
.alerts-list {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.alert-card {
    background: rgba(255, 87, 87, 0.1);
    border: 2px solid rgba(255, 87, 87, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.alert-card:hover {
    background: rgba(255, 87, 87, 0.15);
    border-color: rgba(255, 87, 87, 0.5);
    transform: translateX(5px);
}

.alert-card.warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.alert-card.warning:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.5);
}

.alert-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.alert-text {
    font-size: 14px;
    opacity: 0.9;
}

/* ===============================================
   COACHES PERFORMANCE
   =============================================== */
.coaches-performance-list {
    display: grid;
    gap: 15px;
}

.coach-performance-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.3s ease;
}

.coach-performance-card:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.coach-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.coach-name {
    font-size: 17px;
    font-weight: 700;
}

.coach-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.rating-badge {
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px;
}

.rating-badge.excellent {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.rating-badge.good {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.rating-badge.needs-attention {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.coach-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 10px;
}

.metric-label {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
}

.metric-value.good {
    color: #4ade80;
}

.metric-value.bad {
    color: #f87171;
}

/* ===============================================
   ANALYTICS
   =============================================== */
.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.analytics-label {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.analytics-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===============================================
   DETAIL TABLE
   =============================================== */
.detail-table {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.table-row {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
}

.table-row.table-header {
    display: none; /* Скрываем заголовок на мобильных */
}

.table-cell {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    align-items: center;
}

.table-cell::before {
    content: attr(data-label);
    font-weight: 700;
    opacity: 0.7;
}

/* Desktop стиль для больших экранов */
@media (min-width: 768px) {
    .table-row {
        display: grid;
        grid-template-columns: 120px 150px 120px 1fr 100px 100px;
        gap: 15px;
        padding: 15px 20px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .table-row.table-header {
        display: grid;
        background: rgba(255, 255, 255, 0.08);
        font-weight: 700;
        font-size: 13px;
        opacity: 0.9;
    }
    
    .table-cell {
        display: block;
        padding: 0;
    }
    
    .table-cell::before {
        display: none;
    }
    
    .detail-table {
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        overflow: hidden;
        gap: 0;
    }
}

/* ===============================================
   FILTERS
   =============================================== */
.filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-select:active,
.filter-input:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.filter-select option {
    background: #1a1a2e;
    color: #ffffff;
}

/* ===============================================
   RATINGS TABLE (Таблица рейтинга)
   =============================================== */
.ratings-table-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
}

.ratings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ratings-table {
    width: 100%;
    border-collapse: collapse;
}

.ratings-table thead {
    background: rgba(255, 255, 255, 0.08);
}

.ratings-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.ratings-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.ratings-table tbody tr {
    transition: all 0.2s ease;
}

.ratings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ratings-table tbody tr:active {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .ratings-table th,
    .ratings-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* ===============================================
   SCHEDULE TABLE (Расписание)
   =============================================== */
.create-substitution-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.create-substitution-btn:active {
    transform: scale(0.98);
}

.substitutions-list {
    display: grid;
    gap: 12px;
}

.substitution-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
}

.substitution-card.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.substitution-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.substitution-group {
    font-size: 17px;
    font-weight: 700;
}

.substitution-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.substitution-badge.active {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.substitution-badge.ended {
    background: rgba(255, 255, 255, 0.2);
}

.substitution-info {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.substitution-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.substitution-icon {
    font-size: 16px;
    width: 20px;
}

.substitution-text {
    flex: 1;
    opacity: 0.9;
}

.substitution-reason {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.substitution-actions {
    display: flex;
    gap: 8px;
}

.substitution-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.substitution-btn.end {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 2px solid rgba(248, 113, 113, 0.3);
}

.substitution-btn.end:active {
    background: rgba(248, 113, 113, 0.3);
}

/* ===============================================
   MODAL (Модальное окно)
   =============================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.modal-overlay.active .modal-panel {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.modal-body {
    padding: 20px;
}

/* ===============================================
   FORM (Формы)
   =============================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.form-input:read-only {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.form-textarea {
    resize: vertical;
    font-family: inherit;
}

.radio-group {
    display: flex;
    gap: 15px;
}

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

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-btn:active {
    transform: scale(0.98);
}
.groups-overview-list {
    display: grid;
    gap: 20px;
}

.group-overview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
}

.group-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.group-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.group-stat {
    text-align: center;
}

.group-stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.group-stat-label {
    font-size: 12px;
    opacity: 0.7;
}

/* ===============================================
   PERFORMANCE / РЕЙТИНГ
   =============================================== */
.performance-list {
    display: grid;
    gap: 15px;
}

.performance-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.performance-rank {
    font-size: 32px;
    font-weight: 900;
    width: 60px;
    text-align: center;
    color: #667eea;
}

.performance-info {
    flex: 1;
}

.performance-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.performance-details {
    font-size: 14px;
    opacity: 0.8;
}

.performance-score {
    font-size: 28px;
    font-weight: 700;
    text-align: right;
}

/* ===============================================
   SCHEDULE CALENDAR
   =============================================== */
.schedule-calendar {
    display: grid;
    gap: 15px;
}

.schedule-day {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.day-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.schedule-events {
    display: grid;
    gap: 10px;
}

.schedule-event {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.event-time {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
}

/* ===============================================
   REPORTS CONTROL
   =============================================== */
.reports-control-list {
    display: grid;
    gap: 15px;
}

.report-control-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-info {
    flex: 1;
}

.report-date {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.report-details {
    font-size: 14px;
    opacity: 0.8;
}

.report-status {
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.report-status.filled {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.report-status.missing {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

/* ===============================================
   LOADING & EMPTY STATES
   =============================================== */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    opacity: 0.6;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-text {
    font-size: 16px;
    opacity: 0.6;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

/* Desktop - показываем горизонтальное меню */
@media (min-width: 769px) {
    .bottom-nav {
        position: static;
        padding: 20px 0;
        border-top: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
        gap: 20px;
    }
    
    .bottom-nav-btn {
        flex: 0 0 auto;
        min-width: 140px;
        flex-direction: row;
        gap: 10px;
        padding: 12px 20px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    .bottom-nav-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    .bottom-nav-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: transparent;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 13px;
    }
    
    .container {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }
    
    .logo-img {
        width: 100%;
        height: 100%;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .main-title {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .sport-name {
        font-size: 9px;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 9px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-value {
        font-size: 28px;
    }
    
    .stat-icon {
        font-size: 32px;
    }

    .coach-metrics,
    .group-stats,
    .analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-card {
        padding: 15px;
    }
    
    .analytics-value {
        font-size: 24px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .logo-container {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
    
    .logo-img {
        width: 100%;
        height: 100%;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .main-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .sport-name {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .nav-label {
        font-size: 9px;
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .header-fixed {
        position: relative;
    }
    
    .chart-container {
        max-height: 200px;
    }
    
    .bottom-nav {
        padding: 6px 0;
    }
    
    .nav-icon {
        font-size: 20px;
    }
}

/* ===============================================
   SCHEDULE CALENDAR (Расписание)
   =============================================== */
.schedule-calendar {
    display: grid;
    gap: 20px;
}

.schedule-day {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.day-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.schedule-events {
    padding: 15px;
    display: grid;
    gap: 12px;
}

.schedule-event {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.2s ease;
}

.schedule-event.training {
    border-left-color: #667eea;
}

.schedule-event.competition {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.08);
}

.schedule-event.event {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.schedule-event:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

.event-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.event-content {
    flex: 1;
}

.event-time {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.event-group {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.event-notes {
    font-size: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 8px;
}

.reports-control-list {
    display: grid;
    gap: 12px;
}

.report-control-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    gap: 15px;
}

.report-control-card.missing {
    border-left: 4px solid #f87171;
    background: rgba(248, 113, 113, 0.08);
}

.report-control-card.filled {
    border-left: 4px solid #4ade80;
    background: rgba(74, 222, 128, 0.08);
}

.report-info {
    flex: 1;
}

.report-date {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.report-details {
    font-size: 13px;
    opacity: 0.7;
}

.report-status {
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 10px;
    white-space: nowrap;
}

.report-control-card.missing .report-status {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.report-control-card.filled .report-status {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

/* ===============================================
   INLINE SUBSTITUTION FORM (Форма замен)
   =============================================== */
.substitution-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #667eea;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label-inline {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

.form-select-inline,
.form-input-inline {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-select-inline:focus,
.form-input-inline:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.form-select-inline option {
    background: #1a1a2e;
    color: #ffffff;
}

.submit-btn-inline {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.submit-btn-inline:active {
    transform: scale(0.98);
}

/* Mobile */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===============================================
   GOOGLE CALENDAR STYLE (Календарь)
   =============================================== */
.filters-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.calendar-period-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.calendar-today-btn {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
    border-radius: 8px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-today-btn:active {
    background: rgba(102, 126, 234, 0.3);
}

/* Календарная сетка - МЕСЯЦ */
.calendar-grid-container {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.weekday-header {
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    opacity: 0.7;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day-cell {
    min-height: 80px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

.calendar-day-cell:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.calendar-day-cell:active {
    background: rgba(255, 255, 255, 0.12);
}

.calendar-day-cell.other-month {
    opacity: 0.3;
}

.calendar-day-cell.today {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

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

.day-events-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin: 2px;
}

.event-dot.training {
    background: #667eea;
}

.event-dot.competition {
    background: #f39c12;
}

.event-dot.event {
    background: #e74c3c;
}

/* Календарная сетка - НЕДЕЛЯ */
.week-calendar-container {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.week-grid {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.week-day-column {
    background: rgba(255, 255, 255, 0.02);
    min-height: 400px;
}

.week-day-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.week-day-name {
    font-weight: 700;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.week-day-number {
    font-weight: 700;
    font-size: 18px;
}

.week-day-events {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-event-item {
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.week-event-item.training {
    background: rgba(102, 126, 234, 0.2);
    border-left: 3px solid #667eea;
}

.week-event-item.competition {
    background: rgba(243, 156, 18, 0.2);
    border-left: 3px solid #f39c12;
}

.week-event-item.event {
    background: rgba(231, 76, 60, 0.2);
    border-left: 3px solid #e74c3c;
}

.week-event-item:active {
    transform: scale(0.98);
}

.week-event-time {
    font-weight: 700;
    margin-bottom: 4px;
}

/* Модальное окно событий дня */
.day-events-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.day-events-panel {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.day-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.day-events-title {
    font-size: 20px;
    font-weight: 700;
}

.day-events-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-events-close:active {
    background: rgba(255, 255, 255, 0.2);
}

.day-events-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-event-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid;
}

.modal-event-item.training {
    border-left-color: #667eea;
}

.modal-event-item.competition {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.08);
}

.modal-event-item.event {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.modal-event-icon {
    font-size: 28px;
}

.modal-event-content {
    flex: 1;
}

.modal-event-time {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.modal-event-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-event-group {
    font-size: 13px;
    opacity: 0.7;
}

.modal-event-notes {
    font-size: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .calendar-day-cell {
        min-height: 60px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .weekday-header {
        font-size: 10px;
        padding: 8px 4px;
    }
    
    .week-day-column {
        min-height: 300px;
    }
}

/* ===============================================
   COMPETITIONS - COACH RATINGS (Рейтинг тренеров)
   =============================================== */
.coach-ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.coach-rating-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}

.coach-rating-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.coach-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.coach-rating-name {
    font-size: 20px;
    font-weight: 700;
}

.coach-rating-total {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

.coach-rating-medals {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.medal-stat {
    text-align: center;
}

.medal-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.medal-count {
    font-size: 24px;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .coach-ratings-grid {
        grid-template-columns: 1fr;
    }
    
    .medal-icon {
        font-size: 32px;
    }
    
    .medal-count {
        font-size: 20px;
    }
}

/* ===============================================
   COMPACT WEEK CALENDAR (Компактный недельный календарь)
   =============================================== */
.week-compact-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.week-compact-day {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 100px;
}

.week-compact-day:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.week-compact-day:active {
    transform: scale(0.98);
}

.week-compact-day.today {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

.week-compact-header {
    text-align: center;
    margin-bottom: 8px;
}

.week-compact-weekday {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 600;
    margin-bottom: 2px;
}

.week-compact-date {
    font-size: 18px;
    font-weight: 700;
}

.week-compact-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.week-compact-event {
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 4px;
    border-left: 2px solid;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.week-compact-event.training {
    background: rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
}

.week-compact-event.competition {
    background: rgba(243, 156, 18, 0.2);
    border-left-color: #f39c12;
}

.week-compact-event.event {
    background: rgba(231, 76, 60, 0.2);
    border-left-color: #e74c3c;
}

.week-compact-more {
    font-size: 10px;
    text-align: center;
    color: #667eea;
    font-weight: 600;
    margin-top: 4px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .week-compact-calendar {
        gap: 6px;
    }
    
    .week-compact-day {
        padding: 8px 6px;
        min-height: 90px;
    }
    
    .week-compact-weekday {
        font-size: 9px;
    }
    
    .week-compact-date {
        font-size: 16px;
    }
    
    .week-compact-event {
        font-size: 9px;
        padding: 3px 5px;
    }
}

/* ===============================================
   COACHES TABS (Табы тренеров - Steve Jobs Style)
   =============================================== */
.coaches-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
    margin-bottom: 20px;
}

.coaches-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coaches-tab-btn.active {
    background: #ffffff;
    color: #000000;
}

.coaches-subtab {
    display: none;
}

.coaches-subtab.active {
    display: block;
}

/* ===============================================
   COACHES TABLE (Таблица эффективности)
   =============================================== */
.coaches-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.coaches-table {
    width: 100%;
    border-collapse: collapse;
}

.coaches-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.coaches-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coaches-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.coaches-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.coaches-table td {
    padding: 16px 10px;
    font-size: 14px;
}

.metric-excellent {
    color: #4ade80;
    font-weight: 700;
}

.metric-good {
    color: #4ade80;
    font-weight: 600;
}

.metric-warning {
    color: #fbbf24;
    font-weight: 600;
}

.metric-danger {
    color: #ef4444;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.excellent {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-badge.good {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.warning {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .coaches-table thead {
        display: none;
    }
    
    .coaches-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .coaches-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
    }
    
    .coaches-table td:before {
        content: attr(data-label);
        font-weight: 700;
        opacity: 0.7;
        font-size: 12px;
    }
}

/* ===============================================
   REPORTS CALENDAR (Календарь отчётов)
   =============================================== */

/* Header */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-view-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2px;
    gap: 1px;  /* Уменьшил с 2px */
}

.reports-view-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reports-view-btn.active {
    background: #ffffff;
    color: #000000;
}

.reports-filter {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Navigation */
.reports-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.reports-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reports-nav-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

.reports-month-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.reports-today-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reports-today-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

/* ============== MONTH VIEW ============== */
.reports-month-view {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    contain: layout;
}

.reports-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.reports-weekday {
    padding: 10px 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.reports-day {
    background: rgba(0, 0, 0, 0.2);
    aspect-ratio: 1;
    padding: 4px 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
    overflow: hidden;
}

.reports-day:nth-child(7n) {
    border-right: none;
}

.reports-day:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}

.reports-day.other-month {
    opacity: 0.3;
}

.reports-day.before-schedule {
    opacity: 0.2;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.1);
}

.reports-day.before-schedule:active {
    transform: none;
}

.reports-day.today {
    background: rgba(66, 133, 244, 0.15);
}

.reports-day.today .reports-day-number {
    background: #4285f4;
    color: #ffffff;
}

.reports-day-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.reports-status-indicators {
    display: flex;
    flex-direction: column;  /* ВЕРТИКАЛЬНО - каждая пара на новой строке */
    gap: 1px;  /* Уменьшил с 2px */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 3px;  /* Отступ снизу чтобы не впритык */
}

.reports-indicator {
    width: 20px;  /* БЫЛО: 80% - слишком широко! */
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}

.reports-indicator.filled {
    background: #4ade80;
}

.reports-indicator.missing {
    background: #ef4444;
}

.reports-indicator.future {
    background: #64748b;
    opacity: 0.5;
}

.reports-count {
    font-size: 9px;  /* Уменьшил обратно для компактности */
    font-weight: 700;
    line-height: 1;  /* Убираем лишнее вертикальное пространство */
    margin: 0;
}

.reports-count.filled {
    color: #4ade80;
}

.reports-count.missing {
    color: #ef4444;
}

.reports-count.future {
    color: #94a3b8;
    opacity: 0.7;
}

/* MODAL */
.reports-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
}

.reports-modal-content {
    background: #1a1a2e;
    width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.reports-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-modal-date {
    font-size: 18px;
    font-weight: 700;
}

.reports-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reports-modal-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.reports-modal-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reports-modal-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid;
}

.reports-modal-item.filled {
    border-left-color: #4ade80;
}

.reports-modal-item.missing {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.reports-modal-group {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.reports-modal-coach {
    font-size: 13px;
    opacity: 0.7;
}

.reports-modal-status {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.reports-modal-status.filled {
    color: #4ade80;
}

.reports-modal-status.missing {
    color: #ef4444;
}

.reports-modal-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .reports-weekday {
        padding: 8px 0;
        font-size: 9px;
    }
    
    .reports-day {
        padding: 4px 2px;
    }
    
    .reports-day-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .reports-indicator {
        height: 2px;
    }
}

@media (min-width: 768px) {
    .reports-day {
        padding: 8px 6px;
    }
    
    .reports-day-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* ============== WEEK VIEW ============== */
.reports-week-view {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.reports-week-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.reports-week-day {
    background: rgba(0, 0, 0, 0.2);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
}

.reports-week-header {
    padding: 10px 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-week-day.today .reports-week-header {
    background: rgba(66, 133, 244, 0.15);
}

.reports-week-day.today .reports-week-date {
    background: #4285f4;
    color: #ffffff;
}

.reports-week-name {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    margin-bottom: 4px;
}

.reports-week-date {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin: 0 auto;
}

.reports-week-items {
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.reports-week-item {
    padding: 6px 4px;
    border-radius: 4px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid;
    word-wrap: break-word;
}

.reports-week-item:active {
    transform: scale(0.98);
}

.reports-week-item.filled {
    background: rgba(74, 222, 128, 0.15);
    border-left-color: #4ade80;
}

.reports-week-item.missing {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
}

.reports-week-item.future {
    background: rgba(100, 116, 139, 0.1);
    border-left-color: #64748b;
    opacity: 0.6;
}

.reports-week-group {
    font-weight: 700;
    margin-bottom: 2px;
}

.reports-week-coach {
    opacity: 0.7;
    font-size: 8px;
}

/* Адаптация недельного вида */
@media (min-width: 480px) {
    .reports-week-name {
        font-size: 10px;
    }
    
    .reports-week-date {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .reports-week-item {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .reports-week-coach {
        font-size: 9px;
    }
}

@media (min-width: 768px) {
    .reports-week-header {
        padding: 12px 8px;
    }
    
    .reports-week-day {
        min-height: 400px;
    }
    
    .reports-week-items {
        padding: 8px 6px;
        gap: 6px;
    }
    
    .reports-week-item {
        padding: 10px 8px;
        font-size: 11px;
        border-radius: 6px;
    }
    
    .reports-week-coach {
        font-size: 10px;
    }
}


/* ===============================================
   ATTENDANCE (Посещаемость) - КОМПАКТНАЯ
   =============================================== */

/* Табы */
.attendance-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
    margin-bottom: 15px;
}

.attendance-tab-btn {
    flex: 1;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attendance-tab-btn.active {
    background: #ffffff;
    color: #000000;
}

.attendance-subtab {
    display: none;
}

.attendance-subtab.active {
    display: block;
}

/* Фильтры */
.attendance-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
}

.period-filter {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.period-filter.active {
    background: #ffffff;
    color: #000000;
}

.group-filter-wrapper {
    margin-bottom: 12px;
    text-align: center;
}

.group-filter {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    min-width: 160px;
    width: 100%;
    box-sizing: border-box;
}

/* Таблица - КОМПАКТНАЯ */
.attendance-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.attendance-table th {
    padding: 8px 6px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.attendance-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
    cursor: pointer;
}

.attendance-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.attendance-table td {
    padding: 10px 6px;
    font-size: 13px;
}

/* ИСПРАВЛЕНИЕ: Таблица в модалке с светлым фоном */
.student-details-overlay .attendance-table-wrapper {
    background: rgba(0, 0, 0, 0.03);
}

.student-details-overlay .attendance-table th {
    color: rgba(0, 0, 0, 0.6);
}

.student-details-overlay .attendance-table td {
    color: rgba(0, 0, 0, 0.9);
}

.student-details-overlay .attendance-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.student-details-overlay .attendance-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Номер - МАЛЕНЬКИЙ */
.attendance-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 10px;
}

.attendance-rank.top1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.attendance-rank.top2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
}

.attendance-rank.top3 {
    background: linear-gradient(135deg, #cd7f32, #f4a460);
    color: #000;
}

/* Процент */
.attendance-percent {
    font-weight: 700;
    font-size: 13px;
}

.attendance-percent.excellent,
.attendance-percent.good {
    color: #4ade80;
}

.attendance-percent.warning {
    color: #fbbf24;
}

.attendance-percent.danger {
    color: #ef4444;
}

/* Кнопка - МАЛЕНЬКАЯ */
.attendance-details-btn {
    padding: 3px 8px;
    background: rgba(66, 133, 244, 0.12);
    border: none;
    border-radius: 4px;
    color: #4285f4;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.attendance-details-btn:hover {
    background: rgba(66, 133, 244, 0.2);
}

.attendance-details-btn:active {
    transform: scale(0.95);
}

/* Адаптация колонок */
@media (min-width: 769px) {
    .attendance-table th:first-child,
    .attendance-table td:first-child {
        width: 45px;
        text-align: center;
    }
    
    .attendance-table th:last-child,
    .attendance-table td:last-child {
        width: 70px;
        text-align: center;
    }
}

/* Mobile - ТАБЛИЦА КАК НА ДЕСКТОПЕ, НАХУЙ КАРТОЧКИ! */
@media (max-width: 768px) {
    .attendance-table {
        font-size: 11px;
    }
    
    .attendance-table th {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .attendance-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .attendance-rank {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .attendance-percent {
        font-size: 11px;
    }
    
    .attendance-details-btn {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .attendance-table th:first-child,
    .attendance-table td:first-child {
        width: 35px;
        text-align: center;
    }
    
    .attendance-table th:last-child,
    .attendance-table td:last-child {
        width: 55px;
        text-align: center;
    }
}

/* ===============================================

/* ===============================================
   STUDENT STATS MODAL - КАК В РЕФЕРЕНСЕ
   =============================================== */

.student-stats-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.student-stats-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.student-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.student-stats-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.student-stats-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.student-stats-body {
    padding: 25px;
}

/* Фильтры */
.stats-period-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.period-tab-small {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.period-tab-small.active {
    background: #d9b86e;
    color: #000000;
    border-color: #d9b86e;
}

/* Карточки */
.stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card-modal {
    background: rgba(217, 184, 110, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-card-modal h4 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 15px 0;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-value-modal {
    font-size: 32px;
    font-weight: 700;
    color: #d9b86e;
    margin: 15px 0;
}

.stat-value-modal.danger {
    color: #ef4444;
}

.stat-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* График */
.chart-wrapper {
    background: rgba(217, 184, 110, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.chart-wrapper h4 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
}

.chart-container-fixed {
    height: 300px;
    position: relative;
}

/* Пропуски */
.absences-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
}

.absences-wrapper h4 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
}

.absences-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.absence-item {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    padding: 12px 15px;
}

.absence-date {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 4px;
}

.absence-reason {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.absence-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Значок с количеством красных отчетов */
.missing-badge {
    background: #dc3545 !important;
    color: white !important;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
}

/* Улучшенный стиль для мобильных устройств */
@media (max-width: 768px) {
    .missing-badge {
        background: #dc3545 !important;
        color: white !important;
        border-radius: 12px !important;
        padding: 3px 8px !important;
        font-size: 13px !important;
        font-weight: bold !important;
        margin-left: 6px !important;
        display: inline-block !important;
        position: relative !important;
        z-index: 100 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    }
}

/* ПАРА: риска + счётчик */
.reports-status-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    line-height: 1;  /* Компактность */
}
/* ===============================================
   КАСТОМНЫЕ МОДАЛЬНЫЕ ОКНА
   =============================================== */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1);
}

.custom-modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: iconPop 0.5s ease;
}

@keyframes iconPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.custom-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.custom-modal-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.custom-modal-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    min-width: 120px;
}

.custom-modal-btn.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.custom-modal-btn.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
}

.custom-modal-btn.error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    box-shadow: 0 4px 15px rgba(235, 51, 73, 0.3);
}

.custom-modal-btn.error:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 51, 73, 0.4);
}

.custom-modal-btn.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.custom-modal-btn.info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.custom-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 10px;
}

.custom-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.custom-modal-btn.confirm {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.custom-modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.custom-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Модалка загрузки */
.custom-modal.loading {
    padding: 50px;
}

.custom-modal-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 768px) {
    .custom-modal {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .custom-modal-icon {
        font-size: 48px;
    }
    
    .custom-modal-title {
        font-size: 22px;
    }
    
    .custom-modal-message {
        font-size: 14px;
    }
    
    .custom-modal-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .custom-modal-buttons {
        flex-direction: column;
    }
    
    .custom-modal-btn.cancel {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
