:root {
    --panel-sidebar: #16213e;
    --panel-sidebar-active: #2b5cff;
    --panel-bg: #f4f6fb;
}

body { background: var(--panel-bg); }

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

.panel-sidebar {
    width: 250px; flex-shrink: 0;
    background: var(--panel-sidebar); color: #fff;
    display: flex; flex-direction: column; padding: 1.25rem 1rem;
    position: sticky; top: 0; height: 100vh;
}
.panel-sidebar .brand { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; margin-bottom: 1.5rem; display: block; }
.panel-sidebar .nav-link { color: rgba(255,255,255,.75); border-radius: .5rem; padding: .55rem .75rem; margin-bottom: 2px; }
.panel-sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.panel-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.panel-sidebar .nav-link.active { color: #fff; background: var(--panel-sidebar-active); }
.panel-sidebar .nav-section { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: rgba(255,255,255,.45); margin: 1.25rem .75rem .4rem; }
.sidebar-footer { margin-top: auto; }

.panel-main { flex: 1; padding: 2rem 2.5rem; min-width: 0; }

.card { border: 0; box-shadow: 0 1px 3px rgba(16,24,40,.08); border-radius: .75rem; }
.card-header { background: transparent; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.06); }

.stat-card .stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { color: #6b7280; font-size: .85rem; }
.stat-card .stat-icon { font-size: 1.6rem; color: var(--panel-sidebar-active); }

.table > :not(caption) > * > * { vertical-align: middle; }
.table-files td:first-child i { width: 1.4rem; display: inline-block; }

.code-editor { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem; min-height: 60vh; white-space: pre; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #16213e, #2b5cff); }
.login-card { width: 100%; max-width: 400px; }

@media (max-width: 900px) {
    .panel-shell { flex-direction: column; }
    .panel-sidebar { width: 100%; height: auto; position: static; }
    .panel-main { padding: 1.25rem; }
}

.table-plans input.form-control-sm { min-width: 60px; padding: .25rem .4rem; }
.table-plans td, .table-plans th { padding-left: .3rem; padding-right: .3rem; font-size: .75rem; }
.table-plans td:nth-child(5) input { min-width: 84px; }
.table-plans td:first-child input { min-width: 100px; }
.dns-data { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem; word-break: break-all; }
.sidebar-footer .btn { white-space: nowrap; font-size: .8rem; }
