﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #0c1016;
    --bg-sidebar: #111820;
    --bg-card: #161e28;
    --bg-input: #0e141c;
    --bg-hover: #1c2632;
    --bg-right-panel: #111820;
    --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);
    --sidebar-width: 230px;
    --right-panel-width: 280px;
    --topbar-height: 52px;
    --glow: 0 0 20px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] {
    --bg-body: #f5f0eb;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #faf7f4;
    --bg-hover: #f0ebe5;
    --bg-right-panel: #fdfcfa;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.07);
    --accent-lighter: rgba(37, 99, 235, 0.03);
    --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', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: 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 20% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
}

.login-box {
    background: #111820;
    border: 1px solid #2a2219;
    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;
}

.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 select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.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;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==================== MAIN LAYOUT ==================== */

.main-panel {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==================== LEFT SIDEBAR ==================== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    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;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    opacity: 1;
}

.sidebar:hover .sidebar-brand {
    opacity: 1;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 14px 8px;
    overflow: hidden;
}

.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;
    white-space: nowrap;
    opacity: 1;
}

.sidebar:hover .nav-section-title {
    opacity: 1;
}

.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-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.sidebar-btn i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.sidebar-btn span {
    opacity: 1;
}

.sidebar:hover .sidebar-btn span {
    opacity: 1;
}

.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);
    overflow: hidden;
}

.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);
    overflow: hidden;
}

.user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    opacity: 1;
    white-space: nowrap;
}

.sidebar:hover .user-info {
    opacity: 1;
}

.user-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-status {
    font-size: 9px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.user-status i {
    font-size: 5px;
}

.sidebar-account-btns {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.sidebar-icon-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    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;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.sidebar:hover .sidebar-credits {
    opacity: 0.6;
}

/* ==================== MAIN WRAPPER ==================== */

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    margin-left: var(--sidebar-width);
}

/* ==================== TOP BAR ==================== */

.top-bar {
    height: var(--topbar-height);
    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;
}

.pnc-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);
}

.pnc-live-btn i {
    font-size: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-officer-info {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    color: var(--text-muted);
}

.top-officer-info .top-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-officer-info .top-info-item i {
    color: var(--accent);
    font-size: 9px;
}

.top-officer-info .top-info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 11px;
}

.top-time {
    text-align: right;
}

.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;
}

/* ==================== CONTENT WRAPPER ==================== */

.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
    min-width: 0;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.view-title h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.badge-new {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.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;
}

/* ==================== FORM CARDS ==================== */

.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);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 13px;
}

.card-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent);
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ==================== CHARGES ==================== */

.charges-search {
    position: relative;
    margin-bottom: 12px;
}

.charges-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
}

.charges-search input {
    width: 100%;
    padding: 10px 14px 10px 34px;
    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;
}

.charges-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.charges-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.charges-category {
    border-bottom: 1px solid var(--border-light);
}

.charges-category:last-child {
    border-bottom: none;
}

.charges-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    cursor: pointer;
    background: var(--bg-input);
    transition: background 0.15s;
}

.charges-category-header:hover {
    background: var(--bg-hover);
}

.charges-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.charges-category-title .dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
}

.charges-category-count {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 2px 7px;
    border-radius: 3px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.charges-category-items {
    display: none;
}

.charges-category.expanded .charges-category-items {
    display: block;
}

.charge-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px 7px 30px;
    border-top: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}

.charge-item:hover {
    background: var(--accent-lighter);
}

.charge-item-name {
    font-size: 11px;
    color: var(--text-secondary);
}

.charge-item-points {
    display: flex;
    align-items: center;
    gap: 6px;
}

.charge-points-value {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.charge-points-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.charge-points-controls button {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.charge-points-controls button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.selected-charges {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-charge-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.selected-charge-tag .remove-charge {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.selected-charge-tag .remove-charge:hover {
    opacity: 1;
}

/* ==================== DASHBOARD ==================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.stat-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.dash-card h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dash-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 240px;
    overflow-y: auto;
}

.dash-item {
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-secondary);
    border-left: 2px solid var(--accent);
    transition: border-color 0.15s;
}

.dash-item:hover {
    border-left-color: var(--text-primary);
}

/* ==================== LOG LIST ==================== */

.log-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-list-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.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: 5px;
}

.log-date {
    font-size: 10px;
    color: var(--text-muted);
}

/* ==================== FILTER / SEARCH ==================== */

.filter-bar,
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-bar input,
.search-bar input,
.filter-bar select {
    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 select {
    flex: 0 0 170px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.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);
}

/* ==================== 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: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.user-item:hover {
    border-color: var(--accent);
}

.user-item.dragging {
    opacity: 0.4;
}

.user-item.drag-over {
    border-color: var(--accent);
    border-style: dashed;
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 12px;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.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;
}

.user-item-suspended {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    text-transform: uppercase;
    font-weight: 700;
}

.user-suspended {
    opacity: 0.5;
    border-color: var(--danger) !important;
}

/* ==================== STAFF TABLE ==================== */

.staff-stats-grid {
    overflow-x: auto;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.staff-table thead {
    background: var(--bg-input);
}

.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: 9px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.staff-table tbody tr:hover {
    background: var(--bg-hover);
}

.staff-table-rank {
    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);
}

/* ==================== SETTINGS ==================== */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.settings-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== PANEL LOG ENTRIES ==================== */

.panel-log-entry {
    padding: 11px 14px;
}

.panel-log-details {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent);
}

.panel-log-detail-line {
    font-size: 10px;
    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-light);
    margin-top: 3px;
    padding-top: 5px;
}

/* ==================== MODALS ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    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-small {
    max-width: 360px;
}

.modal-box h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-box h3 i {
    color: var(--accent);
}

.modal-box p {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

/* ==================== EMPTY STATES ==================== */

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 36px;
    font-size: 13px;
    font-style: italic;
}

/* ==================== SUCCESS/ERROR MESSAGES ==================== */

.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); }
}

/* ==================== MISC BUTTONS ==================== */

.btn-delete,
.btn-edit,
.btn-suspend,
.btn-restore {
    padding: 5px 11px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-delete {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}

.btn-edit {
    background: var(--accent-light);
    color: var(--accent);
}

.btn-edit:hover {
    background: var(--accent);
    color: white;
}

.btn-suspend {
    background: var(--warning-light);
    color: var(--warning);
}

.btn-suspend:hover {
    background: var(--warning);
    color: white;
}

.btn-restore {
    background: var(--success-light);
    color: var(--success);
}

.btn-restore:hover {
    background: var(--success);
    color: 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);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .top-officer-info {
        display: none;
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 56px;
    }

    .main-wrapper {
        margin-left: 56px;
    }

    .modal-overlay {
        left: 56px;
    }

    .sidebar-brand,
    .sidebar-btn span,
    .nav-section-title,
    .sidebar-footer .user-info {
        display: none !important;
    }

    .sidebar.mobile-open .sidebar-brand,
    .sidebar.mobile-open .sidebar-btn span,
    .sidebar.mobile-open .nav-section-title,
    .sidebar.mobile-open .sidebar-footer .user-info {
        display: flex !important;
    }

    .sidebar.mobile-open .nav-section-title {
        display: block !important;
    }

    .form-row,
    .form-row-3 {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        padding: 0 14px;
    }

    .top-officer-info {
        display: none;
    }
}

@media (max-width: 600px) {
    .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 strong {
        font-size: 13px;
    }

    .time-display {
        font-size: 12px;
    }

    .date-display {
        font-size: 8px;
    }

    .main-content {
        padding: 14px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row,
    .form-row-3 {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .view-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .view-title h1 {
        font-size: 16px;
    }

    .filter-bar,
    .search-bar {
        flex-direction: column;
    }

    .filter-bar select {
        flex: 1;
    }

    .form-card {
        padding: 16px;
    }

    .login-box {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .modal-box {
        width: 95%;
        max-width: 95%;
        padding: 20px 16px;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .active-officers-list {
        grid-template-columns: 1fr;
    }

    .staff-table {
        font-size: 10px;
    }

    .staff-table th,
    .staff-table td {
        padding: 6px 8px;
    }
}

/* ==================== LIGHT MODE LOGIN ==================== */

[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);
}


/* ==================== PNC AUTOCOMPLETE ==================== */

.pnc-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-sidebar);
    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);
}

.pnc-autocomplete-item {
    padding: 9px 14px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-light);
}

.pnc-autocomplete-item:last-child {
    border-bottom: none;
}

.pnc-autocomplete-item:hover {
    background: var(--accent);
    color: white;
}


/* ==================== ACTIVE OFFICERS ==================== */

.active-officers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.active-officer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}

.active-officer-item:hover {
    border-color: var(--accent);
}

.active-officer-avatar {
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.active-officer-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.active-officer-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.active-officer-detail {
    font-size: 10px;
    color: var(--text-muted);
}

.active-officer-status {
    font-size: 9px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-officer-status i {
    font-size: 5px;
}


/* ==================== TOAST NOTIFICATIONS ==================== */

.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease;
    max-width: 340px;
}

.toast.toast-exit {
    animation: toastOut 0.3s ease forwards;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

.toast-warning {
    background: var(--warning);
}

.toast-info {
    background: var(--accent);
}

.toast i {
    font-size: 13px;
    flex-shrink: 0;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(16px); }
}


/* ==================== 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: 16px;
}

.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-flagged {
    background: var(--warning-light);
    color: var(--warning);
}

.status-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.status-clean {
    background: var(--success-light);
    color: var(--success);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.profile-stat-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
}

.profile-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-stat-label {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
    font-weight: 600;
}

.profile-dates {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

/* ==================== RECORD CARDS ==================== */

.record-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.record-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.record-player {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.record-date {
    font-size: 10px;
    color: var(--text-muted);
}

.record-reason {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.record-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.record-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-officer {
    font-size: 10px;
    color: var(--text-muted);
}
