/* Modern Violet/Dark Theme (Custom) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Base Colors - Deeper and Richer */
    --bg-body: #0b0f19;
    --bg-card: #151b2b;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    /* Cool Grey */
    --text-tertiary: #64748b;

    --border-color: #273045;

    /* Accents - Shifted to Violet/Emerald */
    --accent-primary: #8b5cf6;
    /* Violet */
    --accent-primary-bg: rgba(139, 92, 246, 0.15);

    --accent-red: #f43f5e;
    /* Rose */
    --accent-red-bg: rgba(244, 63, 94, 0.15);

    --accent-blue: #3b82f6;
    --accent-blue-bg: rgba(59, 130, 246, 0.15);

    --accent-orange: #f97316;
    --accent-orange-bg: rgba(249, 115, 22, 0.15);

    --accent-success: #10b981;
    /* Emerald */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(139, 92, 246, 0.1);

    --radius-md: 12px;
    --radius-full: 9999px;
}

body {
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at top center, #1e1b4b 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.navbar {
    background: rgba(21, 27, 43, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.nav-logo i {
    color: var(--accent-primary);
}

.nav-logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-discord {
    background: #5865F2;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.nav-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.layout {
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 30px;
}

/* --- Top Operations Bar --- Single Row version */
.ops-bar {
    background: var(--bg-card);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 800;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-link {
    padding: 10px 18px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-link:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.btn-admin-edit {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-admin-edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-admin-delete {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-admin-delete:hover {
    background: rgba(244, 63, 94, 0.2);
}

.chip {
    padding: 8px 16px;
    background: #0d111c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--accent-primary);
    color: #fff;
    background: rgba(139, 92, 246, 0.05);
}

.chip.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.chip-game.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

.chip-ct.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Inline Search Styling */
.search-form-inline {
    flex-grow: 1;
    position: relative;
    max-width: 400px;
    margin: 0 20px;
}

.search-icon-inline {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 13px;
}

.search-form-inline input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: #0d111c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.search-form-inline input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-bg);
}

.results-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* --- Table Card --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th {
    background: #192033;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 1px;
}

td {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-secondary);
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

.col-date .date-main {
    color: var(--text-primary);
    font-weight: 600;
}

.col-date .date-sub {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: monospace;
}

.player-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
}

.player-steam {
    font-size: 11px;
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.steam-link {
    color: var(--accent-primary);
    margin-right: 6px;
    font-size: 13px;
    transition: color 0.2s;
}

.steam-link:hover {
    color: #fff;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-game {
    background: var(--accent-red-bg);
    color: var(--accent-red);
}

.badge-ct {
    background: var(--accent-blue-bg);
    color: var(--accent-blue);
}

.badge-chat {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.col-reason {
    color: #fff;
    font-weight: 500;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-admin {
    color: var(--accent-primary);
    font-weight: 700;
}

.status-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.status-top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-label.orange {
    color: var(--accent-orange);
}

.status-label.red {
    color: var(--accent-red);
}

.status-label.gray {
    color: var(--text-tertiary);
}

.progress-track {
    height: 4px;
    background: #273045;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
}

.progress-fill.orange {
    background: var(--accent-orange);
}

.progress-fill.red {
    background: var(--accent-red);
}

.progress-fill.gray {
    background: #475569;
}

.paging {
    padding: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.paging a {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d111c;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.paging a:hover,
.paging a.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.empty-state {
    text-align: center;
    padding: 80px;
    color: var(--text-tertiary);
}

/* --- Expandable Details --- */
.ban-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.ban-row:hover {
    background-color: rgba(139, 92, 246, 0.04);
}

.expand-icon {
    float: right;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
    color: var(--text-secondary);
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
}

.footer-logo {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span,
.footer-logo i {
    color: var(--accent-primary);
}

.footer-left p {
    font-size: 13px;
    max-width: 300px;
    opacity: 0.7;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 13px;
    margin-bottom: 5px;
}

.footer-credits {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.footer-credits span {
    color: var(--accent-primary);
    font-weight: 700;
}

.detail-row td {
    padding: 0;
    background: #0d111c;
}

.detail-content {
    padding: 32px 40px;
    border-left: 4px solid var(--accent-primary);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.detail-header-vstack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dh-info .dh-name {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    display: block;
}

.dh-steam {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dh-steam .steam-link {
    font-size: 18px;
    margin: 0 4px;
}

.dh-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.detail-reason-box {
    margin-bottom: 32px;
}

.detail-label {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.detail-reason-text {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #151b2b;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.grid-item {
    display: flex;
    gap: 18px;
    align-items: center;
}

.g-icon {
    width: 44px;
    height: 44px;
    background: #0d111c;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 18px;
}

.detail-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* Alert Boxes */
.alert-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.alert-error {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}