:root {
    --bg: #080b11;
    --bg-soft: #0c1018;
    --sidebar: #0b0f16;

    --surface: #111722;
    --surface-hover: #151c29;
    --surface-light: #192131;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #f4f7fb;
    --text-soft: #aab3c2;
    --text-muted: #697386;

    --primary: #ff5a36;
    --primary-hover: #ff8a5c;

    --success: #3ddc97;
    --warning: #ffb454;
    --danger: #ff5c70;
    --purple: #a678ff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-menu: 0 18px 45px rgba(0, 0, 0, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(255, 90, 54, 0.08),
            transparent 32%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Login */

.login-screen {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 90, 54, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(163, 110, 255, 0.08),
            transparent 30%
        ),
        var(--bg);
}

.login-card {
    width: min(420px, 100%);

    padding: 36px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 40, 0.96),
            rgba(12, 16, 24, 0.98)
        );

    border: 1px solid var(--border-strong);
    border-radius: 20px;

    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 30px;
}

.login-brand h1 {
    font-size: 22px;
    letter-spacing: -0.4px;
}

.login-brand p {
    margin-top: 5px;

    color: var(--text-muted);
    font-size: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #ff8a3d
        );

    color: white;

    font-size: 20px;

    box-shadow:
        0 8px 25px rgba(255, 90, 54, 0.25);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.login-form label {
    margin-top: 10px;

    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}

.login-form input {
    width: 100%;

    padding: 13px 14px;

    background: #090d14;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    color: var(--text);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-form input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(255, 90, 54, 0.14);
}

.login-button {
    margin-top: 16px;

    padding: 13px;

    border: none;
    border-radius: var(--radius-sm);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #ff7a3d
        );

    color: white;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.login-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.login-error {
    min-height: 18px;

    margin-top: 8px;

    color: var(--danger);
    font-size: 12px;
}

.login-error:not(.visible) {
    visibility: hidden;
}

/* Application */

.panel-app {
    display: none;
    width: 100%;
}

.panel-app.authenticated {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.sidebar {
    position: sticky;
    top: 0;

    width: 260px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 24px 16px;

    background:
        linear-gradient(
            180deg,
            #0b0f16,
            #090c12
        );

    border-right: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 10px 32px;
}

.brand h2 {
    font-size: 16px;
    letter-spacing: -0.2px;
}

.brand span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);
    font-size: 11px;
}

.sidebar-navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 12px 14px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 9px;

    color: var(--text-muted);

    text-align: left;
    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.nav-item span {
    width: 20px;

    display: flex;
    justify-content: center;

    font-size: 16px;
}

.nav-item:hover {
    background: var(--surface);
    color: var(--text);
}

.nav-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(255, 90, 54, 0.16),
            rgba(255, 90, 54, 0.04)
        );

    border-color:
        rgba(255, 90, 54, 0.2);

    color: white;
}

.nav-item.active::before {
    content: "";

    position: absolute;

    left: -1px;
    top: 8px;
    bottom: 8px;

    width: 3px;

    border-radius: 0 4px 4px 0;

    background: var(--primary);
}

.sidebar-bottom {
    margin-top: auto;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px;

    background: rgba(17, 23, 34, 0.8);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.connection-status strong {
    display: block;
    font-size: 12px;
}

.connection-status small {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);
    font-size: 10px;
}

.status-dot {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    background: var(--success);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(61, 220, 151, 0.08),
        0 0 14px rgba(61, 220, 151, 0.8);
}

/* Main */

.main-content {
    flex: 1;
    min-width: 0;

    padding: 30px 34px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;
}

.topbar h1 {
    font-size: 26px;
    letter-spacing: -0.6px;
}

.topbar p {
    margin-top: 5px;

    color: var(--text-muted);
    font-size: 13px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.clock {
    color: var(--text-muted);

    font-family: monospace;
    font-size: 13px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile strong {
    display: block;
    font-size: 12px;
}

.profile small {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);
    font-size: 10px;
}

.avatar {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #ff9a4d
        );

    color: white;
    font-weight: 700;
}

/* Pages */

.page {
    display: none;
}

.active-page {
    display: block;
}

/* Cards */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 20px;
}

.stat-card,
.panel-card {
    background:
        linear-gradient(
            145deg,
            rgba(18, 24, 35, 0.96),
            rgba(13, 18, 27, 0.96)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.stat-card {
    padding: 20px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);

    border-color: var(--border-strong);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--text-muted);
    font-size: 12px;
}

.stat-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 15px;
}

.blue {
    background: rgba(255, 90, 54, 0.14);
    color: var(--primary);
}

.green {
    background: rgba(61, 220, 151, 0.14);
    color: var(--success);
}

.purple {
    background: rgba(166, 120, 255, 0.14);
    color: var(--purple);
}

.orange {
    background: rgba(255, 180, 84, 0.14);
    color: var(--warning);
}

.stat-card h2 {
    margin-top: 17px;

    font-size: 30px;
    letter-spacing: -1px;
}

.stat-card p {
    margin-top: 5px;

    color: var(--text-muted);
    font-size: 11px;
}

.positive {
    color: var(--success);
}

.content-grid {
    display: grid;

    grid-template-columns:
        1.35fr 1fr;

    gap: 20px;
}

.panel-card {
    padding: 22px;
}

.full-card {
    min-height: 500px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 15px;
}

.card-header p {
    margin-top: 5px;

    color: var(--text-muted);
    font-size: 11px;
}

/* Buttons */

.small-button,
.action-button,
.secondary-button {
    background: var(--surface-light);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    color: var(--text-soft);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.small-button {
    padding: 8px 12px;
    font-size: 11px;
}

.action-button {
    padding: 8px 12px;
    font-size: 11px;
}

.small-button:hover,
.action-button:hover,
.secondary-button:hover {
    background: var(--surface-hover);

    border-color: var(--primary);

    color: white;
}

/* Action dropdown */

.actions-wrapper,
.player-actions,
.action-menu-wrapper,
.server-actions {
    position: relative;
}

.actions-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 86px;

    padding: 8px 11px;

    background:
        linear-gradient(
            145deg,
            #1b2433,
            #131a25
        );

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 600;
}

.actions-button::after {
    content: "⌄";

    color: var(--text-muted);

    font-size: 12px;
}

.actions-button:hover,
.actions-button.active {
    background:
        linear-gradient(
            145deg,
            rgba(255, 90, 54, 0.22),
            rgba(255, 90, 54, 0.08)
        );

    border-color: rgba(255, 90, 54, 0.5);

    color: white;
}

.player-actions-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    z-index: 500;

    width: 180px;

    padding: 5px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background:
        linear-gradient(
            145deg,
            #1a2230,
            #111722
        );

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    box-shadow: var(--shadow-menu);

    transform: translateY(-5px) scale(0.98);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.player-actions-menu.open,
.player-actions-menu.active,
.actions-wrapper.open .player-actions-menu,
.player-actions.open .player-actions-menu,
.action-menu-wrapper.open .player-actions-menu,
.server-actions.open .player-actions-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}

.player-actions-menu button {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 10px;

    background: transparent;

    border: none;
    border-radius: 6px;

    color: var(--text-soft);

    text-align: left;

    font-size: 11px;
}

.player-actions-menu button:hover {
    background: rgba(255, 90, 54, 0.12);
    color: white;
}

.player-actions-menu .menu-separator {
    height: 1px;

    margin: 5px 3px;

    background: var(--border);
}

/* Server list */

.server-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px;

    background: rgba(25, 33, 47, 0.7);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: rgba(255, 90, 54, 0.12);

    color: var(--primary);
}

.server-info strong {
    display: block;
    font-size: 13px;
}

.server-info small {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);
    font-size: 11px;
}

.online-status {
    color: var(--success);
    font-size: 11px;
}

/* Activity */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 12px;

    font-size: 12px;
}

.activity-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: rgba(61, 220, 151, 0.1);

    color: var(--success);
}

.activity-item span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);
    font-size: 10px;
}

/* Server grid */

.servers-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.server-card {
    padding: 18px;

    background:
        linear-gradient(
            145deg,
            #192131,
            #111722
        );

    border: 1px solid var(--border);
    border-radius: 12px;
}

.server-card h3 {
    font-size: 15px;
}

.server-card p {
    margin: 7px 0 18px;

    color: var(--text-muted);
    font-size: 11px;
}

.server-card-stats {
    display: flex;
    justify-content: space-between;

    padding-top: 14px;

    border-top: 1px solid var(--border);
}

.server-card-stats div {
    text-align: center;
}

.server-card-stats strong {
    display: block;
    font-size: 17px;
}

.server-card-stats span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);
    font-size: 10px;
}

/* Tables */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
}

th {
    padding: 12px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 600;

    text-align: left;

    border-bottom: 1px solid var(--border);
}

td {
    padding: 14px 12px;

    font-size: 12px;

    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.player-name {
    font-weight: 600;
}

.player-id {
    color: var(--text-muted);
}

.badge {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 600;
}

.badge-online {
    background: rgba(61, 220, 151, 0.12);
    color: var(--success);
}

/* Inputs */

.search-input,
select {
    padding: 9px 12px;

    background: #0a0e15;

    border: 1px solid var(--border);
    border-radius: 7px;

    color: var(--text);

    outline: none;
}

.search-input {
    min-width: 220px;
}

.search-input:focus,
select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(255, 90, 54, 0.1);
}

/* Console */

.console-output {
    height: 380px;

    padding: 16px;

    overflow-y: auto;

    background: #07090d;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: #aab4c3;

    font-family: monospace;
    font-size: 12px;
}

.console-line {
    margin-bottom: 8px;
}

.console-time {
    margin-right: 6px;
    color: #586477;
}

.console-info {
    color: var(--success);
}

.console-error {
    color: var(--danger);
}

.console-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 12px;
    padding: 8px 10px;

    background: #07090d;

    border: 1px solid var(--border);
    border-radius: 9px;
}

.console-input-wrapper span {
    color: var(--success);
    font-family: monospace;
}

.console-input-wrapper input {
    flex: 1;

    background: transparent;

    border: none;
    outline: none;

    color: white;

    font-family: monospace;
}

.console-input-wrapper button {
    padding: 8px 15px;

    background: var(--primary);

    border: none;
    border-radius: 6px;

    color: white;

    font-size: 11px;
    font-weight: 600;
}

/* txAdmin */

.txadmin-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 18px;
}

.txadmin-card {
    display: flex;
    flex-direction: column;

    min-height: 220px;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            #182131,
            #10151e
        );

    border: 1px solid var(--border);
    border-radius: 14px;
}

.txadmin-card-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: rgba(255, 90, 54, 0.13);

    color: var(--primary);

    font-size: 21px;
}

.txadmin-card-content {
    flex: 1;
}

.txadmin-card h3 {
    font-size: 16px;
}

.txadmin-card p {
    margin-top: 8px;

    color: var(--text-muted);

    font-size: 12px;
    line-height: 1.6;
}

.txadmin-server-label {
    margin-top: 10px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 600;
}

.txadmin-card .action-button {
    width: 100%;

    margin-top: 20px;
    padding: 11px;

    background: rgba(255, 90, 54, 0.12);

    border-color:
        rgba(255, 90, 54, 0.3);

    color: var(--primary);
}

/* All modals */

.new-admin-modal,
.player-actions-modal,
.player-view-modal,
.spawn-vehicle-modal,
.spawn-weapon-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3, 5, 9, 0.78);

    backdrop-filter: blur(10px);
}

.new-admin-modal.hidden,
.player-actions-modal.hidden,
.player-view-modal.hidden,
.spawn-vehicle-modal.hidden,
.spawn-weapon-modal.hidden {
    display: none !important;
}

/* Modal windows */

.new-admin-window,
.player-actions-window,
.player-view-window,
.spawn-vehicle-window,
.spawn-weapon-window {
    position: relative;

    width: min(460px, 100%);

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #171e2b,
            #0f141d
        );

    border: 1px solid var(--border-strong);
    border-radius: 16px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.6);

    animation: modalOpen 0.2s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */

.close-button {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text-muted);

    font-size: 22px;
    line-height: 1;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.close-button:hover {
    background: rgba(255, 92, 112, 0.14);

    border-color:
        rgba(255, 92, 112, 0.35);

    color: var(--danger);

    transform: rotate(90deg);
}

/* Modal headers */

.new-admin-header,
.player-actions-header,
.spawn-vehicle-header,
.spawn-weapon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid var(--border);
}

.new-admin-header h3,
.player-actions-header h3,
.spawn-vehicle-header h3,
.spawn-weapon-header h3 {
    font-size: 17px;
}

.new-admin-header p,
.spawn-vehicle-header span,
.spawn-weapon-header span,
.player-actions-header span {
    display: block;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
}

/* Forms */

.new-admin-form,
.spawn-form {
    display: flex;
    flex-direction: column;

    padding: 22px;
}

.new-admin-form label,
.spawn-form label {
    margin: 12px 0 7px;

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 600;
}

.new-admin-form input,
.new-admin-form select,
.spawn-form input {
    width: 100%;

    padding: 11px 12px;

    background: #090d14;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: white;

    outline: none;
}

.new-admin-form input:focus,
.new-admin-form select:focus,
.spawn-form input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(255, 90, 54, 0.12);
}

/* Modal actions */

.new-admin-actions,
.spawn-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 18px;
}

.secondary-button,
.primary-button {
    padding: 10px 15px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;
}

.secondary-button {
    background: transparent;

    border: 1px solid var(--border);

    color: var(--text-soft);
}

.primary-button {
    background: var(--primary);

    border: 1px solid var(--primary);

    color: white;
}

.primary-button:hover {
    background: var(--primary-hover);
}

/* Create Admin — generating / error state */

.admin-generating {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    padding: 30px 10px 10px;

    text-align: center;

    color: var(--text-soft);

    font-size: 13px;
}

.admin-generating-spinner {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);

    animation: adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
    to {
        transform: rotate(360deg);
    }
}

.admin-error-text {
    color: var(--danger);

    font-size: 13px;
}

/* Create Admin — result state */

.admin-credential-notice {
    padding: 12px 14px;

    background: rgba(255, 180, 84, 0.1);

    border: 1px solid rgba(255, 180, 84, 0.3);
    border-radius: 8px;

    color: var(--warning);

    font-size: 11.5px;
    line-height: 1.5;
}

.credential-field {
    display: flex;
    gap: 8px;
}

.credential-field input {
    flex: 1;

    padding: 11px 12px;

    background: #090d14;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--success);

    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;

    outline: none;
}

.copy-button {
    padding: 0 14px;

    background: rgba(255, 90, 54, 0.12);

    border: 1px solid rgba(255, 90, 54, 0.3);
    border-radius: 8px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.copy-button:hover {
    background: rgba(255, 90, 54, 0.2);
    transform: translateY(-1px);
}

.credential-master-badge {
    display: inline-flex;
    align-items: center;

    margin-top: 16px;
    padding: 5px 11px;

    background: rgba(166, 120, 255, 0.14);

    border: 1px solid rgba(166, 120, 255, 0.35);
    border-radius: 999px;

    color: var(--purple);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* Admins list modal */

.admins-list-window {
    width: min(440px, 100%);
}

.admins-list-body {
    display: flex;
    flex-direction: column;
    gap: 8px;

    max-height: 340px;

    padding: 18px 22px;

    overflow-y: auto;
}

.admins-list-empty {
    padding: 24px 4px;

    color: var(--text-muted);

    font-size: 12.5px;
    text-align: center;
}

.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 12px 14px;

    background:
        linear-gradient(
            145deg,
            #192131,
            #111722
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.admin-list-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-list-item-info strong {
    font-size: 13px;
}

.admin-list-item-info small {
    color: var(--text-muted);

    font-size: 10.5px;
}

/* Player actions modal */

.player-actions-window {
    width: min(430px, 100%);
}

.player-actions-body {
    display: flex;
    flex-direction: column;
    gap: 18px;

    padding: 20px 22px;
}

.player-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-actions-group-label {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.player-action-button {
    width: 100%;

    min-height: 52px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;

    background:
        linear-gradient(
            145deg,
            #192131,
            #111722
        );

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    color: var(--text);

    font-size: 12px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.player-action-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.05);

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    color: var(--text-soft);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.player-action-button:hover {
    transform: translateY(-1px);

    background: var(--surface-hover);

    border-color: var(--primary);
}

.player-action-button:hover .player-action-icon {
    background: rgba(255, 90, 54, 0.14);
    color: var(--primary);
}

.player-action-button.danger:hover {
    background: rgba(255, 92, 112, 0.12);
    border-color: var(--danger);
    color: var(--danger);
}

.player-action-button.danger:hover .player-action-icon {
    background: rgba(255, 92, 112, 0.16);
    color: var(--danger);
}

.player-action-button.success:hover {
    background: rgba(61, 220, 151, 0.12);
    border-color: var(--success);
    color: var(--success);
}

.player-action-button.success:hover .player-action-icon {
    background: rgba(61, 220, 151, 0.16);
    color: var(--success);
}

.player-action-button.warning:hover {
    background: rgba(255, 180, 84, 0.12);
    border-color: var(--warning);
    color: var(--warning);
}

.player-action-button.warning:hover .player-action-icon {
    background: rgba(255, 180, 84, 0.16);
    color: var(--warning);
}

.player-action-result {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 18px 4px 6px;

    text-align: center;
}

.player-action-result-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    background: rgba(61, 220, 151, 0.14);

    border-radius: 50%;

    color: var(--success);

    font-size: 20px;
    font-weight: 700;
}

.player-action-result-title {
    color: var(--success);

    font-size: 13px;
    font-weight: 700;
}

.player-action-result-detail {
    margin-top: 6px;

    color: var(--text-soft);

    font-size: 12px;
}

.player-action-result-status {
    margin-top: 10px;

    color: var(--text-muted);

    font-size: 11px;
}

.player-actions-footer {
    display: flex;
    justify-content: center;

    padding: 14px 22px 20px;

    border-top: 1px solid var(--border);
}

/* Player view */

.player-view-window {
    width: min(900px, 95vw);
    height: min(600px, 85vh);

    display: flex;
    flex-direction: column;
}

.player-view-header {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;

    background: #171e2b;

    border-bottom: 1px solid var(--border);
}

.player-view-header h3 {
    font-size: 16px;
}

.player-view-header span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 11px;
}

.player-view-screen {
    position: relative;

    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #07090d;
}

.player-view-screen img,
.player-view-screen video,
.player-view-screen canvas {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.player-view-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    color: var(--text-muted);

    font-size: 12px;
}

.loading-spinner {
    width: 30px;
    height: 30px;

    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.player-view-footer {
    min-height: 44px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    background: #171e2b;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 11px;
}

.framework-badge {
    display: inline-flex;
    align-items: center;

    margin-left: 8px;
    padding: 2px 7px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;

    vertical-align: middle;

    border: 1px solid transparent;
}

.framework-badge-esx {
    background: rgba(79, 209, 197, 0.14);
    color: #4fd1c5;
    border-color: rgba(79, 209, 197, 0.35);
}

.framework-badge-qbcore {
    background: rgba(166, 120, 255, 0.14);
    color: var(--purple);
    border-color: rgba(166, 120, 255, 0.35);
}

.live-indicator {
    margin-left: auto;

    color: var(--danger);
    font-weight: 700;
}

.stream-status {
    display: flex;
    align-items: center;
    gap: 6px;

    font-weight: 700;
    color: var(--text-muted);

    transition: color 0.2s ease;
}

.stream-status .status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--text-muted);

    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.stream-status.connected {
    color: var(--success);
}

.stream-status.connected .status-dot {
    background: var(--success);
    box-shadow: 0 0 6px rgba(61, 220, 151, 0.65);
}

.stream-status.disconnected {
    color: var(--danger);
}

.stream-status.disconnected .status-dot {
    background: var(--danger);
    box-shadow: 0 0 6px rgba(255, 92, 112, 0.55);
}

/* Toasts */

#toast-container {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 20000;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 240px;

    padding: 13px 16px;

    background:
        linear-gradient(
            145deg,
            #1a2230,
            #111722
        );

    border: 1px solid var(--border-strong);
    border-radius: 9px;

    color: var(--text);

    font-size: 12px;

    box-shadow: var(--shadow);
}

/* Responsive */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .sidebar {
        width: 72px;
        padding: 20px 10px;
    }

    .brand {
        justify-content: center;
        padding: 0 0 28px;
    }

    .brand > div:last-child {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 12px;

        font-size: 0;
    }

    .nav-item span {
        width: auto;
        font-size: 17px;
    }

    .connection-status {
        justify-content: center;
        padding: 12px 8px;
    }

    .connection-status > div {
        display: none;
    }

    .main-content {
        padding: 22px 16px;
    }

    .topbar {
        align-items: flex-start;
    }

    .topbar-right {
        gap: 10px;
    }

    .clock {
        display: none;
    }

    .profile > div:last-child {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        align-items: flex-start;
        gap: 12px;
    }

    .search-input {
        min-width: 0;
        width: 160px;
    }

    .new-admin-actions,
    .spawn-actions {
        flex-direction: column-reverse;
    }

    .new-admin-actions button,
    .spawn-actions button {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .player-actions-window {
        width: 100%;
    }

    .player-actions-body {
        padding: 16px;
    }

    .player-action-button {
        min-height: 42px;
    }

    .player-actions-grid {
        grid-template-columns: 1fr;
    }

    .new-admin-window,
    .spawn-vehicle-window,
    .spawn-weapon-window {
        border-radius: 14px;
    }
}

/* ============================================================
   GLOBAL SERVER TARGET / SQL
   ============================================================ */

.server-target-card { margin-bottom: 20px; }
.server-target-content { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.server-target-content h3 { margin-top:5px; font-size:20px; }
.server-target-content p { margin-top:5px; color:var(--text-muted); font-size:12px; }
.eyebrow { color:var(--primary); font-size:10px; font-weight:800; letter-spacing:.12em; }
.primary-button { border:none; border-radius:var(--radius-sm); padding:11px 16px; background:linear-gradient(135deg,var(--primary),#ff7a3d); color:white; font-weight:700; }
.primary-button:hover { filter:brightness(1.1); }
.server-selection-modal { position:fixed; inset:0; z-index:5000; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(0,0,0,.72); backdrop-filter:blur(8px); }
.server-selection-dialog { width:min(620px,100%); max-height:min(720px,90vh); overflow:auto; padding:22px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-lg); box-shadow:var(--shadow-menu); }
.server-selection-header { display:flex; justify-content:space-between; gap:20px; margin-bottom:18px; }
.server-selection-header h3 { margin-top:6px; font-size:20px; }
.server-selection-header p { margin-top:5px; color:var(--text-muted); font-size:12px; }
.modal-close { width:34px; height:34px; border:1px solid var(--border); border-radius:8px; background:transparent; color:var(--text-soft); font-size:22px; }
.server-selection-list { display:grid; gap:10px; }
.server-selection-option { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--bg-soft); color:var(--text); text-align:left; }
.server-selection-option:hover, .server-selection-option.selected { border-color:rgba(91,140,255,.55); background:rgba(91,140,255,.1); }
.server-selection-option strong, .server-selection-option small { display:block; }
.server-selection-option small { margin-top:4px; color:var(--text-muted); }
.server-selection-check { color:var(--success); font-weight:800; }
.sql-toolbar { display:flex; align-items:center; gap:12px; }
#sql-server-label { color:var(--text-muted); font-size:12px; }
.sql-schema-status { margin:16px 0; color:var(--text-muted); font-size:12px; }
.sql-tables { display:grid; gap:12px; }
.sql-table-card { overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--bg-soft); }
.sql-table-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; cursor:pointer; }
.sql-table-header:hover { background:var(--surface-hover); }
.sql-table-name { font-weight:700; }
.sql-table-meta { color:var(--text-muted); font-size:11px; }
.sql-table-body { padding:0 16px 16px; border-top:1px solid var(--border); }
.sql-columns, .sql-row-preview table { width:100%; border-collapse:collapse; }
.sql-columns th, .sql-columns td, .sql-row-preview th, .sql-row-preview td { padding:8px; border-bottom:1px solid var(--border); text-align:left; font-size:11px; white-space:nowrap; }
.sql-columns th, .sql-row-preview th { color:var(--text-muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.sql-row-preview { margin-top:14px; overflow-x:auto; }
@media (max-width:700px) { .server-target-content, .server-selection-header { align-items:flex-start; flex-direction:column; } .sql-toolbar { align-items:flex-start; flex-direction:column; } }


/* SQL row/table action controls */
.sql-table-actions,
.sql-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.sql-action-button {
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
}

.sql-action-button:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.sql-action-button.primary {
    background: rgba(255, 90, 54, 0.14);
    border-color: rgba(255, 90, 54, 0.35);
}

.sql-action-button.danger {
    background: rgba(255, 92, 112, 0.12);
    border-color: rgba(255, 92, 112, 0.35);
    color: #ff9aa7;
}

.sql-table-preview td:last-child,
.sql-data-table-wrapper td:last-child {
    min-width: 190px;
}

.sql-column-fields {
    display: grid;
    gap: 10px;
}

.sql-column-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 110px auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

@media (max-width: 800px) {
    .sql-column-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   NEXUS TEAL CONTROL-SURFACE REDESIGN
   ============================================================ */

:root {
    --bg: #071012;
    --bg-soft: #0b1719;
    --sidebar: #101d20;
    --surface: #101e21;
    --surface-hover: #17292c;
    --surface-light: #182a2e;
    --border: rgba(148, 202, 195, 0.13);
    --border-strong: rgba(70, 225, 195, 0.31);
    --text: #f2f8f7;
    --text-soft: #b8c9c7;
    --text-muted: #78918f;
    --primary: #2ee5c1;
    --primary-hover: #67f1d7;
    --success: #27dc91;
    --danger: #ff687a;
    --warning: #ffca68;
    --purple: #ad7cff;
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 22px;
    --shadow-menu: 0 22px 55px rgba(0, 0, 0, 0.5);
}

* {
    scrollbar-color: rgba(46, 229, 193, 0.55) #081315;
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #081315;
}

*::-webkit-scrollbar-thumb {
    background: rgba(46, 229, 193, 0.48);
    border-radius: 999px;
}

body {
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 88% 6%, rgba(46, 229, 193, 0.08), transparent 29%),
        radial-gradient(circle at 7% 98%, rgba(66, 120, 255, 0.07), transparent 30%),
        #071012;
    color: var(--text);
}

.login-screen {
    display: none !important;
}

.panel-app,
.panel-app.authenticated {
    width: min(1560px, 100%);
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(12, 24, 26, 0.98);
    border: 1px solid rgba(151, 210, 203, 0.15);
    border-radius: 24px;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.42),
        inset 0 1px rgba(255, 255, 255, 0.025);
}

.sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 82px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 15px 20px;
    background: rgba(16, 29, 32, 0.97);
    border-right: 0;
    border-bottom: 1px solid var(--border);
    z-index: 30;
}

.brand {
    flex: 0 0 auto;
    min-width: 210px;
    gap: 11px;
    padding: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 229, 193, 0.35);
    border-radius: 11px;
    background:
        linear-gradient(145deg, rgba(46, 229, 193, 0.24), rgba(46, 229, 193, 0.08));
    box-shadow: 0 0 24px rgba(46, 229, 193, 0.14);
    color: transparent !important;
    font-size: 0 !important;
}

.brand-icon::after {
    content: "N";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
}

.brand h2 {
    font-size: 15px;
    letter-spacing: -0.25px;
}

.brand h2::first-letter {
    color: var(--primary);
}

.brand span {
    margin-top: 2px;
    color: #688482;
    font-size: 9px;
    letter-spacing: 0.03em;
}

.sidebar-navigation {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 3px;
    border: 1px solid rgba(148, 202, 195, 0.08);
    border-radius: 13px;
    background: rgba(6, 15, 17, 0.38);
}

.nav-item {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #8fa6a4;
    font-size: 11px;
    font-weight: 650;
}

.nav-item:hover {
    background: rgba(46, 229, 193, 0.07);
    border-color: rgba(46, 229, 193, 0.11);
    color: #eaf6f4;
}

.nav-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #031310;
    box-shadow: 0 7px 22px rgba(46, 229, 193, 0.17);
}

.nav-item.active::before {
    display: none;
}

.nav-item > span:first-child {
    width: 16px;
    color: currentColor;
    font-size: 0;
    text-align: center;
}

.nav-item > span:first-child::after {
    font-size: 12px;
    font-weight: 800;
}

.nav-item[data-page="overview"] > span::after { content: "◫"; }
.nav-item[data-page="servers"] > span::after { content: "▣"; }
.nav-item[data-page="players"] > span::after { content: "◎"; }
.nav-item[data-page="resources"] > span::after { content: "▦"; }
.nav-item[data-page="sql"] > span::after { content: "◉"; }
.nav-item[data-page="console"] > span::after { content: ">_"; font-size: 10px; }
.nav-item[data-page="txadmin"] > span::after { content: "⚙"; }

.sidebar-bottom {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
}

.connection-status {
    min-width: 0;
    gap: 8px;
    padding: 9px 12px;
    border-color: rgba(46, 229, 193, 0.18);
    border-radius: 10px;
    background: rgba(46, 229, 193, 0.055);
}

.connection-status strong {
    font-size: 10px;
}

.connection-status small {
    display: none;
}

.status-dot,
.topbar-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(39, 220, 145, 0.8);
}

.main-content {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 24px 28px;
    background:
        linear-gradient(180deg, rgba(6, 16, 18, 0.4), rgba(6, 13, 15, 0.15));
}

.topbar {
    min-height: 58px;
    margin-bottom: 19px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
}

.topbar h1 {
    font-size: 21px;
    letter-spacing: -0.45px;
}

.topbar p {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 10px;
}

.topbar-right {
    gap: 9px;
}

.clock,
.topbar-chip,
.topbar-server-selector {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(18, 34, 37, 0.9);
    color: #c5d4d2;
    font-size: 10px;
    font-weight: 650;
}

.clock {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.topbar-server-selector {
    background: transparent;
    border-color: rgba(126, 183, 176, 0.24);
    color: #edf7f5;
}

.topbar-server-selector::before {
    content: "↻";
    color: var(--primary);
    font-size: 15px;
}

.topbar-server-selector:hover {
    border-color: var(--primary);
    background: rgba(46, 229, 193, 0.08);
}

.profile {
    gap: 9px;
    padding-left: 5px;
}

.profile .avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(145deg, var(--primary), #16a98c);
    color: #031410;
    box-shadow: 0 0 22px rgba(46, 229, 193, 0.15);
}

.profile strong {
    font-size: 10px;
}

.profile small {
    color: var(--text-muted);
    font-size: 9px;
}

.stats-grid {
    gap: 10px;
    margin-bottom: 12px;
}

.stat-card,
.panel-card {
    background:
        linear-gradient(145deg, rgba(18, 34, 37, 0.98), rgba(13, 27, 29, 0.98));
    border-color: var(--border);
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}

.stat-card {
    min-height: 104px;
    padding: 15px 16px;
}

.stat-card:nth-child(1) {
    background: linear-gradient(145deg, rgba(18, 47, 46, 0.98), rgba(15, 35, 36, 0.98));
    border-color: rgba(46, 229, 193, 0.28);
}

.stat-card:nth-child(2) {
    background: linear-gradient(145deg, rgba(20, 43, 58, 0.98), rgba(16, 33, 44, 0.98));
    border-color: rgba(69, 142, 255, 0.27);
}

.stat-card:nth-child(3) {
    background: linear-gradient(145deg, rgba(18, 52, 39, 0.98), rgba(15, 38, 31, 0.98));
    border-color: rgba(39, 220, 145, 0.25);
}

.stat-card:nth-child(4) {
    background: linear-gradient(145deg, rgba(42, 34, 57, 0.98), rgba(31, 28, 43, 0.98));
    border-color: rgba(173, 124, 255, 0.25);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 229, 193, 0.42);
}

.stat-header {
    color: #809795;
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-icon {
    width: 30px;
    height: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    color: transparent !important;
    font-size: 0 !important;
}

.stat-icon::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: currentColor;
    font-size: 13px;
    font-weight: 900;
}

.stat-card:nth-child(1) .stat-icon { color: var(--primary) !important; }
.stat-card:nth-child(1) .stat-icon::after { content: "▣"; }
.stat-card:nth-child(2) .stat-icon { color: #62a7ff !important; }
.stat-card:nth-child(2) .stat-icon::after { content: "◎"; }
.stat-card:nth-child(3) .stat-icon { color: var(--success) !important; }
.stat-card:nth-child(3) .stat-icon::after { content: "◷"; }
.stat-card:nth-child(4) .stat-icon { color: var(--purple) !important; }
.stat-card:nth-child(4) .stat-icon::after { content: "✓"; }

.stat-card h2 {
    margin-top: 7px;
    font-size: 23px;
    letter-spacing: -0.6px;
}

.stat-card p {
    margin-top: 3px;
    color: #708684;
    font-size: 9px;
}

.panel-card {
    padding: 18px;
}

.server-target-card {
    margin-bottom: 12px;
    padding: 15px 17px;
    background:
        linear-gradient(100deg, rgba(17, 42, 41, 0.95), rgba(15, 29, 33, 0.96));
    border-color: rgba(46, 229, 193, 0.17);
}

.server-target-content h3 {
    margin-top: 3px;
    font-size: 15px;
}

.server-target-content p {
    max-width: 720px;
    margin-top: 3px;
    font-size: 9px;
}

.eyebrow {
    color: var(--primary);
    font-size: 8px;
    letter-spacing: 0.13em;
}

.primary-button,
.login-button {
    min-height: 37px;
    padding: 0 15px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--primary);
    color: #03130f;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(46, 229, 193, 0.13);
}

.primary-button:hover,
.login-button:hover {
    background: var(--primary-hover);
    filter: none;
}

.content-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    gap: 12px;
}

.card-header {
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 13px;
}

.card-header p,
.txadmin-server-label {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 9px;
}

.small-button,
.action-button,
.secondary-button,
.sql-action-button {
    min-height: 34px;
    padding: 7px 11px;
    border-color: var(--border);
    border-radius: 8px;
    background: #142529;
    color: #b9cbc8;
    font-size: 10px;
}

.small-button:hover,
.action-button:hover,
.secondary-button:hover,
.sql-action-button:hover {
    border-color: rgba(46, 229, 193, 0.45);
    background: rgba(46, 229, 193, 0.09);
    color: var(--text);
}

.server-list,
.activity-list {
    gap: 8px;
}

.server-item,
.activity-item {
    border: 1px solid rgba(145, 195, 190, 0.1);
    border-radius: 10px;
    background: rgba(8, 19, 21, 0.55);
}

.server-item {
    padding: 12px;
}

.server-icon,
.activity-icon {
    background: rgba(46, 229, 193, 0.1);
    color: var(--primary);
}

.servers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.server-card,
.txadmin-card,
.sql-table-card {
    background: rgba(8, 20, 22, 0.58);
    border-color: var(--border);
    border-radius: 12px;
}

.server-card {
    padding: 16px;
}

.full-card {
    min-height: 480px;
}

.table-wrapper {
    border: 1px solid rgba(145, 195, 190, 0.09);
    border-radius: 11px;
    background: rgba(7, 17, 19, 0.38);
}

th {
    padding: 11px 13px;
    background: rgba(21, 39, 42, 0.62);
    color: #78918f;
    border-color: var(--border);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

td {
    padding: 13px;
    border-color: rgba(148, 202, 195, 0.08);
    font-size: 11px;
}

tbody tr:hover {
    background: rgba(46, 229, 193, 0.035);
}

.badge-online {
    background: rgba(39, 220, 145, 0.1);
    color: var(--success);
}

input,
textarea,
select,
.search-input {
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #091719;
    color: var(--text);
}

input:focus,
textarea:focus,
select:focus,
.search-input:focus {
    border-color: rgba(46, 229, 193, 0.62);
    box-shadow: 0 0 0 3px rgba(46, 229, 193, 0.08);
    outline: none;
}

#console-page .panel-card {
    padding: 0;
    overflow: hidden;
    border-color: rgba(46, 229, 193, 0.18);
}

#console-page .card-header {
    min-height: 61px;
    margin: 0;
    padding: 13px 17px;
    background: rgba(17, 34, 37, 0.92);
    border-bottom: 1px solid var(--border);
}

#console-page .card-header h3::before {
    content: ">_";
    margin-right: 9px;
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.console-output {
    height: clamp(430px, 58vh, 720px);
    padding: 13px 17px;
    background: #020807;
    border: 0;
    border-radius: 0;
    color: #d2dedc;
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    line-height: 1.42;
}

.console-line {
    margin-bottom: 3px;
}

.console-time {
    color: #5d7471;
}

.console-info {
    color: #a8e8dc;
}

.console-error {
    color: #ff7a89;
}

.console-input-wrapper {
    gap: 10px;
    margin: 0;
    padding: 12px;
    background: #102024;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
}

.console-input-wrapper > span {
    display: none;
}

.console-input-wrapper input {
    min-height: 39px;
    padding: 0 13px;
    background: #0a181b;
    border: 1px solid rgba(148, 202, 195, 0.16);
    border-radius: 9px;
    font-size: 11px;
}

.console-input-wrapper button {
    min-width: 72px;
    min-height: 39px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--primary);
    color: #041511;
    font-size: 10px;
    font-weight: 800;
}

.console-input-wrapper button:hover {
    background: var(--primary-hover);
}

.txadmin-grid {
    gap: 11px;
}

.txadmin-card {
    border-color: var(--border);
}

.txadmin-card:hover {
    border-color: rgba(46, 229, 193, 0.35);
    background: rgba(46, 229, 193, 0.04);
}

.txadmin-card-icon {
    background: rgba(46, 229, 193, 0.1);
    color: var(--primary);
}

.sql-panel {
    min-height: 520px;
}

.sql-table-header:hover {
    background: rgba(46, 229, 193, 0.05);
}

.sql-table-card,
.sql-column-row {
    border-color: var(--border) !important;
    background: rgba(7, 18, 20, 0.55) !important;
}

.sql-action-button.primary {
    background: rgba(46, 229, 193, 0.1);
    border-color: rgba(46, 229, 193, 0.3);
}

.sql-action-button.danger {
    background: rgba(255, 104, 122, 0.09);
    border-color: rgba(255, 104, 122, 0.3);
    color: #ff9aa7;
}

.actions-button {
    border-color: var(--border);
    background: #142529;
    color: var(--text-soft);
}

.actions-button::after {
    content: "⌄";
    color: var(--text-muted);
}

.actions-button:hover,
.actions-button.active {
    border-color: rgba(46, 229, 193, 0.45);
    background: rgba(46, 229, 193, 0.1);
}

.player-actions-menu {
    background: #112124;
    border-color: var(--border-strong);
}

.player-actions-menu button:hover {
    background: rgba(46, 229, 193, 0.09);
}

.server-selection-modal,
.new-admin-modal,
.player-actions-modal,
.player-view-modal,
.spawn-vehicle-modal,
.spawn-weapon-modal,
.sql-modal {
    background: rgba(1, 8, 9, 0.78) !important;
    backdrop-filter: blur(12px);
}

.server-selection-dialog,
.new-admin-window,
.player-actions-window,
.player-view-window,
.spawn-vehicle-window,
.spawn-weapon-window,
.sql-modal-window {
    background: #102023 !important;
    border: 1px solid rgba(46, 229, 193, 0.2) !important;
    border-radius: 17px !important;
    box-shadow: var(--shadow-menu) !important;
}

.server-selection-option {
    background: #0a191b;
    border-color: var(--border);
}

.server-selection-option:hover,
.server-selection-option.selected {
    border-color: rgba(46, 229, 193, 0.5);
    background: rgba(46, 229, 193, 0.08);
}

.modal-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.toast {
    background: #14272a;
    border-color: rgba(46, 229, 193, 0.26);
    color: var(--text);
}

@media (max-width: 1180px) {
    body {
        padding: 12px;
    }

    .panel-app,
    .panel-app.authenticated {
        min-height: calc(100vh - 24px);
    }

    .sidebar {
        flex-wrap: wrap;
    }

    .brand {
        min-width: 180px;
    }

    .sidebar-navigation {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        padding: 0;
    }

    .panel-app,
    .panel-app.authenticated {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .sidebar {
        width: 100%;
        padding: 12px;
    }

    .brand {
        min-width: 0;
        justify-content: flex-start;
        padding: 0;
    }

    .brand > div:last-child {
        display: block;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .sidebar-bottom {
        margin-left: auto;
    }

    .connection-status {
        width: auto;
        min-width: 35px;
        justify-content: center;
        padding: 9px;
    }

    .connection-status > div:last-child {
        display: none;
    }

    .nav-item {
        justify-content: center;
        min-width: 92px;
        padding: 8px 10px;
    }

    .main-content {
        padding: 16px 12px 22px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .topbar-chip,
    .profile {
        display: none;
    }

    .clock {
        display: inline-flex;
    }

    .stats-grid,
    .content-grid,
    .servers-grid,
    .txadmin-grid {
        grid-template-columns: 1fr;
    }

    .server-target-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
        min-width: 0;
    }

    .console-output {
        height: 56vh;
    }
}

@media (max-width: 470px) {
    .brand span {
        display: none;
    }

    .topbar h1 {
        font-size: 18px;
    }

    .clock {
        display: none;
    }

    .topbar-server-selector {
        padding: 0 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   COMPACT SERVER WORKSPACE — REFERENCE-MATCHING LAYOUT
   ============================================================ */

body {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    background:
        linear-gradient(rgba(4, 12, 14, 0.9), rgba(4, 12, 14, 0.96)),
        radial-gradient(circle at 50% -20%, rgba(46, 229, 193, 0.13), transparent 45%),
        #050d0f;
}

.panel-app,
.panel-app.authenticated {
    position: relative;
    width: min(980px, 100%);
    height: min(920px, calc(100vh - 32px));
    min-height: 680px;
    margin: 0;
    border-radius: 17px;
    background: #111e21;
    box-shadow:
        0 32px 110px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(91, 151, 145, 0.05);
}

.sidebar {
    width: 100%;
    min-height: 76px;
    flex: 0 0 76px;
    padding: 17px 24px;
    border-bottom-color: rgba(148, 202, 195, 0.13);
    background: #111c1f;
}

.sidebar > .sidebar-navigation,
.sidebar > .sidebar-bottom {
    display: none !important;
}

.brand {
    min-width: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.brand-icon::after {
    content: "◆";
    color: var(--primary);
    font-size: 24px;
    text-shadow:
        9px 0 #f3faf8,
        4px 8px #f3faf8;
    transform: translate(-4px, -3px) scale(0.62);
}

.brand h2 {
    font-size: 16px;
}

.brand h2::first-letter {
    color: inherit;
}

.brand h2::after {
    content: " Control";
    color: var(--primary);
    font-weight: 600;
}

.brand span {
    display: none;
}

.main-content {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #142326;
}

.topbar {
    min-height: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.topbar > div:first-child,
.topbar-chip,
.profile {
    display: none !important;
}

.topbar-right {
    position: absolute;
    top: 18px;
    right: 23px;
    z-index: 60;
    width: auto;
    gap: 9px;
}

.clock,
.topbar-server-selector {
    min-height: 38px;
    height: 38px;
    padding: 0 14px;
    border-color: rgba(148, 202, 195, 0.16);
    border-radius: 12px;
    background: #132225;
    color: #f0f7f5;
    font-size: 10px;
}

.clock::before {
    content: "◷";
    margin-right: 2px;
    color: #a7bab7;
    font-size: 14px;
}

.topbar-server-selector {
    background: #0e181b;
    border-color: rgba(148, 202, 195, 0.24);
}

.workspace-summary {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 17px 24px 12px;
    border-bottom: 0;
    background: #142326;
}

.workspace-stat {
    min-width: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.workspace-stat > span:last-child {
    min-width: 0;
}

.workspace-stat small {
    display: block;
    margin-bottom: 3px;
    color: #8ba09d;
    font-size: 8px;
    letter-spacing: 0.04em;
}

.workspace-stat strong {
    display: block;
    overflow: hidden;
    color: #f2f8f7;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-stat-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 15px;
}

.workspace-stat-server {
    border-color: rgba(46, 229, 193, 0.3);
    background: rgba(22, 64, 58, 0.48);
}

.workspace-stat-server .workspace-stat-icon {
    background: rgba(46, 229, 193, 0.16);
    color: var(--primary);
}

.workspace-stat-players {
    border-color: rgba(72, 145, 255, 0.28);
    background: rgba(25, 52, 72, 0.62);
}

.workspace-stat-players .workspace-stat-icon {
    background: rgba(72, 145, 255, 0.16);
    color: #559cff;
}

.workspace-stat-uptime {
    border-color: rgba(39, 220, 145, 0.25);
    background: rgba(22, 60, 43, 0.6);
}

.workspace-stat-uptime .workspace-stat-icon {
    background: rgba(39, 220, 145, 0.15);
    color: var(--success);
}

.workspace-stat-framework {
    border-color: rgba(173, 124, 255, 0.28);
    background: rgba(50, 39, 67, 0.64);
}

.workspace-stat-framework .workspace-stat-icon {
    background: rgba(173, 124, 255, 0.16);
    color: var(--purple);
}

.workspace-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 24px 13px;
    color: #c3d0ce;
    font-size: 9px;
    border-bottom: 1px solid var(--border);
}

.workspace-meta > span {
    max-width: 300px;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    padding: 0 10px;
    border: 1px solid rgba(148, 202, 195, 0.11);
    border-radius: 9px;
    background: rgba(9, 21, 23, 0.38);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-meta b {
    padding: 2px 5px;
    border-radius: 5px;
    background: var(--primary);
    color: #041410;
    font-size: 8px;
}

.workspace-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin: 13px 24px;
    padding: 4px;
    border: 1px solid rgba(148, 202, 195, 0.08);
    border-radius: 12px;
    background: #1b2c30;
}

.workspace-tabs .nav-item {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    justify-content: center;
    padding: 7px 8px;
    color: #90a4a1;
    font-size: 9px;
    font-weight: 650;
}

.workspace-tabs .nav-item > span:first-child {
    display: none;
}

.workspace-tabs .nav-item:hover {
    background: rgba(46, 229, 193, 0.06);
}

.workspace-tabs .nav-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #03130f;
    box-shadow: none;
}

.stats-grid {
    display: none !important;
}

.page {
    min-height: 0;
    margin: 0 24px;
}

.active-page {
    flex: 1 1 auto;
    display: block;
    overflow: auto;
}

.server-target-card {
    display: none;
}

.page > .panel-card {
    min-height: 100%;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.content-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 10px;
}

#overview-page > .content-grid > .panel-card {
    min-height: 260px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(10, 24, 26, 0.46);
}

.card-header {
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 18px;
}

.card-header p {
    font-size: 10px;
}

.workspace-footer {
    flex: 0 0 54px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px;
    border-top: 1px solid var(--border);
    background: #111d20;
    color: #80928f;
    font-size: 10px;
}

.workspace-footer span:last-child {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(148, 202, 195, 0.16);
    border-radius: 9px;
    color: #d9e5e2;
}

.workspace-footer i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(39, 220, 145, 0.75);
}

.resource-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-toolbar .search-input {
    min-width: 250px;
}

.resource-refresh {
    width: 39px;
    padding: 0;
    font-size: 18px;
}

.resource-count {
    color: #8fa4a1;
    font-size: 11px;
    font-weight: 500;
}

.resource-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 6px;
}

.resource-tile {
    min-width: 0;
    min-height: 103px;
    padding: 13px;
    border: 1px solid rgba(148, 202, 195, 0.11);
    border-radius: 12px;
    background: rgba(10, 23, 25, 0.45);
}

.resource-tile.running {
    border-color: rgba(46, 229, 193, 0.38);
    background: rgba(26, 72, 64, 0.35);
}

.resource-tile-header,
.resource-tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.resource-tile-header strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-tile-header > span,
.resource-tile p {
    color: #89a09d;
    font-size: 9px;
}

.resource-tile p {
    overflow: hidden;
    margin: 6px 0 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8ea19f;
    font-size: 9px;
}

.resource-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #516461;
}

.resource-tile.running .resource-state i {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(46, 229, 193, 0.6);
}

.resource-action {
    min-height: 25px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #112225;
    color: #b9c9c7;
    font-size: 8px;
}

.resource-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.resource-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
}

#console-page {
    overflow: hidden;
}

#console-page .panel-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 0;
}

#console-page .card-header {
    flex: 0 0 48px;
    min-height: 48px;
    padding: 10px 14px;
}

#console-page .card-header h3 {
    font-size: 11px;
    font-weight: 500;
}

#console-page .card-header p {
    display: none;
}

.console-output {
    min-height: 240px;
    height: auto;
    flex: 1 1 auto;
    padding: 9px 15px;
    border-top: 1px solid var(--border);
    background: #010504;
    color: #ecf3f1;
    font-size: 10px;
}

.console-input-wrapper {
    flex: 0 0 58px;
    padding: 9px 12px;
}

.console-input-wrapper button {
    min-width: 45px;
    width: 45px;
    color: transparent;
    font-size: 0;
}

.console-input-wrapper button::after {
    content: "➤";
    color: #03130f;
    font-size: 15px;
}

.servers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.txadmin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sql-panel,
.full-card {
    min-height: 100%;
}

@media (max-width: 820px) {
    body {
        padding: 0;
    }

    .panel-app,
    .panel-app.authenticated {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
    }

    .sidebar {
        min-height: 70px;
        flex-basis: 70px;
        padding: 15px 16px;
    }

    .topbar-right {
        top: 16px;
        right: 15px;
        width: auto;
    }

    .workspace-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 13px 14px 10px;
    }

    .workspace-meta {
        padding: 0 14px 11px;
    }

    .workspace-meta > span:last-child {
        display: none;
    }

    .workspace-tabs {
        display: flex;
        margin: 10px 14px;
        overflow-x: auto;
    }

    .workspace-tabs .nav-item {
        min-width: 94px;
    }

    .page {
        margin: 0 14px;
    }

    .resource-card-grid,
    .txadmin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-footer {
        padding: 0 15px;
    }
}

/* ============================================================
   REMOTE RESOURCE FILES
   ============================================================ */

.workspace-tabs {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.files-panel {
    height: 100%;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.files-header {
    flex: 0 0 auto;
    margin: 0;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 168, 82, 0.12);
}

.files-header-actions,
.files-navigation,
.file-viewer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.files-header-actions .search-input {
    min-width: 260px;
}

.files-icon-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 168, 82, 0.16);
    border-radius: 9px;
    background: #171c24;
    color: #d7cec4;
    font-size: 16px;
}

.files-icon-button:hover:not(:disabled) {
    border-color: rgba(255, 126, 55, 0.55);
    background: rgba(255, 113, 61, 0.09);
    color: #ffb456;
}

.files-icon-button:disabled {
    cursor: default;
    opacity: 0.35;
}

.files-navigation {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 8px 18px;
    border-bottom: 1px solid rgba(255, 168, 82, 0.11);
    background: #151a21;
}

.file-breadcrumbs {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    color: #786f67;
}

.file-breadcrumb {
    min-width: max-content;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #c7bfb6;
    font-size: 10px;
}

.file-breadcrumb:hover,
.file-breadcrumb:last-child {
    background: rgba(255, 113, 61, 0.08);
    color: #ffb45a;
}

.files-status {
    display: none;
    flex: 0 0 auto;
    padding: 8px 18px;
    border-bottom: 1px solid rgba(255, 168, 82, 0.1);
    background: rgba(255, 177, 75, 0.055);
    color: #d8ad76;
    font-size: 9px;
}

.files-status.visible {
    display: block;
}

.files-status.error {
    background: rgba(255, 80, 80, 0.07);
    color: #ff9999;
}

.files-table {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.files-row {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        90px
        82px
        150px
        150px;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 7px 18px;
    border-bottom: 1px solid rgba(255, 168, 82, 0.08);
}

.files-table-head {
    flex: 0 0 38px;
    min-height: 38px;
    background: #171c23;
    color: #817970;
    font-size: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.files-list {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    background: #11161d;
}

.file-entry {
    color: #a79f96;
    font-size: 9px;
}

.file-entry:hover {
    background: rgba(255, 126, 55, 0.04);
}

.file-entry-open {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eee9e3;
    text-align: left;
}

.file-entry-open > span:last-child {
    min-width: 0;
}

.file-entry-open strong,
.file-entry-open small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-entry-open strong {
    font-size: 10px;
}

.file-entry-open small {
    max-width: 440px;
    margin-top: 3px;
    color: #736c65;
    font-size: 8px;
}

.file-entry-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(255, 168, 82, 0.14);
    border-radius: 8px;
    background: rgba(255, 126, 55, 0.07);
    color: #ff9a46;
    font-size: 15px;
}

.file-entry-open.directory .file-entry-icon {
    color: #ffc052;
}

.file-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.file-view-action,
.file-download-action {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(255, 168, 82, 0.14);
    border-radius: 7px;
    background: #181d25;
    color: #bcb4ab;
    font-size: 8px;
}

.file-view-action:hover,
.file-download-action:hover {
    border-color: rgba(255, 126, 55, 0.52);
    background: rgba(255, 113, 61, 0.09);
    color: #ffb95c;
}

.files-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: #7c746c;
    font-size: 10px;
}

.file-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 3, 5, 0.82);
    backdrop-filter: blur(11px);
}

.file-viewer-window {
    width: min(1050px, 100%);
    height: min(760px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 126, 55, 0.28);
    border-radius: 14px;
    background: #11151b;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.file-viewer-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 168, 82, 0.13);
    background: #171b22;
}

.file-viewer-header span {
    color: #ff8842;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.file-viewer-header h3 {
    margin-top: 4px;
    font-size: 14px;
}

.file-viewer-header p {
    max-width: 700px;
    margin-top: 3px;
    overflow: hidden;
    color: #827970;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-viewer-content {
    min-height: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 16px 19px;
    overflow: auto;
    background: #050608;
    color: #e8dfd6;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    tab-size: 4;
    white-space: pre;
}

@media (max-width: 900px) {
    .files-row {
        grid-template-columns:
            minmax(220px, 1fr)
            75px
            70px
            120px;
    }

    .files-row > :nth-child(4) {
        display: none;
    }
}

@media (max-width: 640px) {
    .files-header {
        align-items: stretch;
    }

    .files-header-actions,
    .files-header-actions .search-input {
        width: 100%;
        min-width: 0;
    }

    .files-row {
        grid-template-columns:
            minmax(170px, 1fr)
            68px
            108px;
        gap: 7px;
        padding-inline: 11px;
    }

    .files-row > :nth-child(3),
    .files-row > :nth-child(4) {
        display: none;
    }

    .file-row-actions {
        overflow-x: auto;
    }

    .file-entry-open small {
        max-width: 190px;
    }

    .file-viewer-modal {
        padding: 0;
    }

    .file-viewer-window {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }
}

@media (max-width: 520px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .panel-app,
    .panel-app.authenticated,
    .sidebar,
    .main-content,
    .workspace-summary,
    .workspace-meta,
    .workspace-tabs,
    .page,
    .page > .panel-card,
    .resource-card-grid,
    .resource-tile {
        min-width: 0;
        max-width: 100%;
    }

    .panel-app,
    .panel-app.authenticated {
        overflow: hidden;
    }

    .brand h2::after {
        display: none;
    }

    .clock {
        display: none;
    }

    .topbar-server-selector {
        max-width: 126px;
        padding: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .workspace-summary {
        gap: 7px;
    }

    .workspace-stat {
        min-height: 66px;
        padding: 9px;
    }

    .workspace-stat-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .workspace-meta > span {
        max-width: 100%;
    }

    .resource-toolbar {
        width: 100%;
    }

    .resource-toolbar .search-input {
        width: 100%;
        min-width: 0;
    }

    .resource-card-grid,
    .servers-grid,
    .txadmin-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .resource-tile {
        width: 100%;
        overflow: hidden;
    }

    .workspace-footer > span:first-child {
        display: none;
    }

    .workspace-footer {
        justify-content: flex-end;
    }
}

/* ============================================================
   FULL-SCREEN WARM ORANGE THEME
   ============================================================ */

:root {
    --bg: #090b0f;
    --bg-soft: #0d1016;
    --sidebar: #0d1117;
    --surface: #121720;
    --surface-hover: #1b212c;
    --surface-light: #1b222d;
    --border: rgba(255, 168, 82, 0.13);
    --border-strong: rgba(255, 126, 55, 0.36);
    --text: #f8f6f2;
    --text-soft: #c8c2b9;
    --text-muted: #837d76;
    --primary: #ff713d;
    --primary-hover: #ff9a47;
    --success: #ffc45d;
    --warning: #ffd36c;
    --purple: #ffad4d;
}

html,
body {
    width: 100%;
    height: 100%;
    max-width: none;
    overflow: hidden;
}

body {
    min-height: 100vh;
    padding: 0;
    background: #080a0e;
}

.panel-app,
.panel-app.authenticated {
    width: 100vw;
    max-width: none;
    height: 100vh;
    min-height: 100vh;
    max-height: none;
    border: 1px solid rgba(255, 126, 55, 0.22);
    border-radius: 0;
    background: #10141b;
    box-shadow:
        inset 0 0 0 1px rgba(255, 194, 91, 0.025),
        inset 0 1px rgba(255, 255, 255, 0.02);
}

.sidebar {
    background:
        linear-gradient(90deg, #10141b, #12161d);
    border-bottom-color: rgba(255, 153, 72, 0.16);
}

.main-content {
    background:
        radial-gradient(circle at 90% 0, rgba(255, 126, 55, 0.045), transparent 34%),
        #131820;
}

.brand-icon::after {
    color: #ff783f;
    text-shadow:
        9px 0 #ffd062,
        4px 8px #fff2ce;
}

.brand h2::after {
    color: #ff943f;
}

.clock::before,
.topbar-server-selector::before {
    color: #ffac4d;
}

.clock,
.topbar-server-selector {
    border-color: rgba(255, 165, 78, 0.2);
    background: #151a22;
}

.topbar-server-selector:hover {
    border-color: #ff7b3d;
    background: rgba(255, 113, 61, 0.09);
}

.workspace-summary {
    background: #141920;
}

.workspace-stat-server {
    border-color: rgba(255, 113, 61, 0.38);
    background:
        linear-gradient(145deg, rgba(86, 39, 24, 0.66), rgba(45, 27, 23, 0.64));
}

.workspace-stat-server .workspace-stat-icon {
    background: rgba(255, 113, 61, 0.17);
    color: #ff7740;
}

.workspace-stat-players {
    border-color: rgba(255, 153, 66, 0.32);
    background:
        linear-gradient(145deg, rgba(78, 47, 23, 0.67), rgba(43, 31, 23, 0.64));
}

.workspace-stat-players .workspace-stat-icon {
    background: rgba(255, 153, 66, 0.16);
    color: #ff9b43;
}

.workspace-stat-uptime {
    border-color: rgba(255, 187, 75, 0.31);
    background:
        linear-gradient(145deg, rgba(71, 51, 23, 0.7), rgba(40, 33, 23, 0.65));
}

.workspace-stat-uptime .workspace-stat-icon {
    background: rgba(255, 187, 75, 0.16);
    color: #ffbf4f;
}

.workspace-stat-framework {
    border-color: rgba(255, 211, 108, 0.28);
    background:
        linear-gradient(145deg, rgba(66, 53, 27, 0.72), rgba(38, 34, 26, 0.66));
}

.workspace-stat-framework .workspace-stat-icon {
    background: rgba(255, 211, 108, 0.15);
    color: #ffd36c;
}

.workspace-meta {
    border-bottom-color: rgba(255, 168, 82, 0.13);
}

.workspace-meta > span {
    border-color: rgba(255, 168, 82, 0.13);
    background: rgba(26, 24, 23, 0.58);
}

.workspace-meta b {
    background:
        linear-gradient(135deg, #ff713d, #ffc45d);
    color: #1a0b03;
}

.workspace-tabs {
    border-color: rgba(255, 168, 82, 0.1);
    background: #1b2029;
}

.workspace-tabs .nav-item:hover {
    background: rgba(255, 126, 55, 0.08);
    border-color: rgba(255, 126, 55, 0.13);
}

.workspace-tabs .nav-item.active,
.nav-item.active {
    border-color: #ff713d;
    background:
        linear-gradient(135deg, #ff6838, #ffb44f);
    color: #1a0a03;
    box-shadow: 0 8px 22px rgba(255, 113, 61, 0.13);
}

#overview-page > .content-grid > .panel-card,
.server-item,
.activity-item,
.server-card,
.txadmin-card,
.sql-table-card,
.table-wrapper {
    border-color: rgba(255, 168, 82, 0.12);
    background: rgba(13, 16, 22, 0.7);
}

.server-icon,
.activity-icon,
.txadmin-card-icon {
    background: rgba(255, 113, 61, 0.12);
    color: #ff8743;
}

.online-status,
.positive,
.console-info {
    color: #ffc45d;
}

.status-dot,
.topbar-chip-dot,
.workspace-footer i {
    background: #ffbd52;
    box-shadow: 0 0 12px rgba(255, 177, 73, 0.65);
}

.primary-button,
.login-button,
.console-input-wrapper button {
    border-color: #ff713d;
    background:
        linear-gradient(135deg, #ff6838, #ffb44f);
    color: #190a03;
    box-shadow: 0 8px 22px rgba(255, 113, 61, 0.14);
}

.primary-button:hover,
.login-button:hover,
.console-input-wrapper button:hover {
    background:
        linear-gradient(135deg, #ff7a3f, #ffc15b);
}

.small-button:hover,
.action-button:hover,
.secondary-button:hover,
.sql-action-button:hover,
.resource-action:hover {
    border-color: rgba(255, 132, 60, 0.54);
    background: rgba(255, 113, 61, 0.09);
    color: #ffbd62;
}

input:focus,
textarea:focus,
select:focus,
.search-input:focus {
    border-color: rgba(255, 132, 60, 0.66);
    box-shadow: 0 0 0 3px rgba(255, 113, 61, 0.09);
}

.resource-tile {
    border-color: rgba(255, 168, 82, 0.12);
    background: rgba(12, 16, 22, 0.65);
}

.resource-tile.running {
    border-color: rgba(255, 132, 60, 0.42);
    background:
        linear-gradient(145deg, rgba(74, 39, 24, 0.48), rgba(31, 24, 22, 0.62));
}

.resource-tile.running .resource-state i {
    background: #ffb44f;
    box-shadow: 0 0 9px rgba(255, 158, 65, 0.68);
}

.resource-action {
    border-color: rgba(255, 168, 82, 0.15);
    background: #171b22;
}

#console-page .panel-card,
.console-output,
.console-input-wrapper {
    border-color: rgba(255, 151, 67, 0.16);
}

.console-output {
    background: #030303;
}

.console-time {
    color: #9a765f;
}

.server-selection-dialog,
.new-admin-window,
.player-actions-window,
.player-view-window,
.spawn-vehicle-window,
.spawn-weapon-window,
.sql-modal-window {
    border-color: rgba(255, 126, 55, 0.27) !important;
    background: #151920 !important;
}

.server-selection-option:hover,
.server-selection-option.selected {
    border-color: rgba(255, 126, 55, 0.56);
    background: rgba(255, 113, 61, 0.09);
}

.workspace-footer {
    border-top-color: rgba(255, 168, 82, 0.14);
    background: #0f1319;
}

.workspace-footer span:last-child {
    border-color: rgba(255, 168, 82, 0.17);
}

* {
    scrollbar-color: rgba(255, 126, 55, 0.65) #0b0d11;
}

*::-webkit-scrollbar-track {
    background: #0b0d11;
}

*::-webkit-scrollbar-thumb {
    background:
        linear-gradient(#ff713d, #ffb44f);
}

@media (max-width: 820px) {
    .panel-app,
    .panel-app.authenticated {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
    }
}

/* ============================================================
   BALANCED FULL-SCREEN WORKSPACE
   Keeps the shell edge-to-edge while preventing wide displays
   from stretching the actual controls and content.
   ============================================================ */

:root {
    --workspace-max: 1600px;
    --workspace-gutter: max(
        28px,
        calc((100vw - var(--workspace-max)) / 2)
    );
    --warm-line: rgba(255, 154, 69, 0.18);
    --warm-line-strong: rgba(255, 126, 55, 0.42);
    --warm-panel:
        linear-gradient(
            145deg,
            rgba(24, 29, 38, 0.98),
            rgba(14, 18, 25, 0.98)
        );
}

body {
    font-size: 14px;
    background:
        radial-gradient(
            circle at 8% -10%,
            rgba(255, 112, 58, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 94% 8%,
            rgba(255, 194, 83, 0.08),
            transparent 28%
        ),
        #080a0e;
}

.panel-app,
.panel-app.authenticated {
    border-color: rgba(255, 137, 62, 0.3);
    background:
        linear-gradient(
            180deg,
            rgba(21, 25, 33, 0.99),
            rgba(11, 14, 20, 0.99)
        );
}

.sidebar {
    min-height: 88px;
    flex-basis: 88px;
    padding: 20px var(--workspace-gutter);
    background:
        linear-gradient(
            180deg,
            rgba(22, 27, 35, 0.99),
            rgba(15, 19, 26, 0.99)
        );
    border-bottom: 1px solid var(--warm-line);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.brand {
    gap: 15px;
    padding: 0;
}

.brand-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.brand-icon::after {
    font-size: 29px;
    transform: translate(-5px, -4px) scale(0.67);
}

.brand h2 {
    font-size: 20px;
    letter-spacing: -0.45px;
}

.main-content {
    position: relative;
    background:
        radial-gradient(
            circle at 84% 0,
            rgba(255, 119, 55, 0.065),
            transparent 34%
        ),
        linear-gradient(180deg, #141922 0%, #10141b 100%);
}

.main-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.014) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    mask-image:
        linear-gradient(to bottom, black, transparent 70%);
}

.main-content > * {
    position: relative;
    z-index: 1;
}

.topbar-right {
    position: fixed;
    top: 22px;
    right: var(--workspace-gutter);
    gap: 12px;
}

.clock,
.topbar-server-selector {
    min-height: 44px;
    height: 44px;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 650;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 8px 20px rgba(0, 0, 0, 0.15);
}

.clock::before,
.topbar-server-selector::before {
    font-size: 16px;
}

.workspace-summary,
.workspace-meta,
.workspace-tabs,
.page {
    width: calc(100% - (var(--workspace-gutter) * 2));
    max-width: var(--workspace-max);
    margin-right: auto;
    margin-left: auto;
}

.workspace-summary {
    gap: 14px;
    padding: 24px 0 15px;
    background: transparent;
}

.workspace-stat {
    position: relative;
    min-height: 100px;
    gap: 14px;
    padding: 17px 18px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.035),
        0 12px 30px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.workspace-stat::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -38px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.035;
    filter: blur(2px);
}

.workspace-stat:hover {
    z-index: 2;
    transform: translateY(-2px);
    border-color: var(--warm-line-strong);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.045),
        0 18px 38px rgba(0, 0, 0, 0.22);
}

.workspace-stat-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 13px;
    font-size: 19px;
}

.workspace-stat small {
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.workspace-stat strong {
    font-size: clamp(14px, 0.86vw, 17px);
    line-height: 1.3;
}

.workspace-meta {
    gap: 9px;
    padding: 0 0 17px;
    border-bottom: 0;
    font-size: 11px;
}

.workspace-meta > span {
    min-height: 34px;
    padding: 0 13px;
    border-color: var(--warm-line);
    border-radius: 10px;
    background: rgba(18, 20, 26, 0.74);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.workspace-meta b {
    padding: 3px 7px;
    font-size: 9px;
}

.workspace-tabs {
    min-height: 58px;
    gap: 6px;
    margin-top: 0;
    margin-bottom: 18px;
    padding: 6px;
    border-color: var(--warm-line);
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            rgba(31, 36, 46, 0.96),
            rgba(23, 27, 35, 0.96)
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 12px 28px rgba(0, 0, 0, 0.16);
}

.workspace-tabs .nav-item {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.workspace-tabs .nav-item.active {
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.2),
        0 8px 18px rgba(255, 105, 48, 0.18);
}

.page {
    margin-top: 0;
    margin-bottom: 18px;
}

.active-page {
    min-height: 0;
}

.page > .panel-card,
#overview-page > .content-grid > .panel-card {
    border: 1px solid var(--warm-line);
    border-radius: 18px;
    background: var(--warm-panel);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 18px 44px rgba(0, 0, 0, 0.18);
}

.page > .panel-card {
    padding: 26px;
}

#overview-page > .content-grid {
    height: auto;
    min-height: 370px;
    gap: 16px;
}

#overview-page > .content-grid > .panel-card {
    height: auto;
    min-height: 370px;
    padding: 26px;
}

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    min-height: 126px;
    padding: 19px 21px;
    overflow: hidden;
    border-color: var(--warm-line);
    border-radius: 16px;
    background: var(--warm-panel);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 14px 34px rgba(0, 0, 0, 0.15);
}

.stat-header {
    font-size: 12px;
    font-weight: 700;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 17px;
}

.stat-card h2 {
    margin-top: 13px;
    font-size: 28px;
}

.stat-card p {
    margin-top: 4px;
    font-size: 11px;
}

.card-header {
    margin-bottom: 21px;
}

.card-header h3 {
    font-size: 20px;
    letter-spacing: -0.35px;
}

.card-header p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.server-list,
.activity-list {
    gap: 13px;
}

#activity-list:empty {
    min-height: 230px;
    display: grid;
    place-items: center;
}

#activity-list:empty::before {
    content: "No recent server activity yet";
    max-width: 260px;
    padding: 68px 24px 0;
    color: #766f69;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 28px,
            rgba(255, 139, 64, 0.16) 0 25px,
            rgba(255, 139, 64, 0.06) 26px 38px,
            transparent 39px
        );
}

.server-item,
.activity-item {
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 161, 77, 0.1);
    border-radius: 13px;
    background: rgba(24, 29, 38, 0.7);
    font-size: 13px;
}

.server-item:hover,
.activity-item:hover {
    border-color: rgba(255, 133, 60, 0.3);
    background: rgba(255, 113, 61, 0.055);
}

.server-icon,
.activity-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 11px;
    font-size: 17px;
}

.server-info strong {
    font-size: 14px;
}

.server-info small,
.activity-item span,
.online-status {
    font-size: 11px;
}

.small-button,
.action-button,
.secondary-button,
.sql-action-button,
.resource-action {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
}

.search-input,
select {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
}

.servers-grid {
    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.server-card {
    min-height: 190px;
    padding: 22px;
    border-color: var(--warm-line);
    border-radius: 15px;
}

.server-card h3 {
    font-size: 17px;
}

.server-card p {
    font-size: 12px;
}

.server-card-stats strong {
    font-size: 20px;
}

.server-card-stats span {
    font-size: 11px;
}

.resource-toolbar {
    gap: 10px;
}

.resource-toolbar .search-input {
    min-width: min(340px, 50vw);
}

.resource-refresh {
    width: 44px;
    padding: 0;
    font-size: 20px;
}

.resource-count {
    font-size: 13px;
}

.resource-card-grid {
    grid-template-columns:
        repeat(auto-fill, minmax(285px, 1fr));
    gap: 13px;
}

.resource-tile {
    min-height: 124px;
    padding: 17px;
    border-radius: 14px;
}

.resource-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 139, 63, 0.38);
}

.resource-tile-header strong {
    font-size: 13px;
}

.resource-tile-header > span,
.resource-tile p,
.resource-state {
    font-size: 11px;
}

.resource-tile p {
    margin: 8px 0 13px;
}

.resource-state i {
    width: 7px;
    height: 7px;
}

.txadmin-grid {
    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.txadmin-card {
    min-height: 245px;
    padding: 24px;
    border-color: var(--warm-line);
}

.txadmin-card h3 {
    font-size: 18px;
}

.txadmin-card p {
    font-size: 13px;
}

table th {
    padding: 14px;
    font-size: 11px;
}

table td {
    padding: 16px 14px;
    font-size: 13px;
}

#console-page .panel-card {
    border-radius: 18px;
}

#console-page .card-header {
    flex-basis: 62px;
    min-height: 62px;
    padding: 14px 18px;
}

#console-page .card-header h3 {
    font-size: 14px;
    font-weight: 650;
}

.console-output {
    padding: 15px 18px;
    font-size: 13px;
    line-height: 1.5;
}

.console-line {
    margin-bottom: 7px;
}

.console-input-wrapper {
    flex-basis: 68px;
    min-height: 68px;
    margin-top: 0;
    padding: 11px 14px;
    border-radius: 0 0 18px 18px;
}

.console-input-wrapper input {
    font-size: 13px;
}

.console-input-wrapper button {
    width: 48px;
    min-width: 48px;
    height: 44px;
    border-radius: 10px;
}

.files-panel {
    border: 1px solid var(--warm-line) !important;
    border-radius: 18px !important;
    background: var(--warm-panel) !important;
}

.files-header {
    min-height: 82px;
    padding: 18px 21px;
}

.files-header-actions .search-input {
    width: min(360px, 32vw);
    min-width: 240px;
}

.files-icon-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 18px;
}

.files-navigation {
    min-height: 62px;
    padding: 9px 20px;
}

.file-breadcrumbs {
    gap: 8px;
}

.file-breadcrumb {
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 11px;
}

.files-status {
    padding: 10px 21px;
    font-size: 11px;
}

.files-row {
    grid-template-columns:
        minmax(320px, 1fr)
        110px
        100px
        180px
        180px;
    min-height: 62px;
    padding: 9px 21px;
    font-size: 11px;
}

.files-table-head {
    flex-basis: 44px;
    min-height: 44px;
    font-size: 10px;
    font-weight: 750;
}

.file-entry {
    font-size: 11px;
}

.file-entry-open {
    gap: 13px;
}

.file-entry-open strong {
    font-size: 12px;
}

.file-entry-open small {
    margin-top: 4px;
    font-size: 10px;
}

.file-entry-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
    font-size: 17px;
}

.file-view-action,
.file-download-action {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.file-viewer-window {
    width: min(1240px, calc(100vw - 48px));
    height: min(840px, calc(100vh - 48px));
    border-radius: 18px;
}

.file-viewer-header {
    min-height: 82px;
    padding: 15px 19px;
}

.file-viewer-header span {
    font-size: 9px;
}

.file-viewer-header h3 {
    font-size: 17px;
}

.file-viewer-header p {
    font-size: 11px;
}

.file-viewer-content {
    padding: 20px 23px;
    font-size: 13px;
    line-height: 1.55;
}

.workspace-footer {
    min-height: 66px;
    flex-basis: 66px;
    padding: 0 var(--workspace-gutter);
    border-top-color: var(--warm-line);
    font-size: 12px;
}

.workspace-footer span:last-child {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
}

.server-selection-dialog,
.new-admin-window,
.player-actions-window,
.player-view-window,
.spawn-vehicle-window,
.spawn-weapon-window,
.sql-modal-window {
    border-radius: 18px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62) !important;
}

@media (min-width: 2200px) {
    :root {
        --workspace-max: 1760px;
    }
}

@media (max-width: 1200px) {
    :root {
        --workspace-gutter: 22px;
    }

    .workspace-stat {
        min-height: 92px;
        padding: 15px;
    }

    .workspace-stat-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .workspace-tabs .nav-item {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }

    .files-row {
        grid-template-columns:
            minmax(280px, 1fr)
            85px
            85px
            140px
            150px;
    }
}

@media (max-width: 900px) {
    :root {
        --workspace-gutter: 15px;
    }

    .sidebar {
        min-height: 76px;
        flex-basis: 76px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .brand h2 {
        font-size: 17px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .topbar-right {
        top: 16px;
    }

    .clock,
    .topbar-server-selector {
        min-height: 42px;
        height: 42px;
    }

    .workspace-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 15px;
    }

    .workspace-tabs {
        display: flex;
        min-height: 56px;
        overflow-x: auto;
    }

    .workspace-tabs .nav-item {
        min-width: 106px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #overview-page > .content-grid {
        height: auto;
    }

    #overview-page > .content-grid > .panel-card {
        min-height: 260px;
    }

    .files-row {
        grid-template-columns:
            minmax(230px, 1fr)
            80px
            130px;
    }

    .files-row > :nth-child(3),
    .files-row > :nth-child(4) {
        display: none;
    }
}

@media (max-width: 620px) {
    :root {
        --workspace-gutter: 11px;
    }

    .brand h2::after {
        display: none;
    }

    .clock {
        display: none;
    }

    .topbar-server-selector {
        max-width: 145px;
    }

    .workspace-stat {
        min-height: 82px;
        gap: 10px;
        padding: 12px;
        border-radius: 13px;
    }

    .workspace-stat-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 16px;
    }

    .workspace-stat strong {
        font-size: 12px;
    }

    .workspace-meta > span {
        max-width: 100%;
    }

    .page > .panel-card,
    #overview-page > .content-grid > .panel-card {
        padding: 18px;
        border-radius: 14px;
    }

    .files-panel,
    #console-page .panel-card {
        border-radius: 14px !important;
    }

    .files-header {
        min-height: 0;
        padding: 14px;
    }

    .files-header-actions .search-input {
        width: 100%;
        min-width: 0;
    }

    .files-navigation {
        padding-right: 12px;
        padding-left: 12px;
    }

    .files-row {
        grid-template-columns:
            minmax(160px, 1fr)
            118px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .files-row > :nth-child(2),
    .files-row > :nth-child(3),
    .files-row > :nth-child(4) {
        display: none;
    }

    .workspace-footer {
        min-height: 58px;
        flex-basis: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
