* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --border: #bdc3c7;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f1c40f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(255,255,255,0.1);
    color: #f1c40f;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Главный контент */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Карточки */
.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Календарь */
.calendar-container {
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-nav button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background: white;
    border-radius: 15px;
    padding: 15px;
    min-height: 120px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.calendar-day:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.1rem;
}

.tournament-event {
    background: var(--gradient);
    color: white;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: left;
}

.tournament-event:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.empty-day {
    background: rgba(255,255,255,0.5);
    border-radius: 15px;
    padding: 15px;
    min-height: 120px;
    border: 2px dashed var(--border);
    opacity: 0.5;
}

/* Стили для скидок */
.discount-badge {
    background: var(--gradient-success);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 8px;
    font-size: 0.9rem;
}

.discount-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.discount-timer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f1c40f;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 10px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-info {
    background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border-left: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.discount-info::before {
    content: '🎯';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Турниры */
.tournament-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tournament-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.tournament-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tournament-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Кнопки */
.download-btn, .submit-btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before, .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before, .submit-btn:hover::before {
    left: 100%;
}

.download-btn:hover, .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-edit {
    background: var(--gradient);
    color: white;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

/* Подвал */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #f1c40f;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #f1c40f;
}

.footer-section p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f1c40f;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        display: none;
        gap: 0.5rem;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
    }
    
    .mobile-menu {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: 100px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .tournament-item, .calendar-day {
    animation: fadeIn 0.6s ease-out;
}

/* Специфические стили для админ-панели */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Стили для выбора типа рейтинга */
.rating-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.rating-option {
    position: relative;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.rating-option label i {
    font-size: 2rem;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-option label span {
    font-weight: 600;
    color: var(--primary);
}

.rating-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rating-option input[type="radio"]:checked + label i,
.rating-option input[type="radio"]:checked + label span {
    color: var(--secondary);
}

.rating-option label:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.rating-fields {
    margin-top: 20px;
    animation: fadeIn 0.5s ease-out;
}

/* Улучшенные стили для информации о турнирах */
.tournament-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-block {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary);
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-block h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.info-block h3 i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Специальные стили для акционных турниров */
.tournament-promo {
    position: relative;
    background: linear-gradient(135deg, #fff9e6 0%, #ffeaa7 100%);
    border: 2px solid #f1c40f;
}

.tournament-promo::before {
    content: '🔥 ГОРЯЩЕЕ ПРЕДЛОЖЕНИЕ';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-warning);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}
/* Стили для поиска */
.search-section {
    background: var(--gradient);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.search-box i {
    color: var(--text-light);
    margin: 0 15px;
    align-self: center;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 12px 5px;
    border-radius: 50px;
    font-size: 1rem;
    background: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-box button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Стили для группировки турниров в календаре */
.tournament-more {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    margin-top: 5px;
    border: 1px dashed var(--secondary);
    transition: all 0.3s ease;
}

.tournament-more:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

/* Модальное окно для турниров дня */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--light);
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem;
}

/* Стили для результатов поиска */
.no-results, .no-tournaments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-results i, .no-tournaments i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3, .no-tournaments h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Стили для типов турниров */
.free-badge {
    background: var(--success);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

.prize-badge {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

/* Действия турнира */
.tournament-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tournament-actions .download-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Адаптивность для поиска */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
        gap: 10px;
    }
    
    .search-box input {
        padding: 15px;
        border-radius: 10px;
        border: 1px solid var(--border);
    }
    
    .search-box button {
        border-radius: 10px;
        padding: 15px;
    }
    
    .tournament-actions {
        flex-direction: column;
    }
    
    .tournament-actions .download-btn {
        flex: none;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 1rem 0;
    }
    
    .search-box {
        padding: 10px;
    }
}
/* Стили для страницы входа */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-card h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.login-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.login-links {
    margin-top: 2rem;
    text-align: center;
}

.login-links a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--primary);
}
/* Стили для управления модераторами */
.moderators-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.create-moderator-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.moderators-list {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.moderator-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary);
}

.moderator-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.moderator-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.moderator-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-reset-password {
    background: var(--warning);
    color: white;
}

.btn-delete-moderator {
    background: var(--accent);
    color: white;
}

.password-display {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: monospace;
    display: none;
}
/* Стили для админ-панели турниров */
.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.creator-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.creator-badge.admin {
    background: #f39c12;
    color: white;
}

.creator-badge.moderator {
    background: #3498db;
    color: white;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    margin-left: 8px;
}

.tournament-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-registrations {
    background: #9b59b6 !important;
}

.btn-registrations:hover {
    background: #8e44ad !important;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.registration-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.registration-item h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}
/* ===== СТИЛИ ДЛЯ АДМИН-ПАНЕЛИ ТУРНИРОВ ===== */

/* Заголовок карточки турнира */
.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Бейдж создателя */
.creator-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.creator-badge.admin {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.creator-badge.moderator {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Бейдж скидки */
.discount-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    display: inline-block;
}

/* Действия с турниром */
.tournament-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-registrations {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-registrations:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}

/* Карточка турнира в админке */
.tournament-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.tournament-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.tournament-info p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.tournament-info strong {
    color: #2c3e50;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
    background: #f8f9fa;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #ecf0f1;
    text-align: right;
    background: white;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Список заявок */
.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.registration-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.registration-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.registration-item h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.registration-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.registration-info p {
    margin: 4px 0;
    color: #555;
    font-size: 14px;
}

.registration-info strong {
    color: #2c3e50;
    font-weight: 600;
}

/* ===== КНОПКИ АДМИН-ПАНЕЛИ ===== */

.btn-edit {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* ===== ФОРМЫ АДМИН-ПАНЕЛИ ===== */

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.admin-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Контейнеры для модераторов и турниров */
.moderators-container,
.tournaments-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.moderator-card {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.moderator-card:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.moderator-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.moderator-actions {
    display: flex;
    gap: 10px;
}

.btn-reset-password {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-reset-password:hover {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    transform: translateY(-1px);
}

.btn-delete-moderator {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-delete-moderator:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d) !important;
    transform: translateY(-1px);
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 768px) {
    .tournament-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tournament-actions {
        flex-direction: column;
    }
    
    .tournament-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .registration-info {
        grid-template-columns: 1fr;
    }
    
    .moderator-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .moderator-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== УТИЛИТЫ ===== */

.text-success {
    color: #27ae60;
}

.text-warning {
    color: #f39c12;
}

.text-danger {
    color: #e74c3c;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-success {
    background: #27ae60;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

.badge-info {
    background: #3498db;
    color: white;
}
/* Стили для модального окна заявок */
.modal-subtitle {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
}

.registrations-stats {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.registration-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.registration-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.registration-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.registration-number {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.registration-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-group span {
    color: #555;
    word-break: break-word;
}

.participant-code {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: bold;
    color: #e74c3c;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid #ecf0f1;
    background: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d) !important;
    transform: translateY(-2px);
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .info-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .registration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Стили для счетчика заявок */
.text-success {
    color: #27ae60 !important;
    font-weight: bold;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #bdc3c7;
    font-size: 1.1em;
}
/* Дополнительные стили для модального окна заявок */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
    background: #f8f9fa;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.registrations-stats {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
}

.stat-item i {
    font-size: 1.3em;
}

.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.registration-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.registration-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.registration-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.registration-number {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.registration-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-group span {
    color: #555;
    word-break: break-word;
    font-size: 1em;
}

.participant-code {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #e74c3c;
    border: 1px solid #e1e8ed;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .registration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .registrations-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .registration-item {
        padding: 20px;
    }
}
/* Стили для модального окна заявок */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e1e8ed;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: relative;
}

.modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
    background: #f8f9fa;
}

.registrations-stats {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
}

.stat-item i {
    font-size: 1.4em;
    opacity: 0.9;
}

.registrations-list {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.registration-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
}

.registration-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

.registration-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 700;
}

.registration-number {
    background: #e74c3c;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.registration-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-group label i {
    width: 20px;
    text-align: center;
    color: #3498db;
}

.info-group span {
    color: #555;
    word-break: break-word;
    font-size: 1.05em;
    padding: 8px 0;
}

.participant-code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #e74c3c;
    border: 1px solid #e1e8ed;
    font-size: 1.1em;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .registration-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .registrations-stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .registrations-list {
        padding: 20px;
    }
    
    .registration-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3em;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
    }
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.category-checkbox:hover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.category-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #2c3e50;
}

.category-checkbox input[type="checkbox"]:checked {
    accent-color: #3498db;
}

/* Для админ панели - аналогичные стили */
.admin-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.admin-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.admin-category-label:hover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}
/* Стили для категорий турнира - одинаковые для админа и модератора */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-weight: 500;
}

.category-checkbox:hover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.category-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.category-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #2c3e50;
}

.category-checkbox input[type="checkbox"]:checked {
    accent-color: #3498db;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .category-checkbox {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Добавьте эти стили в конец файла style.css */

/* Стили для модальных окон Excel базы */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content.large-modal {
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-subtitle {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.table-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Стили для секции управления Excel */
.excel-management {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.excel-stats .stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.excel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .excel-management {
        grid-template-columns: 1fr;
    }
    
    .modal-content.large-modal {
        width: 100%;
        margin: 10px;
    }
    
    .modal-subtitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-box {
        margin-left: 0;
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
        min-width: 200px;
    }
}

/* Стили для управления Excel */
.excel-management {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.excel-stats .stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.excel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content.large-modal {
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-subtitle {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 250px;
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.table-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Адаптивность */
@media (max-width: 768px) {
    .excel-management {
        grid-template-columns: 1fr;
    }
    
    .modal-content.large-modal {
        width: 100%;
        margin: 10px;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-subtitle {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
        min-width: auto;
    }
}

/* Стили для управления Excel базой */
.excel-management {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.excel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.excel-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.excel-actions .btn-primary {
    background: #3498db;
    color: white;
}

.excel-actions .btn-secondary {
    background: #95a5a6;
    color: white;
}

.excel-actions .btn-success {
    background: #27ae60;
    color: white;
}

.excel-actions .btn-info {
    background: #17a2b8;
    color: white;
}

.excel-actions .btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content.large-modal {
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-subtitle {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}