/* ===============================
   Админ-панель — оформление
   =============================== */

.admin-users {
    background-color: #141922;
}

/* Контейнер */
.admin-container {
    padding: 20px 30px;
    color: #e6e6e6;

    /* Горизонтальный скролл при необходимости */
    overflow-x: auto;
}

/* Заголовок */
.admin-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #00e896;
}

/* ===============================
   ТАБЛИЦА ПОЛЬЗОВАТЕЛЕЙ
   =============================== */

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    background: #10141a;
    border: 1px solid #222;
    border-radius: 8px;

    /* Резиновая таблица */
    table-layout: auto;

    overflow: hidden;
}

/* Ячейки */
.admin-users-table th,
.admin-users-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1f232b;
    text-align: left;
}

/* Заголовки */
.admin-users-table th {
    background: #0d1016;
    color: #00e896;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #222;
}

/* Ховер */
.admin-users-table tr:hover {
    background: #161b24;
}

/* ===============================
   КНОПКИ
   =============================== */

.admin-btn {
    padding: 6px 10px;
    margin: 2px;
    background: #1a1f27;
    border: 1px solid #222;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #e6e6e6;
    transition: 0.15s;
    white-space: nowrap;
}

.admin-btn:hover {
    background: #00e89633;
    border-color: #00e896;
    color: #00e896;
}

/* Критичные кнопки */
.delete-user,
.admin-btn.delete {
    background: #271a1a;
    border-color: #442222;
}

.delete-user:hover,
.admin-btn.delete:hover {
    background: #ff003333;
    border-color: #ff0000;
    color: #ff4d4d;
}

/* ===============================
   ОГРАНИЧЕНИЯ И РАСШИРЕНИЕ КОЛОНОК
   =============================== */

/* Разрешаем перенос везде */
.admin-users-table td {
    white-space: normal;
}

/* ⛔ Последняя колонка: без переносов + широкая */
.admin-users-table td:last-child,
.admin-users-table th:last-child {
    white-space: nowrap !important;
    width: 420px !important;
}

/* ===============================
   Поиск
   =============================== */

.admin-search-box {
    margin-bottom: 15px;
}

#admin-search-input {
    width: 260px;
    padding: 8px 10px;
    background: #0d1016;
    border: 1px solid #1f232b;
    border-radius: 5px;
    color: #e6e6e6;
}

/* ===============================
   Фильтры
   =============================== */

.admin-filters {
    margin-bottom: 15px;
}

.filter-btn {
    background: #10141a;
    border: 1px solid #1f232b;
    padding: 6px 12px;
    border-radius: 5px;
    color: #e6e6e6;
    cursor: pointer;
    margin-right: 6px;
    font-size: 13px;
}

.filter-btn.active {
    background: #00e896;
    color: #000;
    border-color: #00e896;
}

/* ===============================
   Страница профиля пользователя
   =============================== */

.user-profile-card {
    background: #10141a;
    padding: 20px;
    border: 1px solid #1f232b;
    border-radius: 8px;
    margin-bottom: 25px;
}

.user-row {
    display: flex;
    margin-bottom: 12px;
}

.user-row .label {
    width: 180px;
    color: #00e896;
    font-weight: 600;
}

.user-row .value {
    color: #e6e6e6;
}

.back-btn {
    color: #00e896;
    text-decoration: none;
    font-size: 14px;
}

.back-btn:hover {
    text-decoration: underline;
}

.admin-subtitle {
    margin-top: 25px;
    font-size: 18px;
    color: #00e896;
    margin-bottom: 10px;
}

/* Сетка действий */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

/* История Premium */
.premium-log-table {
    width: 100%;
    border-collapse: collapse;
    background: #10141a;
    border: 1px solid #1f232b;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 25px;
}

.premium-log-table th,
.premium-log-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1f232b;
    text-align: left;
    color: #e6e6e6;
}

.premium-log-table th {
    background: #0d1016;
    color: #00e896;
}

.premium-log-table tbody tr:hover {
    background: #151a22;
}
/* ===============================
   Статистика в админке
   =============================== */

.admin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;

    background: #10141a;
    border: 1px solid #1f232b;
    padding: 14px 18px;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: #8f9bad;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    margin-top: 2px;
}

/* Цвета */
.stat-value.green {
    color: #00e896;
}

.stat-value.red {
    color: #ff4d4d;
}

.stat-value.blue {
    color: #4da6ff;
}
/* ===============================
   Уведомления (admin/notifications)
   =============================== */

.notify-form-block,
.notify-list-block {
    margin-bottom: 25px;
}

.sub-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #00e896;
}

.notify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #10141a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #1f232b;
}

.notify-form input,
.notify-form textarea {
    width: 100%;
    background: #141922;
    border: 1px solid #1f232b;
    padding: 10px;
    border-radius: 6px;
    color: #e6e6e6;
    font-size: 15px;
}

.notify-form textarea {
    min-height: 100px;
    resize: vertical;
}

.notify-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notify-item {
    background: #0f141b;
    border: 1px solid #1f232b;
    padding: 12px 15px;
    border-radius: 8px;
}

.notify-title {
    font-size: 16px;
    font-weight: 600;
    color: #00e896;
    margin-bottom: 5px;
}

.notify-text {
    font-size: 14px;
    color: #d3d3d3;
    margin-bottom: 6px;
}

.notify-date {
    font-size: 12px;
    color: #8f9bad;
}

.empty {
    color: #7f8591;
    font-size: 14px;
    padding: 10px 0;
}
.top-actions {
    margin-bottom: 15px;
}
/* Зеленая кнопка в админке */
.admin-btn.green-btn {
    background-color: #00e896;
    color: #000;
    font-weight: 600;
    border: 1px solid #00e896;
}

.admin-btn.green-btn:hover {
    background-color: #00c778;
    border-color: #00c778;
}
/* ===============================
   Метки уведомлений
   =============================== */

.type-label {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    color: #fff;
}

.type-global {
    background-color: #00c66e; /* зелёный */
}

.type-personal {
    background-color: #2676ff; /* синий */
}

.type-warning {
    background-color: #ff3b5c; /* красный */
}
.notify-meta {
    font-size: 13px;
    color: #8a8a8a;
    margin-top: 4px;
}

/* ===============================
   История уведомлений
   =============================== */
.admin-notif-item {
    background: #1b2029;
    border: 1px solid #2a313c;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
}

.admin-notif-title {
    font-weight: 600;
    font-size: 16px;
    color: #ffa657;
    margin-bottom: 4px;
}

.admin-notif-type {
    font-size: 13px;
    margin-bottom: 6px;
}

.admin-notif-text {
    color: #e6e6e6;
    font-size: 14px;
    margin-bottom: 6px;
}

.admin-notif-date {
    font-size: 12px;
    color: #888;
}
.admin-search-block {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-search-block input {
    width: 180px;
}
.notif-premium {
    border-left: 3px solid #ffb347;
    background: rgba(255, 179, 71, 0.08);
}

.notif-premium-title {
    color: #ffb347;
    font-weight: 600;
}
.premium-notif {
    border-left: 3px solid #ffb347;
    background: rgba(255, 179, 71, 0.08);
}

.premium-notif .admin-notif-title {
    color: #ffb347;
    font-weight: 600;
}

.premium-event {
    color: #ffb347;
    margin-left: 6px;
    font-weight: 600;
}
