/*
   DayZ Analytics - Призрачный Монолит
   Цветовая палитра:
   - Основной фон: #DCE4E8 (светлый серо-голубой туман)
   - Вторичный фон: #B8C8D4 (холодный голубовато-серый)
   - Акцент (Монолит): #5BA3D9 (насыщенный небесно-голубой)
   - Тёмный акцент: #3A6B8C (глубокий синевато-серый)
   - Текст: #2C3E4A (тёмный холодный серый)
   - Деталь: #A89B7A (тёплый песочно-оливковый)
*/

/* ========================================
   ГЛОБАЛЬНЫЕ СТИЛИ И ФОН
   ======================================== */

/* Основной фон с возможностью добавления картинки */
body {
    background: linear-gradient(135deg, #EDF2F5 0%, #DCE4E8 100%);
    color: #2C3E4A;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* Для фоновой картинки - раскомментируйте и укажите путь к картинке */
*
body {
    background-image: url('/static/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
*/

/* Затемняющий слой поверх фона (для читаемости текста) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 74, 0.3);
    pointer-events: none;
    z-index: 0;
}

/* Радиальный градиент (эффект тумана) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 40%, rgba(91, 163, 217, 0.08) 0%, transparent 60%);
    z-index: 0;
}

/* Контейнер с эффектом глубины */
.container {
    position: relative;
    z-index: 1;
}

/* ========================================
   ЭФФЕКТ СТЕКЛА (GLASSMORPHISM)
   ======================================== */

/* Основные карточки */
.card {
    background: rgba(184, 200, 212, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    background: rgba(184, 200, 212, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Свечение акцента при наведении на карточку */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #5BA3D9, #3A6B8C, #5BA3D9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}

.card-header {
    background: rgba(58, 107, 140, 0.15);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(91, 163, 217, 0.3);
    font-weight: 600;
    color: #3A6B8C;
    padding: 15px 20px;
    border-radius: 24px 24px 0 0 !important;
}

.card-body {
    padding: 20px;
}

/* ========================================
   НАВИГАЦИЯ
   ======================================== */
.navbar {
    background: rgba(58, 107, 140, 0.3) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #EDF2F5 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: #EDF2F5 !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #5BA3D9 !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #5BA3D9 !important;
    border-bottom: 2px solid #5BA3D9;
}

/* Выпадающие меню */
.dropdown-menu {
    background: rgba(184, 200, 212, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

.dropdown-item {
    color: #2C3E4A;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(91, 163, 217, 0.3);
    backdrop-filter: blur(10px);
    color: #2C3E4A;
}

/* ========================================
   КНОПКИ
   ======================================== */
.btn {
    border-radius: 12px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #5BA3D9;
    color: white;
    box-shadow: 0 2px 8px rgba(91, 163, 217, 0.3);
}

.btn-primary:hover {
    background: #3A6B8C;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(58, 107, 140, 0.35);
}

.btn-outline-primary {
    border: 1px solid #5BA3D9;
    color: #3A6B8C;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #5BA3D9;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: #5BA3D9;
    color: white;
}

.btn-success:hover {
    background: #3A6B8C;
    transform: translateY(-2px);
}

.btn-danger {
    background: #A89B7A;
    color: #2C3E4A;
}

.btn-danger:hover {
    background: #8B7A5A;
    transform: translateY(-2px);
}

/* Стеклянные кнопки */
.btn-glass {
    background: rgba(91, 163, 217, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #2C3E4A;
    transition: all 0.3s;
}

.btn-glass:hover {
    background: rgba(91, 163, 217, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Кнопка Steam */
.btn-steam {
    background: linear-gradient(135deg, #171a21, #2a3f5e);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a3f5e, #3a5a80);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ТАБЛИЦЫ
   ======================================== */
.table {
    background: rgba(184, 200, 212, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    overflow: hidden;
}

.table thead th {
    background: rgba(58, 107, 140, 0.2);
    color: #3A6B8C;
    font-weight: 600;
    border-bottom: 2px solid #5BA3D9;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(91, 163, 217, 0.2);
}

.table tbody tr:hover {
    background: rgba(91, 163, 217, 0.1);
    cursor: pointer;
}

/* ========================================
   БЕЙДЖИ И ИНДИКАТОРЫ
   ======================================== */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-primary {
    background: #5BA3D9 !important;
    color: white;
}

.badge.bg-success {
    background: #A89B7A !important;
    color: #2C3E4A;
}

.badge.bg-warning {
    background: #A89B7A !important;
    color: #2C3E4A;
}

.badge.bg-danger {
    background: #A89B7A !important;
    color: #2C3E4A;
}

.badge.bg-info {
    background: #5BA3D9 !important;
    color: white;
}

.badge.bg-secondary {
    background: rgba(44, 62, 74, 0.5) !important;
    color: #EDF2F5;
}

/* ========================================
   АЛЕРТЫ И СООБЩЕНИЯ
   ======================================== */
.alert {
    background: rgba(184, 200, 212, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

.alert-success {
    background: rgba(91, 163, 217, 0.2);
    border-left: 4px solid #5BA3D9;
}

.alert-danger {
    background: rgba(168, 155, 122, 0.2);
    border-left: 4px solid #A89B7A;
}

.alert-info {
    background: rgba(91, 163, 217, 0.15);
    border-left: 4px solid #5BA3D9;
}

.alert-warning {
    background: rgba(168, 155, 122, 0.2);
    border-left: 4px solid #A89B7A;
}

/* ========================================
   ФУТЕР
   ======================================== */
footer {
    background: rgba(44, 62, 74, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    padding: 30px 0;
}

footer a {
    color: #5BA3D9;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #EDF2F5;
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА
   ======================================== */
.modal-content {
    background: rgba(184, 200, 212, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
}

.modal-header {
    border-bottom-color: rgba(91, 163, 217, 0.3);
    color: #3A6B8C;
}

.modal-footer {
    border-top-color: rgba(91, 163, 217, 0.3);
}

/* ========================================
   ПЛАШКИ СОЦИАЛЬНЫХ СЕТЕЙ
   ======================================== */
.social-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #5BA3D9;
    transform: translateY(-2px);
}

.social-card.disabled {
    opacity: 0.7;
}

.social-card-header {
    padding: 12px 15px;
    background: rgba(58, 107, 140, 0.1);
    border-bottom: 1px solid rgba(91, 163, 217, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    font-size: 28px;
}

.social-info {
    flex: 1;
}

.social-info h6 {
    margin: 0;
    font-weight: 600;
}

.social-card-body {
    padding: 12px 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.social-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
    background: rgba(108, 117, 125, 0.2);
}

.social-link:not(.disabled):hover {
    transform: translateX(3px);
}

/* Steam стили */
.steam-icon { color: #171a21; }
.steam-link { background: #171a21; color: white; }
.steam-link:hover { background: #2a3f5e; color: white; }

/* Discord стили */
.discord-icon { color: #5865F2; }
.discord-username {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    margin-right: 8px;
}
.discord-copy { background: #5865F2; color: white; border: none; }
.discord-copy:hover { background: #4752c4; color: white; }

/* VK стили */
.vk-icon { color: #4c75a3; }
.vk-link { background: #4c75a3; color: white; }
.vk-link:hover { background: #3a5a80; color: white; }

/* Telegram стили */
.telegram-icon { color: #26A5E4; }
.telegram-username {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    margin-right: 8px;
}
.telegram-copy { background: #26A5E4; color: white; border: none; }
.telegram-copy:hover { background: #1f8bc1; color: white; }

/* ========================================
   ЛОГИ И ПРЕВЬЮ
   ======================================== */
.log-preview {
    background: rgba(44, 62, 74, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
}

.log-line {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(91, 163, 217, 0.2);
    font-family: monospace;
    font-size: 11px;
    color: #EDF2F5;
}

.log-line.text-warning {
    color: #A89B7A;
}

.log-line.text-success {
    color: #5BA3D9;
}

.log-line.text-info {
    color: #5BA3D9;
}

.log-line:hover {
    background: rgba(91, 163, 217, 0.2);
}

/* ========================================
   АНИМАЦИЯ СВЕЧЕНИЯ (эффект Монолита)
   ======================================== */
@keyframes monolithGlow {
    0% { opacity: 0.9; text-shadow: 0 0 0px rgba(91, 163, 217, 0); }
    50% { opacity: 1; text-shadow: 0 0 8px rgba(91, 163, 217, 0.5); }
    100% { opacity: 0.9; text-shadow: 0 0 0px rgba(91, 163, 217, 0); }
}

.monolith-glow {
    animation: monolithGlow 3s ease-in-out infinite;
}

.btn-primary {
    animation: monolithGlow 3s ease-in-out infinite;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 768px) {
    .card {
        border-radius: 16px;
    }

    .card-header {
        padding: 12px 15px;
    }

    .btn {
        padding: 6px 16px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    body {
        background-attachment: scroll;
    }
}

/* ========================================
   СКРОЛЛБАР
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(184, 200, 212, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #5BA3D9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3A6B8C;
}

/* ========================================
   ПАНЕЛЬ УПРАВЛЕНИЯ / СТАТИСТИКА
   ======================================== */
.stat-card {
    background: rgba(91, 163, 217, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(91, 163, 217, 0.25);
}

/* ========================================
   АККОРДЕОН
   ======================================== */
.accordion-item {
    background: rgba(184, 200, 212, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-button {
    background: rgba(58, 107, 140, 0.2);
    color: #3A6B8C;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: rgba(91, 163, 217, 0.2);
    color: #2C3E4A;
}

.accordion-body {
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   FALLBACK ДЛЯ СТАРЫХ БРАУЗЕРОВ
   ======================================== */
@supports not (backdrop-filter: blur(20px)) {
    .card, .navbar, .modal-content, .dropdown-menu {
        background: rgba(184, 200, 212, 0.9);
    }

    .alert {
        background: rgba(184, 200, 212, 0.95);
    }
}
/* ========================================
   ИСПРАВЛЕНИЕ ВЫПАДАЮЩИХ МЕНЮ
   ======================================== */

/* Поднимаем navbar выше всех элементов */
.navbar {
    position: relative;
    z-index: 1030 !important;
}

/* Поднимаем выпадающее меню */
.dropdown-menu {
    position: absolute;
    z-index: 1050 !important;
    margin-top: 8px;
}

/* Убеждаемся, что контент не перекрывает меню */
.container {
    position: relative;
    z-index: 1;
}

/* Карточки не должны перекрывать меню */
.card {
    position: relative;
    z-index: 1;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .dropdown-menu {
        position: absolute;
        z-index: 1050 !important;
    }
}

/* Фикс для navbar-toggler на мобильных */
.navbar-collapse {
    position: relative;
    z-index: 1030;
}
/* ========================================
   РАЗНОЦВЕТНЫЕ БЛОКИ С ЭФФЕКТОМ СТЕКЛА
   ======================================== */

/* Базовый стиль для всех карточек */
.card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Карточка информации о пользователе (синеватая) */
.card-info {
    background: rgba(58, 107, 140, 0.25);
}

/* Карточка социальных сетей (голубоватая) */
.card-social {
    background: rgba(91, 163, 217, 0.2);
}

/* Карточка информации об аккаунте (оливковая) */
.card-account {
    background: rgba(168, 155, 122, 0.2);
}

/* Карточка статистики (светло-голубая) */
.card-stats {
    background: rgba(91, 163, 217, 0.25);
}

/* Карточка по умолчанию (нейтральная) */
.card-default {
    background: rgba(184, 200, 212, 0.25);
}

/* Заголовки карточек */
.card-header {
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 24px 24px 0 0 !important;
}

/* Разные цвета заголовков */
.card-info .card-header {
    background: rgba(58, 107, 140, 0.3);
    color: #EDF2F5;
}

.card-social .card-header {
    background: rgba(91, 163, 217, 0.3);
    color: #2C3E4A;
}

.card-account .card-header {
    background: rgba(168, 155, 122, 0.3);
    color: #2C3E4A;
}

.card-stats .card-header {
    background: rgba(91, 163, 217, 0.3);
    color: #EDF2F5;
}

/* Тело карточек */
.card-body {
    padding: 20px;
    color: #2C3E4A;
}

/* Специфичные цвета для разных блоков */
.card-info .stat-value {
    color: #5BA3D9;
    font-weight: bold;
}

.card-social .social-link {
    background: rgba(255, 255, 255, 0.2);
}

.card-account table {
    background: transparent;
}

.card-account th {
    color: #3A6B8C;
}

.card-stats .stat-number {
    color: #5BA3D9;
    font-size: 28px;
    font-weight: bold;
}
/* ========================================
   СТИЛИ ДЛЯ НОВОСТЕЙ
   ======================================== */

/* Карточка новости */
.news-card {
    background: rgba(184, 200, 212, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(91, 163, 217, 0.5);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #5BA3D9;
    box-shadow: 0 12px 40px rgba(91, 163, 217, 0.25);
}

/* Заголовок новости */
.news-header {
    background: linear-gradient(135deg, rgba(58, 107, 140, 0.4), rgba(58, 107, 140, 0.2));
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #5BA3D9;
    padding: 18px 25px;
    border-radius: 28px 28px 0 0;
}

.news-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #EDF2F5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-meta {
    font-size: 0.85rem;
    color: rgba(237, 242, 245, 0.8);
    margin-top: 8px;
}

.news-meta i {
    margin-right: 5px;
}

/* Тело новости */
.news-body {
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    color: #2C3E4A;
    line-height: 1.7;
    font-size: 1rem;
}

/* Содержимое новости */
.news-content {
    background: rgba(44, 62, 74, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.news-content p {
    margin-bottom: 15px;
}

.news-content h3 {
    color: #5BA3D9;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.news-content ul, .news-content ol {
    margin: 10px 0 15px 25px;
}

.news-content li {
    margin: 5px 0;
}

/* Разделитель между новостью и комментариями */
.news-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #5BA3D9, #A89B7A, #5BA3D9, transparent);
    margin: 20px 0;
}

/* Секция комментариев */
.comments-section {
    margin-top: 20px;
    padding-top: 10px;
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5BA3D9;
    margin-bottom: 15px;
}

/* Комментарий */
.comment-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-left: 3px solid #5BA3D9;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.comment-author {
    font-weight: 600;
    color: #5BA3D9;
}

.comment-date {
    font-size: 0.75rem;
    color: rgba(44, 62, 74, 0.6);
}

.comment-content {
    margin-top: 8px;
    padding-left: 20px;
    color: #2C3E4A;
}

/* Форма комментария */
.comment-form {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.comment-form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(91, 163, 217, 0.3);
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    color: #2C3E4A;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #5BA3D9;
    box-shadow: 0 0 0 3px rgba(91, 163, 217, 0.2);
}

/* Кнопки управления новостями (админ) */
.news-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.news-actions .btn {
    padding: 4px 12px;
    font-size: 0.8rem;
}
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(91, 163, 217, 0.2);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #5BA3D9;
    margin: 10px 0 5px;
}