/* Existing LiteBans custom rules, retained before the SkyMata theme. */
.avatar { margin-bottom: 5px; margin-right: 5px; border-radius: 2px; }
.avatar-name-left { display: flex; }
.litebans-header { display: block; text-align: center; }
.col-lg-12 { text-align: center; }
.navbar { position: static; font-weight: bold; }
.navbar-brand { font-weight: normal; }
.navbar-active { font-weight: bolder; }
.my-lg-0 { font-weight: lighter; }
th { text-align: center; }
table tr td { padding-left: 0; padding-right: 0; vertical-align: middle !important; text-align: center; }
p { margin-top: 2px; }
a, a:hover, a:focus { text-decoration: none; }
tr.hover { cursor: pointer; }
.litebans-check { text-align: left; }
.litebans-check-btn { margin-left: 5px; }
.litebans-check-form { margin-left: 15px; }
.litebans-check-output { margin-left: 3px; }
.litebans-pager { font-size: 30px; }
.litebans-pager-number { margin-top: 24px; text-align: center; font-size: 15px; }
.litebans-pager-left { float: left; }
.litebans-pager-right { float: right; }
.litebans-pager-active { color: darkcyan; }
.litebans-pager-inactive { visibility: hidden; pointer-events: none; cursor: default; }
.litebans-index { text-align: center; }
.litebans-index-main { font-weight: bold; }
.litebans-index-sub { font-weight: lighter; }
.badge, .badge-pill { font-weight: 100; }
.litebans-label-container { display: inline-flex; }
.litebans-label-info { margin-left: 15px; font-size: 17px; font-weight: 800; }
.litebans-label-inactive { color: #fff; background-color: #f79720; }
.litebans-label-expired { color: #fff; background-color: #777; }
.litebans-label-active, .litebans-label-permanent, .litebans-label-ipban, .litebans-label-ipmute { color: #fff; background-color: #ee5555; }
.litebans-label-history { display: inline; font-size: 16px; font-weight: 800; }
.litebans-label-ban { background-color: darkred; }
.litebans-label-mute { background-color: dimgrey; }
.litebans-label-warn { background-color: darkorange; }
.litebans-label-kick { background-color: tomato; }
.noselect { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.noalign-w { width: 0; }
.noalign-h { height: 0; }

/* SkyMata theme — Bootstrap 4 / existing LiteBans PHP interface.
   This stylesheet handles presentation; the overview uses a read-only adapter. */
:root {
    --skymata-bg: #070b1a;
    --skymata-surface: #101a32;
    --skymata-surface-soft: #0c1428;
    --skymata-text: #f8fbff;
    --skymata-muted: #aab7d6;
    --skymata-line: rgba(155, 178, 231, .18);
    --skymata-blue: #41a9ff;
    --skymata-purple: #9f6cff;
    --skymata-cyan: #61e7ff;
    color-scheme: dark;
}
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    padding: 0 0 48px;
    background: radial-gradient(circle at 80% 0, rgba(94, 74, 255, .16), transparent 34rem),
                radial-gradient(circle at 0 40%, rgba(32, 169, 255, .07), transparent 30rem), var(--skymata-bg);
    color: var(--skymata-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-shadow: none;
}
* { box-sizing: border-box; }
body > br { display: none; }
body > .container, body > header[role="banner"] {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 0;
}
body > header[role="banner"] { border-bottom: 1px solid var(--skymata-line); }
body > .container { margin-top: 32px; }
a { color: var(--skymata-cyan); }
a:hover, a:focus { color: #b0f4ff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
tr.hover:focus-visible {
    outline: 2px solid var(--skymata-cyan);
    outline-offset: 4px;
}
h1, h2, h3, h4 { color: var(--skymata-text); font-weight: 800; letter-spacing: -.035em; text-shadow: none; }
p { color: var(--skymata-muted); }

/* The existing menu, counts, collapse button and attribution remain intact. */
header .navbar.bg-primary {
    position: static !important;
    min-height: 86px;
    padding: 18px 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}
header .navbar > .container { width: 100%; max-width: none; padding: 0; gap: 22px; }
header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--skymata-text) !important;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-shadow: none;
}
header .navbar-brand::before {
    content: "✦";
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(97, 231, 255, .5);
    background: rgba(65, 169, 255, .1);
    color: var(--skymata-cyan);
    box-shadow: 0 0 24px rgba(65, 169, 255, .18);
    transform: rotate(45deg);
}
header .navbar-collapse { border: 0; box-shadow: none; }
#litebans-navbar .navbar-nav { gap: 5px; align-items: center; }
#litebans-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--skymata-muted);
    font-size: 13px;
    font-weight: 750;
    text-shadow: none;
}
#litebans-navbar .nav-link:hover,
#litebans-navbar .nav-link:focus-visible { color: var(--skymata-text); background: rgba(65, 169, 255, .08); }
#litebans-navbar .active > .nav-link,
#litebans-navbar .navbar-active > .nav-link {
    border-color: rgba(100, 159, 255, .3);
    background: linear-gradient(120deg, rgba(65, 169, 255, .16), rgba(159, 108, 255, .12));
    color: var(--skymata-text);
}
#litebans-navbar .badge-secondary {
    padding: 2px 7px;
    border: 1px solid rgba(97, 231, 255, .18);
    border-radius: 99px;
    background: rgba(65, 169, 255, .1);
    color: #b5e8ff;
    font-size: 10px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
#litebans-navbar .my-lg-0 { margin-left: auto; }
#litebans-navbar .my-lg-0 a { color: var(--skymata-muted); font-size: 11px; white-space: nowrap; }
header .navbar-toggler { min-width: 44px; min-height: 44px; border: 1px solid var(--skymata-line); border-radius: 10px; background: var(--skymata-surface); }

/* Landing page and section titles. */
.jumbotron {
    margin: 0 0 28px;
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid var(--skymata-line);
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0, rgba(119, 91, 255, .2), transparent 65%),
                linear-gradient(135deg, #132540, #10182e);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
.litebans-index { text-align: left; }
.litebans-index-main::before, .litebans-header::before {
    content: "SKYMATA · PUNISHMENT RECORDS";
    display: block;
    margin-bottom: 16px;
    color: var(--skymata-cyan);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.6;
    letter-spacing: .16em;
}
.litebans-index-main h2 { max-width: 760px; margin: 0 0 20px; font-size: clamp(30px, 4.7vw, 54px); line-height: 1.12; }
.litebans-index-sub p { margin: 0; max-width: 650px; font-size: 16px; font-weight: 400; }
.litebans-header {
    margin: 12px 0 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--skymata-text);
    text-align: left;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.2;
}

/* Player search retains LiteBans' own form and result behavior. */
.row.litebans-check { margin-bottom: 22px; }
.litebans-check-form { margin-left: 15px; }
.litebans-check-form .form-inline { gap: 10px; }
.form-control {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #31435f;
    border-radius: 11px;
    background: var(--skymata-surface-soft);
    color: var(--skymata-text);
    box-shadow: none;
    font: inherit;
}
.form-control::placeholder { color: #a0afca; opacity: 1; }
.form-control:focus { border-color: var(--skymata-blue); background: #101c33; color: var(--skymata-text); box-shadow: 0 0 0 3px rgba(65, 169, 255, .14); }
.btn { min-height: 44px; padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 800; text-shadow: none; }
.btn-primary, .btn-primary:focus {
    border: 1px solid #6288df;
    background: linear-gradient(135deg, #4eafff, #aa7bff);
    color: #071225;
    box-shadow: 0 8px 24px rgba(66, 115, 235, .2);
}
.btn-primary:hover, .btn-primary:active { border-color: #9acbff; background: linear-gradient(135deg, #79c3ff, #c2a0ff); color: #071225; }
.litebans-check-btn { margin-left: 0; }
.litebans-check-output { margin-top: 12px; color: var(--skymata-muted); }
.alert { padding: 16px 20px; border: 1px solid var(--skymata-line); border-radius: 12px; box-shadow: none; }
.alert-danger { background: #321d2b; color: #ffc1cf; border-color: #734052; }
.alert-warning { background: #30271b; color: #f8d691; border-color: #655032; }
.alert-success { background: #102c29; color: #9eedc8; border-color: #286455; }
.alert-info { background: #122a40; color: #b2e4ff; border-color: #31587e; }

/* Full records remain visible: no columns or status labels are removed. */
.table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--skymata-line);
    border-radius: 16px;
    background: var(--skymata-surface-soft);
    color: var(--skymata-text);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
}
.table thead th {
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid #2b3b59;
    background: linear-gradient(110deg, #152844, #211c3b);
    color: #c6d7f2;
    font-size: 10px;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .1em;
    white-space: nowrap;
}
.table tbody td, .table tbody th {
    padding: 17px 18px;
    border: 0;
    border-top: 1px solid rgba(155, 178, 231, .1);
    color: #d2ddf2;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.table tbody tr:first-child td, .table tbody tr:first-child th { border-top: 0; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(116, 145, 211, .035); }
.table tbody tr:hover { background: rgba(65, 169, 255, .075); }
.table a { color: #b6ddff; font-weight: 650; }
.table a:hover { color: var(--skymata-cyan); text-decoration: underline; text-underline-offset: 3px; }
.table td p { color: inherit; margin-bottom: 0; }
.table .avatar { flex-shrink: 0; margin: 0 10px 0 0; border: 1px solid #354c70; border-radius: 9px; background: #172640; image-rendering: pixelated; }
.avatar-name-left { align-items: center; }
.avatar-name { color: #edf3ff; font-weight: 750; }

/* Keep distinct meanings for active, removed, expired and punishment types. */
.badge, .badge-pill { padding: 5px 10px; border-radius: 99px; font-weight: 750; text-shadow: none; }
.litebans-label-container { width: auto; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 6px; }
.litebans-label-info { margin-left: 8px; font-size: 12px; }
.litebans-label-active, .litebans-label-permanent, .litebans-label-ipban, .litebans-label-ipmute, .litebans-label-ban { background: #552438; color: #ffc7d4; }
.litebans-label-inactive { background: #43361e; color: #ffe0a1; }
.litebans-label-expired { background: #2b354c; color: #d5dff2; }
.litebans-label-mute { background: #392b59; color: #e0cdff; }
.litebans-label-warn { background: #4a351a; color: #ffdf9f; }
.litebans-label-kick { background: #173d53; color: #b7ebff; }
.litebans-label-history { font-size: 12px; font-weight: 750; }

.litebans-pager { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; margin-top: 6px; border: 1px solid var(--skymata-line); border-radius: 11px; background: var(--skymata-surface); font-size: 22px; }
.litebans-pager-active { color: var(--skymata-cyan); }
.litebans-pager-active:hover { background: #1a2b46; border-color: var(--skymata-blue); }
.litebans-pager-inactive { visibility: hidden; pointer-events: none; }
.litebans-pager-number { color: var(--skymata-muted); font-size: 12px; font-weight: 650; }
.text-muted, small { color: var(--skymata-muted) !important; }
hr { border-top-color: var(--skymata-line); }

@media (max-width: 991.98px) {
    header .navbar { min-height: 78px; }
    #litebans-navbar { padding-top: 14px; }
    #litebans-navbar .navbar-nav { align-items: stretch; }
    #litebans-navbar .nav-link { width: 100%; justify-content: space-between; }
    #litebans-navbar .my-lg-0 { margin: 12px 0 0 !important; }
}
@media (max-width: 760px) {
    body > .container, body > header[role="banner"] { width: calc(100% - 28px); }
    body > .container { margin-top: 24px; }
    .table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { min-width: 130px; }
    .table thead th, .table tbody td, .table tbody th { padding: 14px; }
    .table tbody td:nth-child(3) { min-width: 220px; }
    .litebans-check-form { max-width: calc(100% - 30px); }
    .litebans-check-form .form-inline { display: flex; flex-wrap: wrap; }
    .litebans-check-form .form-group { flex: 1 1 180px; margin-bottom: 0; }
    .litebans-check-form .form-control { width: 100%; }
    .litebans-index-main h2 { font-size: 32px; }
    .litebans-label-info { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Shared-site header sits above these LiteBans-only section tabs. */
.sky-punishment-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; width: min(1180px, calc(100% - 40px)); margin: 36px auto 0; padding-bottom: 15px; border-bottom: 1px solid var(--skymata-line); }
.sky-punishment-navigation nav { min-width: 0; max-width: 100%; }
.sky-punishment-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.sky-punishment-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--skymata-muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.sky-punishment-tabs a:hover { color: var(--skymata-text); background: #162641; }
.sky-punishment-tabs a[aria-current] { color: #a2eaff; border-color: #31506d; background: #172e46; }
.sky-tab-count { padding: 2px 6px; border-radius: 5px; background: rgba(145,174,221,.1); color: #b7c8e2; font-size: 10px; }
.sky-litebans-credit { margin-left: auto; color: #9eacc5; font-size: 11px; white-space: nowrap; }

/* Overview: real database totals and a newest-first combined feed. */
body > .container.sky-overview-main { margin-top: 30px; padding-bottom: 60px; }
.sky-overview-intro { margin-bottom: 26px; }
.sky-overview-intro > p { margin-bottom: 8px; color: var(--skymata-cyan); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.sky-overview-intro h1 { margin: 0; color: var(--skymata-text); font-size: clamp(26px, 4vw, 38px); font-weight: 850; letter-spacing: -.035em; line-height: 1.2; }
.sky-punishment-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.sky-punishment-metric { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 20px 22px; border: 1px solid var(--skymata-line); border-radius: 15px; background: linear-gradient(135deg, #13243c, #191c33); color: var(--skymata-text); box-shadow: 0 12px 28px rgba(0,0,0,.14); text-decoration: none; }
.sky-punishment-metric::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(#61e7ff, #aa7bff); }
.sky-punishment-metric:hover { border-color: #51668f; color: #fff; text-decoration: none; background: linear-gradient(135deg, #182d49, #24223d); }
.sky-punishment-metric > span { color: var(--skymata-muted); font-size: 12px; }
.sky-punishment-metric > strong { font-size: clamp(24px, 3vw, 30px); font-weight: 850; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sky-overview-search { margin-bottom: 30px; }
.sky-overview-search > label { margin-bottom: 8px; color: #b8c6df; font-size: 12px; font-weight: 700; }
.sky-overview-search > div { display: flex; align-items: center; gap: 10px; }
.sky-overview-search input { flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #31435f; border-radius: 11px; background: var(--skymata-surface-soft); color: var(--skymata-text); font: inherit; font-size: 14px; }
.sky-overview-search input::placeholder { color: #96a6c3; opacity: 1; }
.sky-overview-search input:focus { border-color: var(--skymata-blue); outline: 2px solid rgba(97,231,255,.45); outline-offset: 2px; }
.sky-overview-search button { min-height: 48px; }
.sky-search-clear { padding: 12px 4px; font-size: 13px; }
.sky-recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.sky-recent-heading h2 { margin: 0 0 6px; color: var(--skymata-text); font-size: 21px; font-weight: 800; letter-spacing: -.025em; }
.sky-recent-heading h2::before { content: '◇'; padding-right: 10px; color: var(--skymata-cyan); }
.sky-recent-heading p, .sky-recent-heading > span { margin: 0; color: var(--skymata-muted); font-size: 11px; }
.sky-recent-heading > span { flex-shrink: 0; }
.sky-overview-table-wrap { overflow-x: auto; border: 1px solid var(--skymata-line); border-radius: 15px; background: var(--skymata-surface-soft); box-shadow: 0 16px 42px rgba(0,0,0,.16); -webkit-overflow-scrolling: touch; }
.table.sky-overview-table { display: table; width: 100%; min-width: 920px; max-width: none; margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
.sky-overview-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.table.sky-overview-table thead th { padding: 16px; font-size: 10px; }
.table.sky-overview-table tbody td { padding: 18px 16px; font-size: 12px; }
.table.sky-overview-table th, .table.sky-overview-table td { min-width: 0; }
.table.sky-overview-table td:nth-child(3) { min-width: 240px; }
.table.sky-overview-table td:nth-child(4), .table.sky-overview-table td:nth-child(5) { min-width: 155px; font-size: 11px; }
.sky-overview-table .sky-punishment-player { display: flex; align-items: center; gap: 10px; min-width: 155px; color: #ecf3ff; font-size: 12px; font-weight: 750; }
.sky-player-avatar { display: block; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; background: #21334e; image-rendering: pixelated; }
.sky-punishment-type, .sky-punishment-status { display: inline-block; padding: 4px 9px; border-radius: 7px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.sky-type-ban { background: #442639; color: #ffc2d4; }
.sky-type-mute { background: #31284b; color: #dcc7ff; }
.sky-type-kick { background: #173b4d; color: #a8e5ff; }
.sky-type-warn { background: #3b321f; color: #f8d69a; }
.sky-status-active { background: #133b32; color: #9debc9; }
.sky-status-issued { background: #1a324f; color: #b7d9ff; }
.sky-status-expired, .sky-status-inactive { background: #283148; color: #c3cee5; }
.sky-status-removed { background: #352c48; color: #d5c3f2; }
.sky-overview-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.sky-overview-pagination a, .sky-overview-pagination span[aria-disabled] { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--skymata-line); border-radius: 10px; background: #12213a; color: #c4dcff; font-size: 12px; font-weight: 750; }
.sky-overview-pagination a:hover { border-color: #5074a6; background: #1a2e4b; text-decoration: none; }
.sky-overview-pagination span[aria-disabled] { background: transparent; color: #7d8ca8; }
.sky-overview-pagination > span:not([aria-disabled]) { color: var(--skymata-muted); font-size: 11px; }
.sky-punishments-empty { padding: 40px 24px; border: 1px solid var(--skymata-line); border-radius: 15px; background: #101c31; text-align: center; }
.sky-punishments-empty h3 { font-size: 19px; color: #e8f1ff; }
.sky-punishments-empty p { max-width: 520px; margin: 10px auto 0; color: var(--skymata-muted); font-size: 13px; }
.sky-overview-table-wrap:focus-visible { outline: 2px solid var(--skymata-cyan); outline-offset: 4px; }
@media (max-width: 900px) {
    .sky-punishment-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sky-litebans-credit { margin-left: 12px; }
}
@media (max-width: 760px) {
    .sky-punishment-navigation { width: calc(100% - 28px); margin-top: 24px; gap: 10px; }
    .sky-punishment-tabs { gap: 3px; }
    .sky-punishment-tabs a { padding: 9px 10px; font-size: 12px; }
    .sky-punishment-metrics { gap: 10px; }
    .sky-punishment-metric { padding: 18px; }
    .sky-overview-search > div { flex-wrap: wrap; }
    .sky-overview-search input { flex-basis: 100%; }
    .sky-recent-heading { align-items: flex-start; gap: 10px; }
    .sky-recent-heading h2 { font-size: 18px; }
    .sky-recent-heading > span { padding-top: 3px; }
    .sky-overview-pagination a, .sky-overview-pagination span[aria-disabled] { padding: 10px; }
}
