@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #060913;
    --bg-sidebar: #0a0e1a;
    --bg-card: #0d1222;
    --border-color: #141c33;
    --text-primary: #f8fafc;
    --text-muted: #475a80;
    --blue-accent: #2359e3;
    --red-accent: #ef4444;
    --orange-accent: #f97316;
    --green-accent: #10b981;
}

/* CORE SETTINGS */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg-main); color: var(--text-primary); overflow: hidden; height: 100vh; width: 100vw; }
.hidden { display: none !important; }
.dashboard-root { background-color: #05070f; color: #f8fafc; }

/* REPLICA FIVEGUARD TOP NAVIGATION BAR */
.hub-top-nav { background-color: var(--bg-sidebar); border-bottom: 1px solid var(--border-color); height: 65px; display: flex; align-items: center; padding: 0 24px; position: relative; z-index: 10; }
.hub-logo { display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.hub-hamburger { margin-left: 35px; color: #3b4f7c; cursor: pointer; font-size: 16px; }
.hub-top-right-meta { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.wallet-badge { background: #1a233d; border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 13px; color: #fff; }
.user-profile-pill { background: var(--blue-accent); padding: 6px 6px 6px 16px; border-radius: 6px; display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }
.user-avatar-mini { background: rgba(25,32,56,0.3); width: 32px; height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.btn-logout-gate { color: #475a80; font-size: 15px; text-decoration: none; padding: 8px; transition: color 0.2s; }
.btn-logout-gate:hover { color: var(--red-accent); }

/* CORE STRUCTURE PANELS */
.panel-layout { display: flex; height: calc(100vh - 65px); width: 100vw; position: relative; }
.sidebar { width: 260px; background-color: var(--bg-sidebar); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 20px 15px; flex-shrink: 0; }
.main-workspace { flex-grow: 1; padding: 35px; overflow-y: auto; background-color: var(--bg-main); }

/* PREMIUM SIDEBAR SERVER SELECTOR */
.selector-box-link { text-decoration: none; color: inherit; display: block; margin-bottom: 20px; }
.selector-box-premium { background: linear-gradient(135deg, #090d1a 0%, #0c1224 100%); border: 1px solid #1a2440; padding: 14px; border-radius: 8px; display: flex; align-items: center; gap: 12px; transition: all 0.25s ease; }
.selector-box-premium:hover { border-color: var(--blue-accent); box-shadow: 0 0 15px rgba(35, 89, 227, 0.25); }
.server-icon-glow { background: rgba(35, 89, 227, 0.15); color: var(--blue-accent); width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.server-meta-text { display: flex; flex-direction: column; }
.server-title { font-weight: 600; font-size: 13px; color: #fff; }
.server-subtitle { font-size: 11px; color: var(--text-muted); }
.switch-back-icon { margin-left: auto; font-size: 12px; color: #3b4f7c; }

/* SEARCH FIELDS */
.sidebar-search { background: #080c17; border: 1px solid var(--border-color); border-radius: 6px; display: flex; align-items: center; padding: 10px 14px; margin-bottom: 20px; }
.sidebar-search i { color: #3a4b6e; font-size: 12px; }
.sidebar-search input { background: transparent; border: none; color: #fff; margin-left: 10px; outline: none; font-size: 13px; width: 100%; }
.sidebar-search input::placeholder { color: #3a4b6e; }

/* PREMIUM SIDEBAR NAVIGATION LINKS */
.sidebar-nav { flex-grow: 1; overflow-y: auto; }
.sidebar-nav ul { list-style: none; }
.nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #2a3752; margin: 22px 0 8px 8px; letter-spacing: 0.5px; }
.nav-item-premium { padding: 11px 14px; color: #526792; font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 12px; margin-bottom: 5px; transition: all 0.2s ease; }
.nav-item-premium i { font-size: 14px; width: 18px; text-align: center; }
.nav-item-premium:hover { background-color: #0b1224; color: #fff; }
.nav-item-premium.active { background: linear-gradient(90deg, #10172e 0%, #070a12 100%) !important; border-left: 3px solid var(--blue-accent); color: #fff; font-weight: 600; padding-left: 11px; }
.badge-count { margin-left: auto; background: #1e294b; color: #38bdf8; font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.sidebar-footer-copyright { font-size: 10px; color: #232f4b; text-align: center; padding-top: 15px; border-top: 1px solid var(--border-color); font-weight: 600; letter-spacing: 0.5px; }

/* REUSABLE HUBCARDS */
.hub-content-card { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; margin-bottom: 25px; }
.card-action-header { display: flex; justify-content: flex-end; margin-bottom: 15px; }
.hub-section-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }

/* DATA TABLES GENERICS */
.table-responsive-wrapper { width: 100%; overflow-x: auto; }
.hub-data-table { width: 100%; border-collapse: collapse; text-align: left; }
.hub-data-table th { font-size: 11px; font-weight: 700; color: #475a80; text-transform: uppercase; padding: 12px 15px; border-bottom: 1px solid var(--border-color); letter-spacing: 0.5px; }
.hub-data-table td { padding: 16px 15px; font-size: 13px; border-bottom: 1px solid rgba(20,28,51,0.4); vertical-align: middle; }

/* GLOW BUTTONS & PREMIUM INTERACTIONS */
.btn-glow-blue { background: var(--blue-accent); color: #fff; border: none; padding: 10px 18px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(35, 89, 227, 0.3); transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-glow-blue:hover { background: #3166eb; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(35, 89, 227, 0.45); }
.btn-glow-dark { background: #0d1324; border: 1px solid #1e294b; color: #94a3b8; padding: 10px 18px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-glow-dark:hover { border-color: #3b5185; color: #fff; }
.btn-table-manage { background: #161f38; border: 1px solid var(--border-color); color: #cbd5e1; padding: 7px 14px; border-radius: 4px; font-size: 12px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-table-manage:hover { background: var(--blue-accent); color: #fff; border-color: var(--blue-accent); box-shadow: 0 0 10px rgba(35,89,227,0.4); }

/* FORMS ELEMENTS & UTILITIES */
.premium-form-label { font-size: 11px; color: #475a80; font-weight: 700; display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.hub-form-input { width: 100%; background: #060912; border: 1px solid var(--border-color); padding: 12px 14px; border-radius: 6px; color: #fff; font-size: 13px; outline: none; transition: border 0.2s; }
.hub-form-input:focus { border-color: var(--blue-accent); }
.hub-btn-submit-glow { width: 100%; background: var(--blue-accent); border: none; padding: 13px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(35,89,227,0.25); }
.hub-btn-submit-glow:hover { background: #2f69fff; box-shadow: 0 4px 18px rgba(35,89,227,0.45); }

/* LIVE CONSTANT PULSE DOT */
.pulse-dot { width: 7px; height: 7px; background: var(--green-accent); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--green-accent); animation: pulseAnimation 1.8s infinite ease-in-out; vertical-align: middle; margin-right: 4px; }
@keyframes pulseAnimation {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px var(--green-accent); }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* PRODUCTION DASHBOARD GEOMETRY COMPONENTS */
.dashboard-header-block { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.header-left-meta h2 { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px; }
.badge-online-pulse { background: rgba(16, 185, 129, 0.04); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--green-accent); font-size: 11px; padding: 3px 12px; border-radius: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.meta-horizontal-row { display: flex; align-items: center; gap: 24px; margin-top: 15px; }
.meta-chunk { display: flex; flex-direction: column; }
.chunk-lbl { font-size: 10px; color: #3b4e75; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.chunk-val { font-size: 13px; font-weight: 600; color: #94a3b8; margin-top: 2px; }
.chunk-val-blue { font-size: 13px; font-weight: 600; color: #38bdf8; margin-top: 2px; }
.header-actions-group { display: flex; gap: 8px; }
.header-right-stats { display: flex; gap: 35px; }
.stat-box-large { text-align: right; }
.stat-box-large strong { font-size: 26px; font-weight: 700; display: block; color: #fff; line-height: 1.1; }
.stat-box-large span { font-size: 10px; color: #3b4e75; font-weight: 700; letter-spacing: 0.5px; display: block; margin-top: 4px; }

/* CHARTS CARD HOUSING */
.main-visual-chart-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; height: 380px; margin-bottom: 25px; }
.chart-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chart-card-title { font-size: 13px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.chart-container-actual { width: 100%; height: calc(100% - 40px); position: relative; }
.bottom-dashboard-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 25px; align-items: start; }
.mini-charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; position: relative; }
.mini-chart-card-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 18px; height: 135px; display: flex; flex-direction: column; justify-content: space-between; }
.mini-chart-meta strong { font-size: 22px; font-weight: 700; display: block; color: #fff; }
.mini-chart-meta span { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.mini-canvas-holder { height: 45px; width: 100%; }
.time-filters-row { display: flex; gap: 5px; }
.time-tag { font-size: 10px; font-weight: 700; color: #3b4e75; cursor: pointer; padding: 3px 8px; transition: color 0.2s; }
.time-tag.active { color: #fff; background: #111930; border-radius: 4px; }

/* EXCLUSIVE EMERGENCY CONTROL BUTTONS */
.quick-actions-panel { display: flex; flex-direction: column; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; }
.btn-action-danger { background: linear-gradient(135deg, #1a0f12 0%, #2e1216 100%); border: 1px solid #4a1d24; color: #fca5a5; padding: 12px 15px; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; }
.btn-action-danger:hover { border-color: var(--red-accent); box-shadow: 0 0 12px rgba(239, 68, 68, 0.2); color: #fff; }
.btn-action-warning { background: linear-gradient(135deg, #1c160e 0%, #2e2211 100%); border: 1px solid #4d3819; color: #fde047; padding: 12px 15px; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; }
.btn-action-warning:hover { border-color: var(--orange-accent); box-shadow: 0 0 12px rgba(234, 179, 8, 0.2); color: #fff; }
.btn-action-primary { background: linear-gradient(135deg, #09122b 0%, #0f1e4a 100%); border: 1px solid #1d3370; color: #93c5fd; padding: 12px 15px; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; }
.btn-action-primary:hover { border-color: var(--blue-accent); box-shadow: 0 0 12px rgba(35, 89, 227, 0.3); color: #fff; }

/* PLAYERS SCHEDULING CARDS */
.players-view-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.players-online-counter { font-size: 13px; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; }
.players-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.player-card-rect { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px 15px; display: flex; align-items: center; position: relative; }
.player-avatar-circle { width: 34px; height: 34px; background: #060912; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #475a80; font-size: 12px; border: 1px solid #17223b; margin-right: 12px; }
.player-info-meta { display: flex; flex-direction: column; }
.p-card-name { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.p-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.player-card-badges-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.btn-player-action { background: #0a0f1d; border: 1px solid #1e294b; color: #64748b; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; transition: all 0.15s; }
.btn-player-action.action-kick:hover { background: var(--orange-accent); border-color: var(--orange-accent); color: #fff; }
.btn-player-action.action-ban:hover { background: var(--red-accent); border-color: var(--red-accent); color: #fff; }

/* COMPREHENSIVE LIVE MAP SECTIONS */
.map-split-container { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 20px; height: 72vh; }
.map-render-zone { background: #000; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; position: relative; }
.map-players-sidebar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; }
.map-scroll-list { flex-grow: 1; overflow-y: auto; }
.map-list-row { display: flex; align-items: center; padding: 12px 14px; background: #060912; border-radius: 6px; margin-bottom: 6px; font-size: 13px; border: 1px solid #141c33; }
.target-crosshair-icon { margin-left: auto; color: #3b4f7c; font-size: 12px; cursor: pointer; transition: color 0.15s; }
.target-crosshair-icon:hover { color: var(--blue-accent); }
.leaflet-container { background-color: #0c1324 !important; }
.premium-empty-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 50px; border-radius: 8px; text-align: center; }
.premium-empty-card h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.premium-empty-card p { color: var(--text-muted); font-size: 13px; }
.empty-state-box { grid-column: 1 / -1; background: #0a0f1d; border: 1px dashed var(--border-color); color: var(--text-muted); padding: 30px; text-align: center; border-radius: 8px; font-size: 13px; }

/* AUTHENTICATION SCREENS (LOGIN/REGISTER) & NOTIFICATION BANNERS */
.auth-fluid-bg { background-color: #040609; display: flex; align-items: center; justify-content: center; height: 100vh; width: 100vw; }
.auth-container { width: 100%; max-width: 420px; padding: 20px; }
.auth-card { background-color: #070a0f; border: 1px solid #141c33; padding: 35px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.auth-card h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 25px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.auth-error-box { background: rgba(239, 68, 68, 0.08); border: 1px solid var(--red-accent); color: var(--red-accent); padding: 12px; border-radius: 6px; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.auth-success-box { background: rgba(16, 185, 129, 0.08); border: 1px solid var(--green-accent); color: var(--green-accent); padding: 12px; border-radius: 6px; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.auth-switch-footer { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 20px; }
.auth-switch-footer a { color: var(--blue-accent); text-decoration: none; font-weight: 600; }

.auth-message-banner { padding: 12px 16px; border-radius: 6px; margin-bottom: 25px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.banner-success { background: rgba(16, 185, 129, 0.08); border: 1px solid var(--green-accent); color: var(--green-accent); }
.banner-danger { background: rgba(239, 68, 68, 0.08); border: 1px solid var(--red-accent); color: var(--red-accent); }