:root {
    --lb-bg: #f5f5f7;
    --lb-bg-accent: #e9eef8;
    --lb-surface: #ffffff;
    --lb-surface-muted: #f2f3f6;
    --lb-border: rgba(0, 0, 0, 0.08);
    --lb-text: #1d1d1f;
    --lb-text-muted: #6e6e73;
    --lb-accent: #0a84ff;
    --lb-accent-soft: rgba(10, 132, 255, 0.12);
    --lb-danger: #ff453a;
    --lb-warning: #ff9f0a;
    --lb-neutral: #8e8e93;
    --lb-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

body {
    background: radial-gradient(1200px 600px at 20% -10%, #ffffff 0%, var(--lb-bg) 50%, var(--lb-bg-accent) 100%);
    color: var(--lb-text);
    font-family: "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", "Noto Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

p {
    margin-top: 6px;
    color: var(--lb-text-muted);
}

a,
a:hover,
a:focus {
    color: var(--lb-text);
    text-decoration: none;
}

/* header */
.litebans-header {
    display: block;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lb-text);
    margin: 18px 0 22px;
}

.col-lg-12 {
    text-align: center;
}

/* navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--lb-border);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--lb-text-muted);
    transition: background-color 180ms ease, color 180ms ease;
}

.navbar-active .nav-link {
    color: var(--lb-accent);
    background: var(--lb-accent-soft);
}

.navbar-nav .nav-link:hover {
    color: var(--lb-text);
    background: rgba(0, 0, 0, 0.04);
}

.my-lg-0 {
    font-weight: 400;
    color: var(--lb-text-muted);
}

/* avatars */
.avatar {
    margin-bottom: 6px;
    margin-right: 8px;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.avatar-name-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* tables */
table {
    background: var(--lb-surface);
    border-radius: 18px;
    border: 1px solid var(--lb-border);
    overflow: hidden;
    box-shadow: var(--lb-shadow);
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lb-text-muted);
    background: var(--lb-surface-muted);
    border-bottom: 1px solid var(--lb-border);
}

table tr td {
    padding: 14px 10px;
    vertical-align: middle !important;
    text-align: center;
    color: var(--lb-text);
}

table.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafb;
}

table.table-bordered td,
table.table-bordered th {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

tr.hover {
    cursor: pointer;
    transition: background-color 180ms ease;
}

tr.hover:hover {
    background-color: rgba(10, 132, 255, 0.06);
}

/* buttons + inputs */
.form-control {
    border-radius: 12px;
    border: 1px solid var(--lb-border);
    padding: 10px 14px;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--lb-accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.btn-primary {
    background: var(--lb-accent);
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(10, 132, 255, 0.25);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(10, 132, 255, 0.28);
}

/* check form */
.litebans-check {
    text-align: left;
}

.litebans-check-btn {
    margin-left: 8px;
}

.litebans-check-form {
    margin-left: 0;
}

.litebans-check-output {
    margin-left: 3px;
}

/* pager */
.litebans-pager {
    font-size: 26px;
}

.litebans-pager-number {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--lb-text-muted);
}

.litebans-pager-left {
    float: left;
}

.litebans-pager-right {
    float: right;
}

.litebans-pager-active {
    color: var(--lb-accent);
}

.litebans-pager-inactive {
    visibility: hidden;
    pointer-events: none;
    cursor: default;
}

/* index.php */
.litebans-index {
    text-align: center;
}

.litebans-index-main {
    font-weight: 600;
    color: var(--lb-text);
}

.litebans-index-sub {
    font-weight: 400;
    color: var(--lb-text-muted);
}

/* info.php */
.badge, .badge-pill {
    font-weight: 600;
    background: var(--lb-accent-soft);
    color: var(--lb-accent);
    border: 1px solid rgba(10, 132, 255, 0.2);
    padding: 6px 10px;
    border-radius: 999px;
}

.litebans-label-container {
    display: inline-flex;
}

.litebans-label-info {
    margin-left: 12px;
    font-size: 16px;
    font-weight: 600;
}

.litebans-label-inactive {
    color: #fff;
    background-color: var(--lb-warning);
}

.litebans-label-expired {
    color: #fff;
    background-color: var(--lb-neutral);
}

.litebans-label-active,
.litebans-label-permanent,
.litebans-label-ipban,
.litebans-label-ipmute {
    color: #fff;
    background-color: var(--lb-danger);
}

/* history.php */
.litebans-label-history {
    display: inline;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 12px;
    color: #fff;
}

.litebans-label-ban {
    background-color: var(--lb-danger);
}

.litebans-label-mute {
    background-color: var(--lb-neutral);
}

.litebans-label-warn {
    background-color: var(--lb-warning);
}

.litebans-label-kick {
    background-color: #ff6b4a;
}

/* alert */
.alert {
    border-radius: 16px;
    border: 1px solid var(--lb-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* subtle motion */
.container,
table,
.litebans-header {
    animation: lb-fade-up 420ms ease both;
}

@keyframes lb-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* prevent mouse selection */
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* prevent alignment */
.noalign-w {
    width: 0;
}

.noalign-h {
    height: 0;
}
