﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0c1016;
    --bg-panel: #111820;
    --bg-card: #161e28;
    --bg-hover: #1c2632;
    --bg-input: #0e141c;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: rgba(59, 130, 246, 0.10);
    --accent-lighter: rgba(59, 130, 246, 0.05);
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --success: #16a34a;
    --success-light: rgba(22, 163, 74, 0.10);
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.10);
    --text-primary: #e8e0d6;
    --text-secondary: #9a8f83;
    --text-muted: #5c534a;
    --border: #2a2219;
    --border-light: #1f1a14;
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --glow: 0 0 20px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] {
    --bg-dark: #f5f0eb;
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0ebe5;
    --bg-input: #faf7f4;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.07);
    --accent-lighter: rgba(37, 99, 235, 0.03);
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --success: #16a34a;
    --success-light: rgba(22, 163, 74, 0.07);
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.07);
    --text-primary: #1c1410;
    --text-secondary: #5c4e42;
    --text-muted: #9a8f83;
    --border: #e0d6cc;
    --border-light: #f0ebe5;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glow: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ==================== LOGIN SCREEN ==================== */

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0c1016;
    background-image:
        radial-gradient(ellipse at 30% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

.login-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 44px 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow);
    position: relative;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 0 0 2px 2px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.login-header p {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ==================== FORM ELEMENTS ==================== */

.input-group {
    margin-bottom: 14px;
    flex: 1;
}

.input-group label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c534a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.input-group select option {
    background: var(--bg-panel);
    color: var(--text-primary);
    padding: 10px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.error-msg {
    color: var(--danger);
    font-size: 12px;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-small {
    padding: 5px 12px;
    font-size: 10px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==================== MAIN LAYOUT ==================== */

.main-panel {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==================== LEFT SIDEBAR ==================== */

.sidebar {
    width: 230px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    min-height: 60px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 14px 8px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    padding: 0 10px;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    margin-bottom: 2px;
    position: relative;
}

.sidebar-btn i {
    font-size: 13px;
    width: 18px;
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.sidebar-btn:hover {
    background: var(--accent-light);
    color: var(--text-primary);
}

.sidebar-btn:hover i {
    opacity: 1;
    color: var(--accent);
}

.sidebar-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.sidebar-btn.active i {
    color: white;
    opacity: 1;
}

.sidebar-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: white;
    border-radius: 0 2px 2px 0;
    opacity: 0.5;
}

.sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-account-btns {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
}

.sidebar-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.sidebar-icon-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.sidebar-icon-btn-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.sidebar-credits {
    display: block;
    text-align: center;
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 10px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* ==================== MAIN WRAPPER ==================== */

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    margin-left: 230px;
}

/* ==================== TOP BAR ==================== */

.top-bar {
    height: 52px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
}

.breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
}

.breadcrumb strong {
    color: var(--text-primary);
    font-weight: 600;
}

.top-bar-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sap-live-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.sap-live-btn i {
    font-size: 6px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.top-officer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
}

.top-info-item i {
    color: var(--accent);
    font-size: 9px;
}

.top-info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 11px;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.time-display {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.date-display {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.view-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.entry-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* ==================== FILTER & SEARCH ==================== */

.filter-bar,
.search-bar {
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
}

.filter-bar input,
.search-bar input {
    flex: 1;
    padding: 9px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
}

.filter-bar input:focus,
.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* ==================== LOG LIST ==================== */

.log-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-entry {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    transition: border-color 0.2s;
}

.log-entry:hover {
    border-color: var(--accent);
}

.log-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.log-player {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.log-team {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: 400;
}

.log-date {
    font-size: 10px;
    color: var(--text-muted);
}

.log-body {
    margin-bottom: 8px;
}

.log-reason {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.log-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-server-ban {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
}

.badge-game-ban {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-temporary-ban {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-time-ban {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-trello-ban {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.log-staff {
    font-size: 11px;
    color: var(--text-muted);
}

.log-evidence {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.log-evidence a {
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    margin-right: 10px;
}

.log-evidence a:hover {
    text-decoration: underline;
}

.log-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.btn-delete {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    padding: 5px 11px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}

.btn-edit {
    background: var(--accent-light);
    color: var(--accent);
    padding: 5px 11px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-edit:hover {
    background: var(--accent);
    color: white;
}

/* ==================== VALIDATION ==================== */

.input-error {
    border-color: var(--danger) !important;
}

.validation-msg {
    font-size: 10px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.validation-msg.visible {
    display: block;
}

/* ==================== FORM CARD ==================== */

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 4px;
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 36px;
    font-size: 13px;
    font-style: italic;
}

/* ==================== USER LIST ==================== */

.user-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.15s;
}

.user-item:hover {
    border-color: var(--accent);
}

.user-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-item-role {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--accent-light);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==================== SUCCESS MESSAGE ==================== */

.success-msg {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-bottom: 14px;
    animation: fadeIn 0.3s;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== PLAYER PROFILE ==================== */

.player-profile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 8px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-status {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.status-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.status-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.profile-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.stat-card {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.profile-dates {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

/* ==================== AUTOCOMPLETE ==================== */

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 180px;
    overflow-y: auto;
    z-index: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.autocomplete-item {
    padding: 9px 14px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: var(--accent);
    color: white;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .sidebar {
        width: 56px;
    }

    .sidebar-brand,
    .sidebar-btn span,
    .nav-section-title,
    .sidebar-footer .user-info,
    .sidebar-credits {
        display: none !important;
    }

    .sidebar.mobile-open .sidebar-brand,
    .sidebar.mobile-open .sidebar-btn span,
    .sidebar.mobile-open .sidebar-footer .user-info,
    .sidebar.mobile-open .sidebar-credits {
        display: flex !important;
    }

    .sidebar.mobile-open .nav-section-title {
        display: block !important;
    }

    .sidebar.mobile-open .sidebar-credits {
        display: block !important;
    }

    .main-wrapper {
        margin-left: 56px;
    }

    .modal-overlay {
        left: 56px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .main-content {
        padding: 14px;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .view-header h2 {
        font-size: 16px;
    }

    .filter-bar,
    .search-bar {
        flex-direction: column;
    }

    .profile-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-number {
        font-size: 18px;
    }

    .log-entry {
        padding: 10px 12px;
    }

    .log-entry-header {
        flex-direction: column;
        gap: 4px;
    }

    .log-meta {
        flex-wrap: wrap;
        gap: 6px;
    }

    .log-actions {
        flex-wrap: wrap;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .staff-stats-grid {
        gap: 10px;
    }

    .modal-box {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    .player-profile {
        padding: 16px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .profile-dates {
        flex-direction: column;
        gap: 4px;
    }

    .evidence-drop-zone {
        padding: 14px;
    }

    .panel-log-details {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 220px;
        height: 100vh;
        z-index: 1000;
    }

    .sidebar.mobile-open {
        display: flex;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .modal-overlay {
        left: 0;
    }

    .top-bar {
        padding: 0 12px;
        height: 46px;
    }

    .top-bar-center {
        display: none;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .time-display {
        font-size: 12px;
    }

    .date-display {
        font-size: 8px;
    }

    .main-content {
        padding: 12px;
    }

    .view-header h2 {
        font-size: 15px;
    }

    .form-card {
        padding: 16px;
    }

    .login-box {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .staff-stats-grid {
        gap: 8px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .modal-box {
        width: 95%;
        max-width: 95%;
        padding: 20px 16px;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .evidence-drop-zone {
        padding: 12px;
    }
}


/* ==================== MODALS ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 230px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), var(--glow);
}

.modal-box p {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}


/* ==================== EVIDENCE UPLOAD ==================== */

.evidence-drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.evidence-drop-zone:hover,
.evidence-drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.03);
}

.evidence-drop-zone p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.evidence-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.evidence-preview:empty {
    margin-top: 0;
}

.evidence-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.evidence-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-thumb .remove-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.evidence-thumb .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-existing-evidence {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


/* ==================== PANEL LOG ENTRIES ==================== */

.panel-log-entry {
    padding: 12px 16px;
}

.panel-log-details {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent);
}

.panel-log-detail-line {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 3px 0;
    line-height: 1.5;
}

.panel-log-detail-line + .panel-log-detail-line {
    border-top: 1px solid var(--border);
    margin-top: 3px;
    padding-top: 5px;
}


/* ==================== SUSPEND ==================== */

.user-suspended {
    opacity: 0.5;
    border-color: var(--danger) !important;
}

.user-item-suspended {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-suspend {
    background: var(--warning-light);
    color: var(--warning);
    padding: 5px 11px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-suspend:hover {
    background: var(--warning);
    color: white;
}


/* ==================== DRAG AND DROP ==================== */

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 8px;
    user-select: none;
}

.user-item[draggable="true"] {
    cursor: grab;
}

.user-item[draggable="true"]:active {
    cursor: grabbing;
}

.user-item.dragging {
    opacity: 0.4;
}

.user-item.drag-over {
    border-color: var(--accent);
    border-style: dashed;
}


/* ==================== LIGHT MODE OVERRIDES ==================== */

[data-theme="light"] .login-screen {
    background: linear-gradient(135deg, #f5f0eb 0%, #ede5dc 50%, #f0e8e0 100%);
}

[data-theme="light"] .login-box {
    background: #ffffff;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .log-entry {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .log-entry:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .sidebar {
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .form-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .input-group input,
[data-theme="light"] .input-group select,
[data-theme="light"] .input-group textarea {
    border: 1px solid #e0d6cc;
    background: #faf7f4;
}

[data-theme="light"] .user-item {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .sidebar-btn.active {
    background: var(--accent);
}


/* ==================== BAN EXPIRY ==================== */

.ban-expiry-bar {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.expiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.expiry-label {
    font-size: 11px;
    font-weight: 700;
}

.expiry-label.expiry-safe {
    color: var(--success);
}

.expiry-label.expiry-mid {
    color: var(--warning);
}

.expiry-label.expiry-urgent {
    color: var(--danger);
}

.expiry-label.expired-label {
    color: var(--danger);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expiry-date {
    font-size: 9px;
    color: var(--text-muted);
}

.expiry-progress {
    width: 100%;
    height: 5px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}

.expiry-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.expiry-progress-fill.expiry-safe {
    background: var(--success);
}

.expiry-progress-fill.expiry-mid {
    background: var(--warning);
}

.expiry-progress-fill.expiry-urgent {
    background: var(--danger);
}

.expiry-progress-fill.expired-fill {
    background: var(--danger);
}

.ban-expired-entry {
    opacity: 0.5;
}

.badge-unbanned {
    background: var(--success-light);
    color: var(--success);
}

.badge-unban-appealed {
    background: var(--success-light);
    color: var(--success);
}

.badge-unban-expired {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-unban-revoked {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.badge-unban-unbanned {
    background: var(--success-light);
    color: var(--success);
}

.btn-unban {
    background: transparent;
    border: 1px solid var(--success);
    color: var(--success);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-unban:hover {
    background: var(--success);
    color: white;
}


/* ==================== STAFF ACTIVITY ==================== */

.staff-stats-grid {
    overflow-x: auto;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.staff-table thead {
    background: var(--bg-hover);
}

.staff-table th {
    padding: 9px 12px;
    text-align: left;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
}

.staff-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.staff-table tbody tr:hover {
    background: var(--bg-hover);
}

.staff-table-rank {
    font-size: 13px;
    text-align: center;
    width: 36px;
}

.staff-table-name {
    font-weight: 600;
}

.staff-table-role {
    font-size: 9px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.staff-table-number {
    font-weight: 700;
    text-align: center;
}

.staff-table-date {
    font-size: 10px;
    color: var(--text-muted);
}


/* ==================== BAN CARDS ==================== */

.ban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ban-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
}

.ban-card-front {
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
}

.ban-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ban-card-player {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.ban-card-reason {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ban-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ban-card-expanded {
    display: none;
    padding: 0 18px 16px;
    border-top: 1px solid var(--border);
    animation: slideDown 0.2s ease;
}

.ban-card.expanded .ban-card-expanded {
    display: block;
}

.ban-card.expanded .ban-card-front {
    padding-bottom: 12px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ban-card-details {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ban-card-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ban-card-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.ban-card-detail-value {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 500;
}

.ban-card-evidence {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.ban-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.ban-appealed-entry {
    border-left: 3px solid var(--success);
}

.ban-expired-entry {
    opacity: 0.5;
    border-left: 3px solid var(--warning);
}

.ban-revoked-entry {
    border-left: 3px solid var(--danger);
}

.ban-card:not(.ban-appealed-entry):not(.ban-expired-entry):not(.ban-revoked-entry) {
    border-left: 3px solid var(--accent);
}

.badge-expired-small {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-safe {
    background: var(--success-light);
    color: var(--success);
}


/* ==================== EVIDENCE COMPARE ==================== */

.evidence-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.evidence-compare-side {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.evidence-compare-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evidence-compare-content img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.evidence-compare-content a {
    font-size: 11px;
    color: var(--accent);
    word-break: break-all;
}

.evidence-compare-content .empty-evidence {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.btn-view-changes {
    font-size: 10px;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 6px;
    transition: background 0.15s;
    font-weight: 600;
}

.btn-view-changes:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .evidence-compare {
        grid-template-columns: 1fr;
    }
}


/* ==================== DELETED/RESTORE ==================== */

.ban-deleted-card {
    opacity: 0.6;
    border-left: 3px solid var(--text-muted) !important;
}

.btn-restore {
    background: var(--success-light);
    color: var(--success);
    padding: 5px 11px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-restore:hover {
    background: var(--success);
    color: white;
}

/* ==================== TOGGLE SWITCH ==================== */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    transition: 0.3s;
    border-radius: 22px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

/* ==================== SCROLLBAR ==================== */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
