/* Основные переменные цветов */
:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4e4a6;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

/* Глобальные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
background: linear-gradient(135deg, var(--primary-dark) 0%, #2d1b69 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-attachment: fixed;
    padding-top: 150px !important; /* УВЕЛИЧИВАЕМ с 70px до 100px */
}

/* Навигация */
.navbar-custom {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    padding: 10px 0;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav > li > a {
    color: var(--text-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 15px !important;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-nav > li > a:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

.navbar-custom .navbar-nav > .active > a {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700) !important;
    color: var(--primary-dark) !important;
    border-radius: 25px;
    margin: 8px 5px;
}

/* Панели и карточки */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
}

.panel-header-gold {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700) !important;
    color: var(--primary-dark) !important;
    border-radius: 12px 12px 0 0 !important;
    font-weight: bold;
    text-align: center;
    border: none;
    padding: 15px 20px !important;
}

/* Таблицы */
.table-dark-custom {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.table-dark-custom thead th {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    text-align: center;
    padding: 15px 10px;
}

.table-dark-custom tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.table-dark-custom tbody tr:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.01);
}

.table-dark-custom tbody td {
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    vertical-align: middle;
    padding: 12px 10px;
}

/* Кнопки */
.btn-gold {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--primary-dark);
    background: linear-gradient(45deg, #ffd700, var(--accent-gold));
}

.btn-gold:active {
    transform: translateY(0);
}

/* Текст золотого цвета */
.text-gold {
    color: var(--accent-gold) !important;
}

/* Пагинация */
.pagination {
    margin: 10px 0;
}

.pagination > li > a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination > li > a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

.pagination > .active > a {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Модальные окна */
.modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border-radius: 13px 13px 0 0;
    padding: 15px 20px;
}

.modal-header .close {
    color: var(--primary-dark);
    text-shadow: none;
    opacity: 0.8;
    font-size: 24px;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 20px;
}

/* Изображения */
.img-glow {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
}

.img-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

/* Футер */
.footer-custom {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--accent-gold);
    color: var(--text-primary);
    padding: 20px 0;
    margin-top: 40px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Статус сервера */
.status-online {
    color: var(--success);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-offline {
    color: var(--danger);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Списки */
.list-group-item-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    margin-bottom: 5px;
    border-radius: 8px;
    padding: 12px 15px;
}

.list-group-item-custom strong {
    color: var(--accent-gold);
}

/* Бейджи */
.badge-gold {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    font-weight: bold;
    border-radius: 12px;
    padding: 5px 10px;
}

/* Метки */
.label {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.label-success {
    background: var(--success);
    color: white;
}

.label-danger {
    background: var(--danger);
    color: white;
}

.label-warning {
    background: var(--warning);
    color: black;
}

/* Счетчики */
.counter {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Прогресс бар */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    transition: width 0.6s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding-top: 105px !important; /* УВЕЛИЧИВАЕМ с 60px до 85px */
    }
    
	/* Дополнительный класс для большего отступа от меню */
.content-below-nav {
    margin-top: 20px; /* Дополнительный отступ если нужно */
}

	
    .glass-panel {
        margin: 10px 0;
    }
    
    .navbar-custom .navbar-nav > .active > a {
        margin: 5px 0;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .counter {
        font-size: 1.5rem;
    }
    
    .modal-dialog {
        margin: 20px;
    }
}

/* Специфические стили для скриншотов */
.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.screenshot-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-info {
    transform: translateY(0);
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

/* Усечение длинного текста */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Дополнительные утилиты */
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-inline { display: inline !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* Специальные классы для контента */
.main-content {
    min-height: calc(100vh - 140px);
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Анимация загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}


/* Стили для уведомлений */
.notification-alert {
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: slideInRight 0.3s ease-out;
}

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

.alert-success {
    background: rgba(40, 167, 69, 0.95);
    color: white;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.95);
    color: white;
    border-left: 4px solid #17a2b8;
}

.alert .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.alert .close:hover {
    opacity: 1;
}

/* Стили для кнопок в разных состояниях */
.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    border-color: #28a745 !important;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #e83e8c) !important;
    border-color: #dc3545 !important;
}

/* Анимация для кнопок */
.btn-screenshot {
    transition: all 0.3s ease !important;
    min-width: 120px;
}


/* Оптимизация CSS/JS */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}





/* Дополнительные стили для админ-панели */
.admin-notification {
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.list-group-item-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    margin-bottom: 5px;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.list-group-item-custom:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.btn-group-justified {
    display: flex;
}

.btn-group-justified .btn {
    flex: 1;
    margin: 0 2px;
}

.dark-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px 15px;
}

.dark-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}


/* Дополнительные стили для админ-панели */

/* Темные inputs */
.dark-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px 15px;
}

.dark-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Стили для списка скриншотов */
.screenshot-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
}

.screenshot-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.screenshot-checkbox {
    transform: scale(1.2);
}

/* Кнопки групп */
.btn-group-justified {
    display: flex;
}

.btn-group-justified .btn {
    flex: 1;
    margin: 0 2px;
}

/* Стили для pre (вывод команд) */
pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    color: var(--accent-gold-light);
    padding: 10px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0;
}

/* Дополнительные утилитные классы */
.pull-right {
    float: right !important;
}

.text-right {
    text-align: right !important;
}

.align-items-center {
    align-items: center !important;
}

/* Стили для модальных окон админки */
.modal-content {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
}

.modal-header {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
}

.modal-title {
    font-weight: bold;
    margin: 0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Адаптивность для админки */
@media (max-width: 768px) {
    .btn-group-justified {
        flex-direction: column;
    }
    
    .btn-group-justified .btn {
        margin: 2px 0;
    }
    
    .screenshot-item .row > div {
        margin-bottom: 5px;
    }
    
    .screenshot-item .col-1,
    .screenshot-item .col-2,
    .screenshot-item .col-3,
    .screenshot-item .col-5 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 10px;
    }
}

/* Усечение текста */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}



/* Добавить в style.css */
.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.admin-status {
    margin-top: 15px;
}

.screenshot-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.screenshot-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

.btn-view-screenshot {
    padding: 2px 8px;
    font-size: 12px;
}

/* Стили для статусов */
.status-online {
    color: #28a745;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-offline {
    color: #dc3545;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Адаптивность для админки */
@media (max-width: 768px) {
    .admin-panel .btn {
        margin-bottom: 10px;
    }
    
    .screenshot-management .col-md-6 {
        margin-bottom: 10px;
    }
}


.form-control {
    display: block;
    width: 50%;
    height: 50px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color 
ease-in-out .15s, box-shadow 
ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    -webkit-transition: border-color 
ease-in-out .15s, -webkit-box-shadow 
ease-in-out .15s;
    transition: border-color 
ease-in-out .15s, -webkit-box-shadow 
ease-in-out .15s;
    transition: border-color 
ease-in-out .15s, box-shadow 
ease-in-out .15s;
    transition: border-color 
ease-in-out .15s, box-shadow 
ease-in-out .15s, -webkit-box-shadow 
ease-in-out .15s;


/* auth.css - добавить в style.css или отдельным файлом */

/* Стили для форм авторизации */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
}

.auth-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-title p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.auth-form label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    outline: none;
}

.auth-form .form-control.is-invalid {
    border-color: var(--danger);
    background: rgba(220, 53, 69, 0.1);
}

.auth-form .form-control.is-valid {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.1);
}

.auth-form .form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.invalid-feedback, .valid-feedback {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.invalid-feedback {
    color: var(--danger);
}

.valid-feedback {
    color: var(--success);
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group-append {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.password-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak {
    background-color: var(--danger);
    width: 33%;
}

.password-strength-medium {
    background-color: var(--warning);
    width: 66%;
}

.password-strength-strong {
    background-color: var(--success);
    width: 100%;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-links a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

.auth-links .separator {
    color: var(--text-secondary);
    margin: 0 10px;
}

/* Иконки статусов в инпутах */
.status-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.status-icon.valid {
    color: var(--success);
}

.status-icon.invalid {
    color: var(--danger);
}

/* Стили для модальных окон авторизации */
.modal-auth .modal-content {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
}

.modal-auth .modal-header {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border-radius: 13px 13px 0 0;
}

.modal-auth .modal-body {
    padding: 30px;
}

/* Стили для выпадающего меню пользователя */
.user-dropdown {
    position: relative;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
    margin-top: 10px;
}

.user-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.user-menu-header {
    padding: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.user-menu-header .username {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 16px;
}

.user-menu-header .email {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

.user-menu-body {
    padding: 10px 0;
}

.user-menu-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.user-menu-item i {
    margin-right: 10px;
    width: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .user-menu {
        position: fixed;
        top: 70px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

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


/* Добавить в style.css */

/* Стили для форм авторизации/регистрации */
.auth-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.auth-form .input-group-addon {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-right: none;
    color: var(--accent-gold);
    padding: 10px 15px;
}

.auth-form .input-group .dark-input {
    border-left: none;
}

.auth-form .input-group .dark-input:focus {
    border-left: none;
    box-shadow: none;
}

/* Модальное окно восстановления пароля */
#forgotPasswordModal .modal-content {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-gold);
}

#forgotPasswordModal .modal-header {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border-bottom: 2px solid var(--accent-gold);
}

/* Адаптивность для форм */
@media (max-width: 768px) {
    .auth-form .p-5 {
        padding: 30px 20px !important;
    }
    
    .border-left-md {
        border-left: none !important;
        border-top: 2px solid var(--accent-gold) !important;
        padding-top: 30px;
        margin-top: 30px;
    }
}

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

.fade-in-up {
    animation: fadeIn 0.5s ease-out;
}


/* player-stats.css - Дополнительные стили для детальной статистики */

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Карточки статистики */
.stat-card {
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(40, 44, 52, 0.8));
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

/* Прогресс бары */
.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Аватар игрока */
.avatar-placeholder {
    position: relative;
    overflow: hidden;
}

.avatar-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Timeline элементов */
.activity-timeline {
    position: relative;
    padding-left: 20px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.activity-item {
    position: relative;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .stat-number {
        font-size: 20px;
    }
    
    .activity-timeline {
        padding-left: 15px;
    }
    
    .activity-item::before {
        left: -20px;
    }
}

/* Анимация загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
}

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

/* Инструменты */
.tooltip-custom {
    position: relative;
    cursor: help;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip-custom:hover::after {
    opacity: 1;
    visibility: visible;
}


/* Добавить в style.css */

/* Стили для ссылок на игроков */
.player-link {
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-gold);
}

.player-link:hover {
    color: var(--accent-gold-light) !important;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold);
    transform: translateY(-1px);
}

/* Стили для страницы игрока */
.player-header {
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: var(--primary-dark);
    margin: 0 auto 20px;
    border: 3px solid var(--accent-gold);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}

.stat-card h5 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.timeline-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-kill {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.timeline-death {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.timeline-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.timeline-details {
    font-size: 13px;
}

.weapon-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 0 3px;
}

.headshot-tag {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

/* Градиенты для прогресс-баров */
.progress-weapon {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-weapon-bar {
    height: 100%;
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Адаптивность для страницы игрока */
@media (max-width: 768px) {
    .player-header {
        padding: 20px;
    }
    
    .player-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .timeline-container {
        max-height: 300px;
    }
}

/* Анимация появления элементов на странице игрока */
@keyframes slideInStats {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-card {
    animation: slideInStats 0.5s ease-out;
}

/* Задержки для последовательного появления */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }
.stat-card:nth-child(6) { animation-delay: 0.6s; }


/* Исправления для светлой темы */
body.light-theme {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333 !important; /* ОБЯЗАТЕЛЬНО !important */
}

body.light-theme .glass-panel {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

body.light-theme .table-dark-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

body.light-theme .table-dark-custom thead th {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #0a0a0a !important;
}

body.light-theme .table-dark-custom tbody tr {
    background: rgba(255, 255, 255, 0.8);
    color: #333 !important;
}

body.light-theme .table-dark-custom tbody tr:hover {
    background: rgba(212, 175, 55, 0.15) !important;
}

body.light-theme .table-dark-custom tbody td {
    color: #333 !important;
    border-color: rgba(212, 175, 55, 0.2);
}

body.light-theme .list-group-item-custom {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #333 !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.light-theme .text-gold {
    color: #b8860b !important; /* Темнее золотой для светлой темы */
}

body.light-theme .text-muted {
    color: #6c757d !important;
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #333 !important;
    border: 2px solid #d4af37;
}

body.light-theme .modal-header {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #0a0a0a !important;
}

body.light-theme .modal-body,
body.light-theme .modal-footer {
    color: #333 !important;
}

body.light-theme .dark-input {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333 !important;
}

body.light-theme .dark-input:focus {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: #d4af37;
    color: #333 !important;
}

body.light-theme .navbar-custom .navbar-brand,
body.light-theme .navbar-custom .navbar-nav > li > a {
    color: #333 !important;
}

body.light-theme .navbar-custom .navbar-brand:hover,
body.light-theme .navbar-custom .navbar-nav > li > a:hover {
    color: #d4af37 !important;
}

/* Счетчики в светлой теме */
body.light-theme .counter {
    color: #d4af37 !important;
    text-shadow: none;
}

/* Статусы */
body.light-theme .status-online {
    color: #28a745 !important;
}

body.light-theme .status-offline {
    color: #dc3545 !important;
}

/* Бейджи и метки */
body.light-theme .badge-gold {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #fff !important; /* Белый текст на золотом фоне */
}

body.light-theme .label {
    color: white !important;
}

/* Прогресс-бар */
body.light-theme .progress {
    background: rgba(0, 0, 0, 0.1);
}

/* Карточки статистики */
body.light-theme .stat-card {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.light-theme .stat-card:hover {
    background: rgba(255, 255, 255, 1) !important;
}

/* Таймлайн */
body.light-theme .activity-item {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #333 !important;
}

body.light-theme .activity-item:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

/* Уведомления в навигации */
body.light-theme .notifications-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #333 !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

body.light-theme .notification-item {
    color: #333 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .notification-item:hover {
    background: rgba(212, 175, 55, 0.08) !important;
}

body.light-theme .notification-item.unread {
    background: rgba(23, 162, 184, 0.1) !important;
}

body.light-theme .notification-time {
    color: #666 !important;
}

/* Меню пользователя */
body.light-theme .user-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #333 !important;
}

body.light-theme .user-info {
    background: rgba(212, 175, 55, 0.08) !important;
    color: #333 !important;
}

body.light-theme .user-name {
    color: #b8860b !important;
}

body.light-theme .user-email {
    color: #666 !important;
}

/* Футер в светлой теме */
body.light-theme .footer-custom {
    background: rgba(248, 249, 250, 0.95) !important;
    color: #333 !important;
    border-top: 2px solid #d4af37;
}

/* Панель навигации в светлой теме */
body.light-theme .navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 2px solid #d4af37;
}

/* Кнопка переключения темы */
body.light-theme .theme-toggle-btn {
    color: #333 !important;
}

body.light-theme .theme-toggle-btn:hover {
    color: #d4af37 !important;
}

/* Формы в светлой теме */
body.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

body.light-theme .auth-form label {
    color: #333 !important;
}

body.light-theme .auth-form .form-control {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-theme .auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
}

/* Альтернативный способ для всех текстовых элементов */
body.light-theme *:not(.fa):not(.glyphicon):not(.material-icons) {
    color: #333 !important;
}

/* Исключения для иконок и элементов, которые должны оставаться цветными */
body.light-theme .fa,
body.light-theme .glyphicon,
body.light-theme .status-online,
body.light-theme .status-offline,
body.light-theme .text-gold,
body.light-theme .counter,
body.light-theme .user-name,
body.light-theme .accent-color {
    /* Эти элементы сохранят свои цвета */
}


/* Стили для полей ввода в светлой теме */
body.light-theme .form-control.dark-input,
body.light-theme .dark-input,
body.light-theme input[type="text"],
body.light-theme input[type="password"],
body.light-theme input[type="email"],
body.light-theme input[type="number"],
body.light-theme input[type="tel"],
body.light-theme input[type="url"],
body.light-theme textarea,
body.light-theme select {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

body.light-theme .form-control.dark-input:focus,
body.light-theme .dark-input:focus,
body.light-theme input[type="text"]:focus,
body.light-theme input[type="password"]:focus,
body.light-theme input[type="email"]:focus,
body.light-theme input[type="number"]:focus,
body.light-theme input[type="tel"]:focus,
body.light-theme input[type="url"]:focus,
body.light-theme textarea:focus,
body.light-theme select:focus {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: #d4af37 !important;
    color: #333 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
    outline: none;
}

/* Плейсхолдеры */
body.light-theme .form-control.dark-input::placeholder,
body.light-theme .dark-input::placeholder,
body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
    color: #6c757d !important;
    opacity: 0.8;
}

/* Выпадающие списки */
body.light-theme .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #333 !important;
}

body.light-theme .dropdown-menu > li > a {
    color: #333 !important;
}

body.light-theme .dropdown-menu > li > a:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #333 !important;
}

/* Группы ввода */
body.light-theme .input-group .dark-input {
    border-left: 1px solid rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .input-group-addon {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
}

/* Чекбоксы и радио кнопки */
body.light-theme input[type="checkbox"],
body.light-theme input[type="radio"] {
    accent-color: #d4af37;
}

/* Формы авторизации */
body.light-theme .auth-form .form-control {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
}

body.light-theme .auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: #d4af37 !important;
    color: #333 !important;
}

/* Модальные окна с формами */
body.light-theme .modal-content .form-control,
body.light-theme .modal-content .dark-input {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
}

body.light-theme .modal-content .form-control:focus,
body.light-theme .modal-content .dark-input:focus {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: #d4af37 !important;
    color: #333 !important;
}

/* Админ-панель формы */
body.light-theme .admin-panel .form-control,
body.light-theme .admin-panel .dark-input {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
}



/* ЯДЕРНОЕ решение для всех форм в светлой теме */
body.light-theme input.form-control,
body.light-theme textarea.form-control,
body.light-theme select.form-control,
body.light-theme .form-control.dark-input,
body.light-theme .dark-input,
body.light-theme input[type].form-control,
body.light-theme textarea.form-control,
body.light-theme select.form-control {
    background: rgba(0, 0, 0, 0.05) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
}

/* Фокус */
body.light-theme input.form-control:focus,
body.light-theme textarea.form-control:focus,
body.light-theme select.form-control:focus,
body.light-theme .form-control.dark-input:focus,
body.light-theme .dark-input:focus {
    background: rgba(0, 0, 0, 0.08) !important;
    background-color: rgba(0, 0, 0, 0.08) !important;
    border-color: #d4af37 !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

/* Автозаполнение в Chrome */
body.light-theme input:-webkit-autofill,
body.light-theme input:-webkit-autofill:hover,
body.light-theme input:-webkit-autofill:focus,
body.light-theme textarea:-webkit-autofill,
body.light-theme textarea:-webkit-autofill:hover,
body.light-theme textarea:-webkit-autofill:focus,
body.light-theme select:-webkit-autofill,
body.light-theme select:-webkit-autofill:hover,
body.light-theme select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.05) inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Переопределение Bootstrap по умолчанию */
body.light-theme .form-control {
    background-image: none !important;
}



/* Стили для контейнеров графиков */
.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
}

/* Заголовки графиков */
.chart-title {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-title i {
    margin-right: 10px;
    font-size: 18px;
}

/* Индикатор загрузки графиков */
.chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.chart-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Сообщения об ошибках и отсутствии данных */
.no-data-message, .chart-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    z-index: 20;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.no-data-message i, .chart-error i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.no-data-message p, .chart-error p {
    font-size: 14px;
    max-width: 80%;
    line-height: 1.5;
}

.chart-error button {
    margin-top: 20px;
    padding: 8px 20px;
    font-size: 14px;
}

/* Легенда графиков */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Адаптивность для графиков */
@media (max-width: 768px) {
    .chart-container {
        height: 280px;
        padding: 15px;
    }
    
    .chart-title {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .chart-legend {
        gap: 10px;
        padding: 10px;
    }
    
    .legend-item {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .chart-container {
        height: 250px;
        padding: 12px;
    }
    
    .chart-title {
        font-size: 13px;
    }
}

/* Анимации для графиков */
@keyframes chartFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chart-container {
    animation: chartFadeIn 0.8s ease-out;
}

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

/* Стили для светлой темы */
body.light-theme .chart-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-theme .chart-title {
    color: #333;
    border-bottom-color: rgba(212, 175, 55, 0.3);
}

body.light-theme .no-data-message,
body.light-theme .chart-error {
    background: rgba(255, 255, 255, 0.95);
}

body.light-theme .no-data-message i,
body.light-theme .chart-error i {
    color: #333;
}

body.light-theme .no-data-message p,
body.light-theme .chart-error p {
    color: #666;
}

body.light-theme .chart-legend {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(212, 175, 55, 0.2);
}

body.light-theme .legend-item {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}



/* Дополнительные стили для статистики */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin-left: auto;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.player-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-left: 5px solid var(--accent-gold);
}

/* Стили для таймлайна */
.timeline-container {
    max-height: 300px;
    overflow-y: auto;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.timeline-kill {
    border-left-color: #28a745;
}

.timeline-death {
    border-left-color: #dc3545;
}

.timeline-time {
    font-size: 11px;
    opacity: 0.7;
}

.timeline-details {
    font-size: 14px;
}

.weapon-tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 0 3px;
}

.headshot-tag {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Стили для прогресс-баров оружия */
.progress-weapon {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-weapon-bar {
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    border-radius: 5px;
}



/* ===== ИКОНКИ ОРУЖИЯ ===== */
.weapon-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
    transition: all 0.3s ease;
}

.weapon-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)) 
            brightness(1.2);
}

/* Иконки в таймлайне */
.timeline-item .weapon-icon {
    width: 20px;
    height: 20px;
    margin: 0 6px;
}

/* Иконки оружия противника (красный оттенок) */
.weapon-icon.enemy {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7)) 
            sepia(1) hue-rotate(320deg) saturate(3);
}

/* Иконки в таблицах */
.table-dark-custom td .weapon-icon {
    width: 28px;
    height: 28px;
}

/* Название оружия рядом с иконкой */
.weapon-name {
    vertical-align: middle;
}

/* Бэдж с иконкой оружия */
.weapon-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 4px;
}

.weapon-tag .weapon-icon {
    margin-right: 4px;
}

/* Хедшот бэдж */
.headshot-tag {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 4px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .weapon-icon {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
    
    .timeline-item .weapon-icon {
        width: 18px;
        height: 18px;
        margin: 0 4px;
    }
    
    .table-dark-custom td .weapon-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    .weapon-icon {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }
    
    .weapon-name {
        font-size: 0.9rem;
    }
}