/* ==========================================================================
   MODULE: WARNINGS SYSTEM (FIRESTORM21 - PREMIUM GAMING UI v3 - ULTIMATE)
   ========================================================================== */

:root {
    --bg-dark-primary: #1B1D23;      /* Основной темный фон */
    --bg-dark-secondary: #23262F;    /* Промежуточный темный */
    --bg-dark-tertiary: #14161B;     /* Глубокий темный */
    --accent-emerald: #38D97A;       /* Изумрудный бренд */
    --accent-emerald-glow: rgba(56, 217, 122, 0.25);
    --text-primary: #FFFFFF;
    --text-secondary: #9EA8B6;
    --text-danger: #EF4444;
    --text-warning: #F59E0B;
    --border-dark: rgba(255, 255, 255, 0.08);
}

.user-warn-container {
    margin-bottom: 20px;
}

/* Карточки в профиле */
.card.bg-dark-card {
    background-color: var(--bg-dark-primary) !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-dark) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.25s ease;
}

/* --- СТАТУС ПРОВЕРКИ НА ЧИТЫ --- */
.soft-check-card {
    display: flex;
    align-items: flex-start;
    padding: 24px;
    border-radius: 12px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    background: rgba(var(--bg-dark-secondary), 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.soft-check-card.soft-check-success {
    border-left: 4px solid var(--accent-emerald) !important;
    box-shadow: 0 0 20px rgba(56, 217, 122, 0.15) !important;
}
.soft-check-card.soft-check-danger {
    border-left: 4px solid var(--text-danger) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15) !important;
}
.soft-check-card.soft-check-neutral {
    border-left: 4px solid var(--text-warning) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15) !important;
}

.soft-check-icon {
    font-size: 48px;
    margin-right: 20px;
    color: var(--accent-emerald);
    text-shadow: 0 0 10px rgba(56, 217, 122, 0.4);
}
.soft-check-card.soft-check-danger .soft-check-icon {
    color: var(--text-danger);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.soft-check-card.soft-check-neutral .soft-check-icon {
    color: var(--text-warning);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.soft-check-content h4 {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.soft-check-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.soft-check-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: 15px;
}
.detail-item {
    display: flex;
    align-items: center;
}
.detail-item i {
    margin-right: 8px;
    color: var(--accent-emerald);
}
.soft-check-card.soft-check-danger .detail-item i { color: var(--text-danger); }
.soft-check-card.soft-check-neutral .detail-item i { color: var(--text-warning); }

.badge.badge-success-outline {
    background-color: rgba(56, 217, 122, 0.1);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}
.badge.badge-danger-outline {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--text-danger);
    border: 1px solid var(--text-danger);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}
.badge.badge-info-outline {
    background-color: rgba(96, 165, 250, 0.1);
    color: #60A5FA;
    border: 1px solid #60A5FA;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}

/* Панель кнопок (Читов нет / Читы есть) */
.soft-control-panel {
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
    margin-top: 20px;
}
.btn-soft-check {
    height: 48px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-soft-success {
    background: var(--accent-emerald) !important;
    color: var(--bg-dark-tertiary) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(56, 217, 122, 0.2);
}
.btn-soft-success:hover {
    background: var(--accent-emerald-light) !important;
    box-shadow: 0 6px 20px rgba(56, 217, 122, 0.35);
    transform: translateY(-2px);
}

.btn-soft-danger-outline {
    background: transparent !important;
    color: var(--text-danger) !important;
    border: 1.5px solid var(--text-danger) !important;
}
.btn-soft-danger-outline:hover {
    background: var(--text-danger) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

/* --- ЭКРАН "АКТИВНЫЕ ПРЕДУПРЕЖДЕНИЯ" (В ПРОФИЛЕ) --- */
.user-warn-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-dark-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--text-danger) !important;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}
.user-warn-item:hover {
    background: #2B2F3A !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35) !important;
}
.user-warn-item:last-child {
    margin-bottom: 0;
}

/* Иконка-бейдж варна внутри карточки */
.user-warn-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}
.user-warn-badge i {
    color: var(--text-danger);
    font-size: 1.2rem;
}

.user-warn-content {
    flex-grow: 1;
}
.text-light-warn {
    color: var(--text-primary) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}
.user-warn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}
.meta-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}
.meta-item i {
    margin-right: 6px;
    color: var(--accent-emerald);
}

/* Круглая кнопка удаления */
.btn-solution-delete-inline {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    color: var(--text-danger) !important;
    width: 38px;
    height: 38px;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 15px;
}
.btn-solution-delete-inline:hover {
    background: var(--text-danger) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

/* Кнопки управления (Выдать / Все) */
.btn-solution-outline-danger {
    background: transparent !important;
    border: 1.5px solid var(--text-danger) !important;
    color: var(--text-danger) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    height: 38px;
}
.btn-solution-outline-danger:hover {
    background: var(--text-danger) !important;
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

.btn-solution-primary {
    background: var(--accent-emerald) !important;
    border: none !important;
    color: var(--bg-dark-tertiary) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    height: 38px;
}
.btn-solution-primary:hover {
    background: var(--accent-emerald-light) !important;
    box-shadow: var(--shadow-emerald-glow);
    transform: translateY(-1px);
}

/* --- ЭКРАН "ВЫДАЧА ПРЕДУПРЕЖДЕНИЯ" (МОДАЛКА) --- */
.alert.alert-danger-warning-block {
    background-color: #1A1215 !important;
    color: #F87171 !important;
    border: 1px dashed rgba(239, 68, 68, 0.25) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.alert-icon-container {
    font-size: 1.3rem;
    margin-right: 15px;
    color: var(--text-danger);
    display: flex;
    align-items: center;
}
.alert-text-container {
    line-height: 1.5;
}

/* Поле ввода */
.solution-input {
    background-color: var(--bg-dark-tertiary) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 0.95rem;
    height: 100px !important; /* Фиксированная красивая высота */
    resize: none;
    transition: all 0.2s ease !important;
}
.solution-input:focus {
    border-color: var(--accent-emerald) !important;
    box-shadow: 0 0 15px rgba(56, 217, 122, 0.15) !important;
    background-color: var(--bg-dark-tertiary) !important;
}

/* Корректировка футера ввода */
.input-meta-footer {
    font-size: 0.85rem;
    margin-top: 8px;
}
.input-meta-footer #give_warn_reason_char_count {
    color: var(--text-secondary);
}

/* Кнопки в футере модалки выдачи */
.btn-solution-success {
    background: var(--accent-emerald) !important;
    color: var(--bg-dark-tertiary) !important;
    font-weight: 700;
    font-size: 0.95rem;
    height: var(--button-height) !important; /* 46px */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(56, 217, 122, 0.25);
    transition: all 0.2s ease;
}
.btn-solution-success:hover {
    background: var(--accent-emerald-light) !important;
    box-shadow: 0 6px 20px rgba(56, 217, 122, 0.4);
    transform: translateY(-1px);
}

.btn-secondary-solution {
    background: transparent !important;
    border: 1.5px solid var(--accent-emerald) !important;
    color: var(--accent-emerald) !important;
    font-weight: 700;
    font-size: 0.95rem;
    height: var(--button-height) !important; /* 46px */
    border-radius: 8px;
    transition: all 0.2s ease;
}
.btn-secondary-solution:hover {
    background: var(--accent-emerald) !important;
    color: var(--bg-dark-tertiary) !important;
    transform: translateY(-1px);
}

/* --- ЭКРАН "ПРОСМОТР ПРЕДУПРЕЖДЕНИЙ" (МОДАЛКА ИСТОРИИ) --- */
.style-solution-modal {
    background-color: var(--bg-dark-secondary) !important;
    border: 1px solid rgba(56, 217, 122, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.style-solution-modal .modal-header {
    background: var(--bg-dark-primary) !important;
    border-bottom: 2px solid var(--accent-emerald) !important;
    padding: 1.25rem 1.75rem !important;
}

.style-solution-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}
.close-modal-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.style-solution-modal .modal-body {
    background-color: var(--bg-dark-secondary) !important;
    color: var(--text-primary);
    padding: 24px !important;
}

/* Карточки истории в модальном окне */
.history-warn-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-left: 4px solid var(--text-danger);
    background-color: var(--bg-dark-primary);
    border-radius: 10px;
    margin: 10px 0;
    transition: all 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.history-warn-card:hover {
    background-color: rgba(35, 38, 47, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.history-warn-reason {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.history-warn-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.history-warn-details .detail-item i {
    margin-right: 6px;
    color: var(--accent-emerald);
}
.history-warn-details .admin-link {
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}
.history-warn-details .admin-link:hover {
    text-decoration: underline;
}

/* Кнопка удаления в истории */
.history-warn-actions .btn-danger-glow {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: var(--text-danger) !important;
    height: 38px;
    padding: 0 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.history-warn-actions .btn-danger-glow:hover {
    background: var(--text-danger) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Статусные бейджи */
.badge.badge-primary-glow {
    background-color: rgba(56, 217, 122, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(56, 217, 122, 0.25);
    font-weight: 700;
}
.badge.badge-warning-outline {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--text-warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-weight: 700;
}
.badge.bg-danger-glow {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: var(--text-danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.username-accent {
    color: var(--accent-emerald);
    text-shadow: 0 0 8px rgba(56, 217, 122, 0.2);
}

.style-solution-modal .modal-footer {
    background-color: var(--bg-dark-primary) !important;
    border-top: 1px solid var(--border-dark) !important;
    padding: 1.25rem 1.75rem !important;
}

/* Спиннер */
.spinner-border.text-success {
    color: var(--accent-emerald) !important;
}

/* Анимация пульсации */
.animate-pulse {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .soft-check-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    .soft-check-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .soft-check-details {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .soft-check-content h4 {
        justify-content: center;
    }
    .soft-control-panel .row > div {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .soft-control-panel .row > div:last-child {
        margin-bottom: 0;
    }
    
    .history-warn-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
        gap: 12px;
    }
    .history-warn-actions {
        width: 100%;
        text-align: right;
    }
    .history-warn-actions .btn-sm {
        width: 100%;
    }
}
/* Улучшенный дизайн для FIRESTORM21 */
.user-warn-item {
    background: #1B1D23 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    border-left: 4px solid #EF4444 !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.bg-dark-modal { background: #1B1D23 !important; border: 1px solid #2B2F39; border-radius: 16px; }
.bg-dark-input { background: #23262F !important; border-radius: 8px !important; padding: 15px !important; }
.alert-warning-custom { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #EF4444; border-radius: 8px; font-size: 0.85rem; }

/* Кнопки */
.btn-outline-danger { border: 1px solid #EF4444; color: #EF4444; }
.btn-outline-danger:hover { background: #EF4444; color: #fff; }
.btn-outline-success { border: 1px solid #38D97A; color: #38D97A; }
.btn-outline-success:hover { background: #38D97A; color: #000; }

/* Карточка в истории */
.history-warn-card {
    background: #23262F !important;
    padding: 15px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
