/* Oppressive Bans - Stylesheet (embedded in OPTR layout) */
/* Do NOT reset margin/padding globally — breaks sidebar.css loaded before this file */

#mainContainer,
#mainContainer * {
    box-sizing: border-box;
}

#mainContainer a { color: #ff8c00; text-decoration: none; }
#mainContainer a:hover { color: #ffa500; }

/* Container — stack vertically (style.css .container is display:flex row) */
#mainContainer > .container,
#mainContainer > .main-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 24px 20px;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* Direct children should not stretch weirdly as flex row items */
#mainContainer > .container > .btn,
#mainContainer > .container > a.btn {
    align-self: flex-start;
    width: auto;
    margin-bottom: 16px;
}

#mainContainer > .container > .card,
#mainContainer > .container > .detail-card,
#mainContainer > .container > .search-bar,
#mainContainer > .container > .tabs,
#mainContainer > .container > .stats-row,
#mainContainer > .container > .admin-grid,
#mainContainer > .container > .alert {
    width: 100%;
    max-width: 100%;
    flex: none;
}

/* Keep add/edit forms readable without making list pages narrow */
#mainContainer > .container > .card .form {
    max-width: 640px;
}

#mainContainer > .container > .card .data-table {
    width: 100%;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: rgba(20,20,20,0.95);
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 18px 14px;
    text-align: center;
}
.stat-card .stat-num {
    display: block;
    color: #ff5000;
    font-size: 28px;
    font-weight: 700;
}
.stat-card .stat-label {
    display: block;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Cards */
.card {
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.card .card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #333;
    font-size: 14px;
    font-weight: 600;
    color: #ff5000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card .card-body { padding: 16px 20px; }

/* Content grid */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; } }

/* Admin grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.admin-card {
    background: linear-gradient(180deg, rgba(20,20,20,0.95) 0%, rgba(26,26,26,0.98) 100%);
    border: 1px solid #333;
    border-top: 3px solid #ff5000;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.admin-card:hover {
    background: linear-gradient(180deg, rgba(20,20,20,0.95) 0%, rgba(100,33,0,1.0) 100%);
    border-color: #ff5000;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255,80,0,0.2);
}
.admin-card .card-icon {
    font-size: 28px;
    color: #ff5000;
    background: rgba(255,80,0,0.1);
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.admin-card .card-title { font-size: 14px; font-weight: 700; text-transform: uppercase; color: #eee; }
.admin-card .card-desc { font-size: 11px; color: #888; line-height: 1.4; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    padding: 10px 12px;
    text-align: left;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
    white-space: nowrap;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
}
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table .steamid { font-family: monospace; font-size: 11px; color: #888; word-break: break-all; }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-active { background: rgba(46,204,113,0.15); color: #2ecc71; }
.status-unbanned { background: rgba(46,204,113,0.15); color: #2ecc71; }
.status-removed { background: rgba(231,76,60,0.15); color: #e74c3c; }
.status-expired { background: rgba(149,165,166,0.15); color: #95a5a6; }

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #333;
    color: #888;
}
.badge-ban { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-mute { background: rgba(243,156,18,0.15); color: #f39c12; }
.badge-active { background: rgba(46,204,113,0.15); color: #2ecc71; }
.badge-inactive { background: rgba(149,165,166,0.15); color: #666; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-orange { background: #ff5000; color: #000; }
.btn-orange:hover { background: #ff7000; }
.btn-dark { background: #1a1a1a; color: #ccc; border: 1px solid #333; }
.btn-dark:hover { background: #252525; border-color: #ff5000; }
.btn-success { background: #2ecc71; color: #000; }
.btn-success:hover { background: #27ae60; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 4px 10px; font-size: 11px; }

/* Forms */
.form { max-width: 600px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 13px;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #ff5000; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* Duration group */
.duration-group { display: flex; gap: 8px; }
.duration-group input { flex: 1; }
.duration-group select { width: auto; min-width: 140px; }

/* Search bar */
.search-bar {
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.search-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.search-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 13px;
}
.search-bar input:focus { outline: none; border-color: #ff5000; }
.search-bar select {
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 13px;
}
.checkbox-label { color: #888; font-size: 12px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Detail card */
.detail-card {
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
}
.detail-id { font-size: 18px; font-weight: 700; color: #ff5000; }
.detail-body { padding: 20px; }
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.detail-field label {
    display: block;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.detail-field span { color: #eee; font-size: 14px; }
.detail-full { grid-column: 1 / -1; }
.reason-box {
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 4px;
    padding: 12px;
    color: #eee;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.detail-actions { padding: 16px 20px; border-top: 1px solid #333; }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.tab {
    padding: 10px 20px;
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s;
}
.tab:hover { color: #ff8c00; }
.tab.active { background: rgba(255,80,0,0.1); border-color: #ff5000; color: #ff5000; }

/* Flags grid */
.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.flag-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.page-link {
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
}
.page-link:hover { border-color: #ff5000; color: #ff5000; }
.page-link.active { background: #ff5000; border-color: #ff5000; color: #000; font-weight: 700; }
.page-dots { padding: 6px 8px; color: #555; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
}
.alert-success { background: rgba(46,204,113,0.1); border: 1px solid #2ecc71; color: #2ecc71; }
.alert-error { background: rgba(231,76,60,0.1); border: 1px solid #e74c3c; color: #e74c3c; }
.alert-info { background: rgba(52,152,219,0.1); border: 1px solid #3498db; color: #3498db; }

/* Clickable rows */
.row-clickable { cursor: pointer; }
.row-clickable:hover { background: rgba(255,80,0,0.05) !important; }
.row-clickable.active { background: rgba(255,80,0,0.08) !important; }

/* Expandable detail row */
.detail-row { display: none; }
.detail-row.open { display: table-row; }
.detail-cell { padding: 0 !important; }
.detail-panel {
    background: rgba(13,13,13,0.98);
    border: 1px solid #333;
    border-radius: 6px;
    margin: 8px 12px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.detail-panel .detail-field label {
    display: block;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.detail-panel .detail-field span {
    color: #eee;
    font-size: 13px;
    word-break: break-all;
}
.detail-panel .detail-field span a { color: #ff8c00; }
.detail-panel .detail-field span a:hover { color: #ffa500; }
.detail-panel .detail-full { grid-column: 1 / -1; }
.detail-panel .reason-box {
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 4px;
    padding: 10px;
    color: #eee;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

/* Recent bans/mutes table */
.recent-table { display: table; width: 100%; }
.recent-head {
    display: table-row;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333;
}
.recent-head span {
    display: table-cell;
    padding: 8px 8px;
    white-space: nowrap;
}
.recent-row {
    display: table-row;
    text-decoration: none;
    color: #ccc;
    transition: all 0.15s;
}
.recent-row:hover { background: rgba(255,80,0,0.05); }
.recent-row span {
    display: table-cell;
    padding: 10px 8px;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
    white-space: nowrap;
}
.col-game { width: 40px; text-align: center; }
.col-date { width: 130px; }
.col-player { width: auto; }
.col-dur { width: 100px; text-align: right; font-weight: 600; }
.game-icon { width: 24px; height: 24px; vertical-align: middle; }
.game-na { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; background: #1a1a1a; border: 1px solid #333; border-radius: 4px; color: #666; font-size: 12px; font-weight: 700; }
.dur-perm { color: #e74c3c !important; }
.dur-active { color: #f39c12 !important; }
.dur-expired { color: #2ecc71 !important; }

.recent-row.row-st-active { background: rgba(231,76,60,0.08); border-left: 3px solid #e74c3c; }
.recent-row.row-st-active:hover { background: rgba(231,76,60,0.15); }
.recent-row.row-st-active span { color: #f0a0a0; }
.recent-row.row-st-active .col-player { color: #e74c3c; }

.recent-row.row-st-ended { background: rgba(46,204,113,0.06); border-left: 3px solid #2ecc71; }
.recent-row.row-st-ended:hover { background: rgba(46,204,113,0.12); }
.recent-row.row-st-ended span { color: #a0d0a0; }
.recent-row.row-st-ended .col-player { color: #2ecc71; }

tr.row-main.tr-st-active { background: rgba(231,76,60,0.06) !important; }
tr.row-main.tr-st-active td { color: #e0a0a0; }
tr.row-main.tr-st-active td:first-child { border-left: 3px solid #e74c3c; }
tr.row-main.tr-st-active + .row-detail td { background: rgba(231,76,60,0.03) !important; }
tr.row-main.tr-st-active + .row-detail td label { color: #e0a0a0; }

tr.row-main.tr-st-ended { background: rgba(46,204,113,0.04) !important; }
tr.row-main.tr-st-ended td { color: #a0c0a0; }
tr.row-main.tr-st-ended td:first-child { border-left: 3px solid #2ecc71; }
tr.row-main.tr-st-ended + .row-detail td { background: rgba(46,204,113,0.02) !important; }
tr.row-main.tr-st-ended + .row-detail td label { color: #a0c0a0; }

/* Empty state */
.empty-state { text-align: center; padding: 30px 20px; color: #555; font-size: 14px; }

/* Footer (inside main content only) */
#mainContainer footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    margin-top: 20px;
    color: #777;
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Evidence display */
.evidence-gallery { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.evidence-gallery .evidence-item { position: relative; }
.evidence-thumb { max-width: 100%; max-height: 200px; border-radius: 6px; cursor: pointer; border: 1px solid #333; }
.evidence-video { max-width: 100%; max-height: 300px; border-radius: 6px; }

/* Comments */
.detail-inner-comments {
    background: rgba(13,13,13,0.98);
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin: 0 12px 8px 12px;
    padding: 12px 16px;
}
.detail-inner-comments h4 {
    color: #ff8c00;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.comment-list { margin-top: 0; }
.comment-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid #252525;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.comment-item .comment-meta { font-size: 11px; color: #666; margin-bottom: 4px; }
.comment-item .comment-meta .comment-admin { color: #ff8c00; font-weight: 600; }
.comment-item .comment-body { font-size: 13px; color: #ddd; line-height: 1.4; white-space: pre-wrap; }
.comment-form { margin-top: 12px; }
.comment-evidence { margin-top: 6px; }
.comment-evidence .evidence-thumb { max-height: 120px; }
.comment-evidence .evidence-video { max-height: 180px; }
.comment-avatar { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.comment-admin.comment-anon { color: #666; font-style: italic; }
.comment-actions { margin-top: 6px; display: flex; gap: 6px; }
.comment-actions form { display: inline; }
.comment-actions .btn { font-size: 11px; padding: 2px 8px; }
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}
.comment-form textarea:focus { outline: none; border-color: #ff5000; }
.comment-form .form-actions { margin-top: 8px; }

/* ========== COMMENT FORM REFINED ========== */
.comment-form-refined { margin-top: 14px; }
.comment-form-refined .cmt-input-wrap {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: border-color 0.2s;
    overflow: hidden;
}
.comment-form-refined .cmt-input-wrap:focus-within { border-color: #ff5000; }
.comment-form-refined .cmt-input-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: #eee;
    font-size: 13px;
    resize: vertical;
    min-height: 56px;
    font-family: inherit;
    line-height: 1.5;
}
.comment-form-refined .cmt-input-wrap textarea:focus { outline: none; }
.comment-form-refined .cmt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #1f1f1f;
    flex-wrap: wrap;
}
.cmt-attach-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px dashed #444;
    border-radius: 6px;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.cmt-attach-btn:hover { border-color: #ff5000; color: #ff8c00; background: #222; }
.cmt-attach-btn input[type="file"] {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.cmt-attach-btn i { font-size: 13px; }
.cmt-attach-hasfile { border-color: #ff5000; color: #ff8c00; background: rgba(255,80,0,0.1); }

.anon-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all 0.15s;
}
.anon-switch:hover { color: #888; }
.anon-switch input { display: none; }
.anon-switch .anon-slider {
    width: 32px; height: 18px;
    background: #333;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
}
.anon-switch .anon-slider::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #888;
    top: 2px; left: 2px;
    transition: all 0.2s;
}
.anon-switch input:checked + .anon-slider { background: #ff5000; }
.anon-switch input:checked + .anon-slider::after {
    background: #fff;
    left: 16px;
}
.anon-switch .anon-label { transition: color 0.2s; }
.anon-switch input:checked ~ .anon-label { color: #ff8c00; }

.cmt-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: #ff5000;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.cmt-submit-btn:hover { background: #ff7000; transform: translateY(-1px); }
.cmt-submit-btn:active { transform: translateY(0); }

/* ========== COMMENT LIST REFINED ========== */
.comment-list-refined { display: flex; flex-direction: column; gap: 8px; }
.comment-card {
    background: rgba(18,18,18,0.6);
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.15s, background 0.15s;
}
.comment-card:hover { border-color: #333; background: rgba(22,22,22,0.6); }
.comment-card .cmt-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.comment-card .cmt-header .cmt-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #ff8c00;
}
.comment-card .cmt-header .cmt-author img { width: 18px; height: 18px; border-radius: 50%; }
.comment-card .cmt-header .cmt-author .comment-anon { color: #666; font-style: italic; font-weight: 400; }
.comment-card .cmt-header .cmt-time {
    font-size: 11px;
    color: #555;
    margin-left: auto;
}
.comment-card .cmt-body {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    white-space: pre-wrap;
}
.comment-card .cmt-evidence { margin-top: 8px; }
.comment-card .cmt-evidence .evidence-thumb { max-height: 140px; border-radius: 6px; }
.comment-card .cmt-evidence .evidence-video { max-height: 200px; border-radius: 6px; }
.comment-card .cmt-foot {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.comment-card .cmt-foot .btn { font-size: 11px; padding: 3px 10px; border-radius: 4px; }
.comment-card .cmt-edit-form { display: none; margin-top: 8px; }

/* ========== EVIDENCE DROP ZONE REFINED ========== */
.evi-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) { .evi-upload-grid { grid-template-columns: 1fr; } }
.evi-dropzone {
    position: relative;
    border: 2px dashed #333;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0,0,0,0.2);
}
.evi-dropzone:hover { border-color: #ff5000; background: rgba(255,80,0,0.04); }
.evi-dropzone input[type="file"] {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.evi-dropzone .dz-icon {
    font-size: 28px;
    color: #555;
    margin-bottom: 6px;
}
.evi-dropzone:hover .dz-icon { color: #ff8c00; }
.evi-dropzone .dz-text { font-size: 13px; color: #888; }
.evi-dropzone .dz-hint { font-size: 11px; color: #555; margin-top: 4px; }
.evi-url-box {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.evi-url-box label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.evi-url-box .url-input-wrap {
    display: flex;
    gap: 8px;
}
.evi-url-box .url-input-wrap input {
    flex: 1;
    padding: 9px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #eee;
    font-size: 13px;
    transition: border-color 0.15s;
}
.evi-url-box .url-input-wrap input:focus { outline: none; border-color: #ff5000; }
.evi-url-box .url-input-wrap input::placeholder { color: #555; }

/* ========== NO COMMENTS EMPTY STATE ========== */
.empty-comments {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 13px;
    border: 1px dashed #2a2a2a;
    border-radius: 8px;
    background: rgba(0,0,0,0.15);
}
.empty-comments i { font-size: 24px; display: block; margin-bottom: 6px; color: #444; }

/* ========== OLD COMMENT STYLES LEGACY ==========
   Keep existing comment styles for backward compat, but refined ones take priority via specificity */

/* Responsive */
/* Mobile/Desktop view toggle */
.mobile-ban-list { display: none; }
.mobile-ban-list .recent-row { cursor: pointer; }
.mobile-ban-list .recent-row.open { background: rgba(255,80,0,0.12) !important; }
.mobile-detail { display: none; }
.mobile-detail.open { display: block; }
.mobile-detail .detail-inner {
    background: rgba(13,13,13,0.98);
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.mobile-detail .detail-inner .df {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.mobile-detail .detail-inner .df label {
    flex-shrink: 0;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}
.mobile-detail .detail-inner .df span {
    text-align: right;
    word-break: break-word;
    color: #eee;
    font-size: 13px;
}
.mobile-detail .detail-inner .df span a { color: #ff8c00; }
.mobile-detail .detail-inner .df.full { flex-direction: column; }
.mobile-detail .detail-inner .df.full label { margin-bottom: 4px; }
.mobile-detail .detail-inner .rb {
    background: #0d0d0d;
    border: 1px solid #252525;
    border-radius: 4px;
    padding: 10px;
    color: #eee;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .mobile-ban-list { display: block; }
    .desktop-table-wrap { display: none; }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
    .duration-group { flex-direction: column; }

    /* Table → Card layout */
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table td {
        display: block !important;
    }
    .data-table thead {
        display: none !important;
    }
    .data-table tbody tr.row-main,
    .data-table tbody tr:not(.row-main):not(.row-detail) {
        display: block !important;
    }
    .data-table tbody tr.row-main {
        margin-bottom: 4px;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 10px 14px;
        background: rgba(20,20,20,0.95);
        border-left: 3px solid transparent;
    }
    .data-table tbody tr.row-main.tr-st-active {
        border-left-color: #e74c3c;
    }
    .data-table tbody tr.row-main.tr-st-ended {
        border-left-color: #2ecc71;
    }
    .data-table tbody tr.row-main td {
        padding: 4px 0;
        border-bottom: none;
        font-size: 13px;
        display: flex !important;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px;
    }
    .data-table tbody tr.row-main td:before {
        content: attr(data-label);
        flex-shrink: 0;
        color: #888;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        font-weight: 600;
    }
    .data-table tbody tr.row-main td > * {
        text-align: right;
        word-break: break-word;
    }
    .data-table tbody tr.row-detail {
        margin-top: -4px;
        margin-bottom: 12px;
        border: 1px solid #333;
        border-top: none;
        border-radius: 0 0 8px 8px;
        background: rgba(13,13,13,0.98);
    }
    .data-table tbody tr.row-detail.open {
        display: block !important;
    }
    .data-table tbody tr.row-detail td {
        padding: 0 !important;
        border: none;
    }
    .detail-inner {
        margin: 0;
        border: none;
        border-radius: 0;
        padding: 12px 14px;
        grid-template-columns: 1fr;
    }
    .detail-inner .df {
        text-align: left;
    }
    .detail-inner .df label {
        font-size: 10px;
    }
    .detail-inner .df span {
        font-size: 12px;
    }

    /* Non-expandable tables (player.php, server.php) */
    .data-table tbody tr:not(.row-main):not(.row-detail) {
        margin-bottom: 10px;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 10px 14px;
        background: rgba(20,20,20,0.95);
        display: block !important;
    }
    .data-table tbody tr:not(.row-main):not(.row-detail) td {
        padding: 4px 0;
        border-bottom: none;
        font-size: 13px;
        display: flex !important;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px;
    }
    .data-table tbody tr:not(.row-main):not(.row-detail) td:before {
        content: attr(data-label);
        flex-shrink: 0;
        color: #888;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        font-weight: 600;
    }
    .data-table tbody tr:not(.row-main):not(.row-detail) td > * {
        text-align: right;
        word-break: break-word;
    }
    .data-table tbody tr:not(.row-main):not(.row-detail) td:last-child {
        justify-content: flex-end;
    }
    /* Action button in last cell without data-label */
    .data-table tbody tr:not(.row-main):not(.row-detail) td:last-child:before {
        display: none;
    }

    /* Detail pages (ban-detail, mute-detail) */
    .detail-grid {
        grid-template-columns: 1fr !important;
    }
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .detail-body {
        padding: 14px;
    }
    .detail-field span {
        font-size: 13px;
        word-break: break-word;
    }
    .detail-field .steamid {
        word-break: break-all;
    }
    .reason-box {
        font-size: 12px;
        max-height: 200px;
    }

    /* Recent table (bans index) */
    .recent-table {
        display: block;
    }
    .recent-head {
        display: none !important;
    }
    .recent-row {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 14px;
        border: 1px solid #333;
        border-radius: 8px;
        margin-bottom: 8px;
        background: rgba(20,20,20,0.95);
        border-left: 3px solid transparent;
    }
    .recent-row.row-st-active {
        border-left-color: #e74c3c;
    }
    .recent-row.row-st-ended {
        border-left-color: #2ecc71;
    }
    .recent-row span {
        display: block !important;
        white-space: normal !important;
        padding: 2px 0 !important;
        border-bottom: none !important;
    }
    .recent-row .col-game {
        width: 24px;
        margin-right: 6px;
        text-align: center;
        order: 1;
    }
    .recent-row .col-date {
        font-size: 11px;
        color: #666;
        flex: 1;
        order: 2;
    }
    .recent-row .col-player {
        font-size: 14px;
        font-weight: 600;
        color: #eee;
        width: 100%;
        order: 4;
    }
    .recent-row .col-dur {
        font-size: 12px;
        margin-left: auto;
        order: 3;
        white-space: nowrap;
    }

    /* Card body padding */
    .card-body {
        padding: 12px 14px;
    }

    /* Container spacing */
    #mainContainer > .container,
    #mainContainer > .main-content {
        padding: 16px 12px;
    }

    /* Search bar */
    .search-bar {
        padding: 12px 14px;
    }
    .search-bar form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar input[type="text"],
    .search-bar select {
        width: 100% !important;
        min-width: 0;
    }

    /* Pagination */
    .pagination {
        gap: 3px;
    }
    .page-link {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Tabs */
    .tabs {
        flex-wrap: wrap;
        gap: 2px;
    }
    .tab {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Bans admin — centered content inside OPTR admin sidebar layout */
.side-nav.side-admin-area ~ #mainContainer > .container,
.side-nav.side-admin-area ~ #mainContainer > .main-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Prevent main OPTR .card styles from shrinking bans admin tables */
.side-nav.side-admin-area ~ #mainContainer .card .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.side-nav.side-admin-area ~ #mainContainer .search-bar form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
.side-nav.side-admin-area ~ #mainContainer .card-header .btn {
    margin-left: auto;
}

.side-nav.side-admin-area ~ #mainContainer .tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}
.side-nav.side-admin-area ~ #mainContainer .tab {
    flex: 0 0 auto;
}

.side-nav.side-admin-area ~ #mainContainer .data-table {
    width: 100%;
    table-layout: auto;
}
.side-nav.side-admin-area ~ #mainContainer .data-table .steamid {
    white-space: nowrap;
    word-break: normal;
}
