body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar { border-bottom: 2px solid #0f3460; }

.card {
    background-color: #16213e;
    border: 1px solid #0f3460;
    color: #e0e0e0;
}

.card-header {
    background-color: #0f3460;
    border-bottom: 1px solid #1a4a8a;
    color: #fff;
}

.table {
    color: #e0e0e0;
}

.table-dark-custom {
    --bs-table-color: #e0e0e0;
    --bs-table-bg: #16213e;
    --bs-table-striped-bg: #1a2a50;
    --bs-table-hover-bg: #1e3060;
    --bs-table-border-color: #0f3460;
    color: #e0e0e0;
}

.table-dark-custom .table-row-guest {
    --bs-table-color: #adb5bd;
    --bs-table-bg: rgba(108, 117, 125, 0.15);
    --bs-table-hover-bg: rgba(108, 117, 125, 0.25);
    opacity: 0.75;
}

.form-control, .form-select {
    background-color: #0f3460;
    border: 1px solid #1a4a8a;
    color: #e0e0e0;
}

.form-control:focus, .form-select:focus {
    background-color: #0f3460;
    border-color: #4a9eff;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(74,158,255,0.25);
}

.form-control::placeholder { color: #8899aa; }

.btn-primary { background-color: #0f3460; border-color: #1a4a8a; }
.btn-primary:hover { background-color: #1a4a8a; border-color: #4a9eff; }

/* Статистика */
.stat-card {
    background: linear-gradient(135deg, #0f3460, #16213e);
    border: 1px solid #1a4a8a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #4a9eff;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: #8899aa;
}

/* Чат */
#chat-box {
    height: 450px;
    overflow-y: auto;
    background-color: #0d1b2e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 15px;
}
.chat-msg { margin-bottom: 12px; }
.chat-msg .msg-author {
    font-weight: bold;
    font-size: 0.85rem;
}
.chat-msg .msg-text {
    background-color: #16213e;
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 80%;
    word-break: break-word;
}
.chat-msg.own .msg-text {
    background-color: #0f3460;
}
.msg-bubble-wrap { display: block; }
.btn-translate {
    background: none;
    border: none;
    color: #445566;
    font-size: 0.75rem;
    padding: 2px 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.btn-translate:hover { color: #4a9eff; }
.btn-translate.active { color: #4a9eff; }
.btn-translate:disabled { opacity: 0.4; cursor: wait; }
.btn-reply {
    background: none;
    border: none;
    color: #445566;
    font-size: 0.75rem;
    padding: 2px 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s;
    line-height: 1;
}
.btn-reply:hover { color: #4a9eff; }
.msg-quote {
    font-size: 0.8rem;
    color: #8899aa;
    border-left: 3px solid #4a9eff;
    padding: 2px 8px;
    margin-bottom: 5px;
    background: rgba(74,158,255,0.07);
    border-radius: 0 4px 4px 0;
    word-break: break-word;
}
.reply-preview {
    background: rgba(74,158,255,0.07);
    border-left: 3px solid #4a9eff;
    border-radius: 0 6px 6px 0;
    padding: 6px 10px;
    margin-bottom: 6px;
}
.msg-translation {
    font-size: 0.82rem;
    color: #8899aa;
    font-style: italic;
    margin-top: 4px;
    padding: 3px 10px;
    border-left: 2px solid #1a4a8a;
    max-width: 80%;
    word-break: break-word;
}
.chat-msg .msg-time {
    font-size: 0.75rem;
    color: #667788;
}
.role-admin { color: #ff4444; }
.role-moderator { color: #ffaa00; }
.role-client { color: #44cc88; }

/* Уведомления */
.notif-info    { border-left: 4px solid #4a9eff; }
.notif-warning { border-left: 4px solid #ffaa00; }
.notif-success { border-left: 4px solid #44cc88; }
.notif-danger  { border-left: 4px solid #ff4444; }

/* Видеоплеер */
.video-card video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

/* Выпадающее меню (navbar dropdown) */
.dropdown-menu {
    background-color: #16213e;
    border: 1px solid #0f3460;
}
.dropdown-item {
    color: #e0e0e0;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: #1e3060;
    color: #fff;
}
.dropdown-divider {
    border-color: #0f3460;
}

/* Скроллбар */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d1b2e; }
::-webkit-scrollbar-thumb { background: #0f3460; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1a4a8a; }
