/* ══════════════════════════════════════════
   Ultimate Network - LiteBans Theme
   Kleuren: Rood (#cc0000), Zwart, Wit
   ══════════════════════════════════════════ */

/* ── Base ── */
body {
    background-color: #111 !important;
    color: rgba(255,255,255,0.75) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    scrollbar-color: #cc0000 #0a0a0a;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #cc0000; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #e60000; }

/* ── Old Bootstrap navbar hidden (replaced by custom subnav in header.php) ── */
header[role="banner"] { display: none !important; }

/* ── Badges ── */
.litebans-badge-custom {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 3px 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

/* Copyright link */
.my-lg-0 a {
    color: #555 !important;
    font-size: 11px !important;
}

.my-lg-0 a:hover {
    color: #888 !important;
}

/* ── Jumbotron / Welcome ── */
.jumbotron {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 14px !important;
    color: rgba(255,255,255,0.75) !important;
    padding: 30px !important;
    backdrop-filter: blur(10px) !important;
}

.jumbotron h2 {
    color: #cc0000 !important;
}

.litebans-index-sub p {
    color: #999 !important;
}

/* ── Tables ── */
.table {
    color: rgba(255,255,255,0.75) !important;
    background-color: transparent !important;
}

.table thead th {
    background: rgba(255,255,255,0.03) !important;
    color: #cc0000 !important;
    border-bottom: 2px solid #cc0000 !important;
    border-top: none !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 8px !important;
    font-weight: 700 !important;
}

.table td {
    background-color: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.04) !important;
    color: rgba(255,255,255,0.75) !important;
    padding: 10px 8px !important;
    vertical-align: middle !important;
}

.table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(255,255,255,0.03) !important;
}

.table-striped tbody tr:nth-of-type(even) td {
    background-color: rgba(255,255,255,0.01) !important;
}

tr.hover:hover td {
    background-color: rgba(255,255,255,0.05) !important;
    cursor: pointer;
}

.table-bordered {
    border-color: rgba(255,255,255,0.06) !important;
}

.table-bordered td,
.table-bordered th {
    border-color: rgba(255,255,255,0.06) !important;
}

/* ── Links ── */
a {
    color: #cc0000 !important;
}

a:hover {
    color: #e60000 !important;
}

.table a {
    color: rgba(255,255,255,0.75) !important;
}

.table a:hover {
    color: #cc0000 !important;
}

/* ── Info page labels ── */
.litebans-label-active {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.litebans-label-permanent {
    background: linear-gradient(180deg, #cc0000 0%, #880000 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.litebans-label-expired {
    background: linear-gradient(180deg, #555 0%, #333 100%) !important;
    color: #ccc !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.litebans-label-inactive {
    background: linear-gradient(180deg, #8b6914 0%, #6b4f0f 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.litebans-label-ipban,
.litebans-label-ipmute {
    background: linear-gradient(180deg, #aa0000 0%, #770000 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

/* History labels */
.litebans-label-ban {
    background: linear-gradient(180deg, #cc0000 0%, #880000 100%) !important;
}

.litebans-label-mute {
    background: linear-gradient(180deg, #555 0%, #333 100%) !important;
}

.litebans-label-warn {
    background: linear-gradient(180deg, #cc7700 0%, #995500 100%) !important;
}

.litebans-label-kick {
    background: linear-gradient(180deg, #cc3300 0%, #992200 100%) !important;
}

.badge {
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
}

/* ── Info page ── */
.card {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.75) !important;
}

.card-header {
    background: rgba(255,255,255,0.03) !important;
    border-bottom: 2px solid #cc0000 !important;
    color: #cc0000 !important;
    font-weight: 700 !important;
}

.card-body {
    background: rgba(255,255,255,0.02) !important;
}

/* ── Pager ── */
.litebans-pager a {
    color: #cc0000 !important;
    font-size: 28px !important;
}

.litebans-pager a:hover {
    color: #e60000 !important;
}

.litebans-pager-active {
    color: #cc0000 !important;
}

.litebans-pager-number {
    color: #888 !important;
}

/* ── Check form ── */
.form-control {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.75) !important;
    border-radius: 8px !important;
}

.form-control:focus {
    background: rgba(255,255,255,0.05) !important;
    border-color: #cc0000 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(204, 0, 0, 0.15) !important;
}

.btn-primary {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%) !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 0 rgba(0, 0, 0, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #dd1111 0%, #aa0000 100%) !important;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* ── Alerts ── */
.alert {
    background: rgba(204,0,0,0.06) !important;
    border-color: rgba(204,0,0,0.15) !important;
    color: rgba(255,255,255,0.75) !important;
}

.alert-link {
    color: #cc0000 !important;
}

/* ── Container ── */
.container {
    max-width: 1500px !important;
}

/* ── Header title ── */
.litebans-header h1 {
    color: #cc0000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* ── Avatar ── */
.avatar {
    border-radius: 6px !important;
    border: 2px solid rgba(255,255,255,0.08) !important;
}

.avatar-name {
    color: rgba(255,255,255,0.75) !important;
    font-size: 12px !important;
}

/* ── Back to forum link ── */
.litebans-back-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

.litebans-back-link:hover {
    background: linear-gradient(180deg, #dd1111 0%, #aa0000 100%);
    color: #fff;
}

/* ── Page background pattern ── */
.page-header {
    border-bottom-color: #cc0000 !important;
}

/* ── Modal ── */
.modal-content {
    background: rgba(20,20,20,0.95) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(16px) !important;
}

.modal-header {
    border-bottom-color: rgba(255,255,255,0.06) !important;
}

/* ── Dropdown ── */
.dropdown-menu {
    background: rgba(20,20,20,0.95) !important;
    border-color: rgba(255,255,255,0.06) !important;
}

.dropdown-item {
    color: rgba(255,255,255,0.75) !important;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #cc0000 !important;
}

/* ── Pagination ── */
.page-item .page-link {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #cc0000 !important;
}

.page-item .page-link:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #e60000 !important;
}

.page-item.active .page-link {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%) !important;
    border-color: #880000 !important;
    color: #fff !important;
}

/* ── Selection ── */
::selection {
    background: rgba(204, 0, 0, 0.3);
    color: #fff;
}

/* ══════════════════════════════════════════
   Table Scroll Wrapper (all screen sizes)
   ══════════════════════════════════════════ */

.table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
}

.table-scroll-wrap::-webkit-scrollbar {
    height: 6px;
}
.table-scroll-wrap::-webkit-scrollbar-track {
    background: #111;
    border-radius: 3px;
}
.table-scroll-wrap::-webkit-scrollbar-thumb {
    background: #cc0000;
    border-radius: 3px;
}

body.light-mode .table-scroll-wrap::-webkit-scrollbar-track {
    background: #e0d8d0;
}

/* ══════════════════════════════════════════
   Mobile Responsive
   ══════════════════════════════════════════ */

@media (max-width: 992px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .table {
        min-width: 650px !important;
    }
}

@media (max-width: 768px) {
    .table {
        font-size: 12px !important;
    }

    .table thead th {
        padding: 10px 6px !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .table td {
        padding: 8px 6px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* Cards */
    .card {
        border-radius: 8px !important;
        margin-bottom: 14px !important;
    }

    .card-header {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    .card-body {
        padding: 14px !important;
    }

    /* Jumbotron */
    .jumbotron {
        padding: 20px !important;
        margin-bottom: 16px !important;
    }

    .jumbotron h2 {
        font-size: 20px !important;
    }

    /* Header */
    .litebans-header h1 {
        font-size: 18px !important;
        letter-spacing: 0.5px !important;
    }

    /* Avatars */
    .avatar {
        width: 24px !important;
        height: 24px !important;
    }

    /* Pager */
    .litebans-pager {
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center !important;
    }

    .litebans-pager a {
        font-size: 20px !important;
    }

    /* Forms */
    .form-control {
        font-size: 16px !important;
    }

    .btn-primary {
        width: 100% !important;
        padding: 10px !important;
    }

    /* Info page columns stack */
    .col-lg-4, .col-lg-8,
    .col-md-4, .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Navbar */
    .litebans-navbar-custom {
        padding: 0 8px !important;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }

    /* Badges */
    .badge {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    /* Back link */
    .litebans-back-link {
        bottom: 12px !important;
        right: 12px !important;
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

@media (max-width: 480px) {
    .litebans-header h1 {
        font-size: 16px !important;
    }

    .jumbotron h2 {
        font-size: 17px !important;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 8px 8px !important;
        font-size: 10px !important;
    }

    .table {
        min-width: 550px !important;
        font-size: 11px !important;
    }
}

/* ══════════════════════════════════════════
   Light Mode
   ══════════════════════════════════════════ */

body.light-mode {
    background-color: #f5f0eb !important;
    color: #2a2a2a !important;
    scrollbar-color: #cc0000 #e8e2dc;
}

body.light-mode ::-webkit-scrollbar-track {
    background: #d0c8c0;
}

/* Old Bootstrap navbar light mode - no longer needed */

/* Tables */
body.light-mode .table {
    color: #2a2a2a !important;
}

body.light-mode .table thead th {
    background: rgba(0,0,0,0.03) !important;
    color: #aa0000 !important;
    border-bottom: 2px solid #aa0000 !important;
    border-top: none !important;
}

body.light-mode .table td {
    background-color: rgba(255,255,255,0.6) !important;
    border-color: rgba(0,0,0,0.05) !important;
    color: #2a2a2a !important;
}

body.light-mode .table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(255,255,255,0.4) !important;
}

body.light-mode .table-striped tbody tr:nth-of-type(even) td {
    background-color: rgba(255,255,255,0.6) !important;
}

body.light-mode tr.hover:hover td {
    background-color: rgba(0,0,0,0.03) !important;
}

body.light-mode .table-bordered,
body.light-mode .table-bordered td,
body.light-mode .table-bordered th {
    border-color: rgba(0,0,0,0.06) !important;
}

/* Links */
body.light-mode .table a {
    color: #333 !important;
}

body.light-mode .table a:hover {
    color: #aa0000 !important;
}

/* Jumbotron */
body.light-mode .jumbotron {
    background: rgba(255,255,255,0.6) !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #2a2a2a !important;
}

body.light-mode .jumbotron h2 {
    color: #aa0000 !important;
}

body.light-mode .litebans-index-sub p {
    color: #666 !important;
}

/* Cards */
body.light-mode .card {
    background-color: rgba(255,255,255,0.6) !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #2a2a2a !important;
}

body.light-mode .card-header {
    background: rgba(0,0,0,0.03) !important;
    border-bottom-color: #aa0000 !important;
    color: #aa0000 !important;
}

body.light-mode .card-body {
    background-color: rgba(255,255,255,0.4) !important;
}

/* Forms */
body.light-mode .form-control {
    background-color: rgba(255,255,255,0.8) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #2a2a2a !important;
}

body.light-mode .form-control:focus {
    background-color: #fff !important;
    border-color: #aa0000 !important;
    color: #2a2a2a !important;
}

/* Alerts */
body.light-mode .alert {
    background-color: rgba(255,255,255,0.6) !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #2a2a2a !important;
}

/* Pager */
body.light-mode .litebans-pager-number {
    color: #666 !important;
}

/* Avatar */
body.light-mode .avatar {
    border-color: rgba(0,0,0,0.08) !important;
}

body.light-mode .avatar-name {
    color: #2a2a2a !important;
}

/* Pagination */
body.light-mode .page-item .page-link {
    background-color: rgba(255,255,255,0.6) !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #aa0000 !important;
}

body.light-mode .page-item .page-link:hover {
    background-color: rgba(0,0,0,0.04) !important;
}

/* Modal */
body.light-mode .modal-content {
    background-color: rgba(255,255,255,0.95) !important;
    border-color: rgba(0,0,0,0.06) !important;
    color: #2a2a2a !important;
}

body.light-mode .modal-header {
    border-bottom-color: rgba(0,0,0,0.06) !important;
}

/* Dropdown */
body.light-mode .dropdown-menu {
    background-color: rgba(255,255,255,0.95) !important;
    border-color: rgba(0,0,0,0.06) !important;
}

body.light-mode .dropdown-item {
    color: #2a2a2a !important;
}

body.light-mode .dropdown-item:hover {
    background-color: rgba(0,0,0,0.04) !important;
    color: #aa0000 !important;
}

/* Header title */
body.light-mode .litebans-header h1 {
    color: #aa0000 !important;
}

/* Copyright */
body.light-mode .my-lg-0 a {
    color: #999 !important;
}
