/* ==========================================
   PlanetPVP-Inspired Dark Theme Redesign
   ========================================== */

:root {
    --primary-dark: #10181f;
    --secondary-dark: #1a232b;
    --card-dark: #232b33;
    --accent-purple: #3a7c5c;
    --accent-blue: #5a9fd4;
    --accent-cyan: #4fd1c5;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-heading: #4fd1c5;
    --border-color: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --active-green: #4e8c6d;
    --inactive-gray: #6b7280;
    --glow-color: #7ab8e8;
    --shadow: 0 2px 8px rgba(20,32,40,0.08);
    --shadow-hover: 0 4px 16px rgba(20,32,40,0.13);
}

/* Global Styles */
body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

html {
    height: 100%;
}

body > * {
    flex-shrink: 0;
}

body > .container,
body > div:not(footer):not(header) {
    flex: 1 0 auto;
}

/* Table Row Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

table tbody tr {
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
}

table tbody tr:nth-child(1) { animation-delay: 0.03s; }
table tbody tr:nth-child(2) { animation-delay: 0.06s; }
table tbody tr:nth-child(3) { animation-delay: 0.09s; }
table tbody tr:nth-child(4) { animation-delay: 0.12s; }
table tbody tr:nth-child(5) { animation-delay: 0.15s; }
table tbody tr:nth-child(6) { animation-delay: 0.18s; }
table tbody tr:nth-child(7) { animation-delay: 0.21s; }
table tbody tr:nth-child(8) { animation-delay: 0.24s; }
table tbody tr:nth-child(9) { animation-delay: 0.27s; }
table tbody tr:nth-child(10) { animation-delay: 0.30s; }
table tbody tr:nth-child(n+11) { animation-delay: 0.33s; }

.new-row {
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
}

/* Avatar Styles */
.avatar {
    margin-bottom: 5px;
    margin-right: 5px;
    border-radius: 3px;
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 8px rgba(58, 124, 92, 0.2);
    transition: all 0.2s ease;
}

a .avatar:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(58, 124, 92, 0.4);
}

.avatar-name {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Header */
.site-header {
    display: block;
    text-align: center;
    padding: 20px 0;
    background: rgba(26, 35, 43, 0.5);
    backdrop-filter: blur(10px);
}

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

/* Modern Navbar */
.navbar {
    background: rgba(16, 24, 31, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--accent-purple);
    box-shadow: var(--shadow);
    padding: 0.3rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.4rem 0.9rem !important;
    border-radius: 3px;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(90, 159, 212, 0.15);
    transform: none;
}

.navbar-active .nav-link {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: var(--text-primary) !important;
    box-shadow: 0 2px 8px rgba(90, 159, 212, 0.3);
}

/* Modern Cards */
.card {
    background: rgba(26, 35, 43, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    overflow: hidden;
}

a .card:hover,
.card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-purple);
}

.card-header {
    background: linear-gradient(135deg, rgba(90, 159, 212, 0.15), rgba(122, 184, 232, 0.15));
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.25rem;
    color: var(--text-secondary);
}

.card-title {
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Modern Tables */
table {
    background: transparent;
}

th {
    text-align: center;
    background: rgba(90, 159, 212, 0.2) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    border-color: var(--border-color) !important;
    padding: 0.5rem 0.75rem !important;
}

table tr td {
    padding: 0.4rem 0.75rem !important;
    vertical-align: middle !important;
    text-align: center;
    border-color: var(--border-color) !important;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Punishment listing tables (index, bans/mutes/kicks, history, staff details)
   show an avatar per row - keep them small so rows stay compact. */
table td .avatar {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

table td .avatar-name {
    font-size: 0.85rem;
}

table tbody tr {
    background: rgba(16, 24, 31, 0.5);
    transition: all 0.3s ease;
}

table tbody tr.hover {
    background: rgba(90, 159, 212, 0.15);
    transform: scale(1.01);
    cursor: pointer;
}

/* Links */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Modern Buttons */
.btn {
    border-radius: 3px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    box-shadow: 0 2px 6px rgba(90, 159, 212, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 3px 10px rgba(122, 184, 232, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(75, 85, 99, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--active-green), #10b981);
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(78, 140, 109, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary) !important;
}

.badge-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
}

.badge-success {
    background: var(--active-green);
}

.badge-danger {
    background: var(--danger);
}

.badge-warning {
    background: var(--warning);
}

.badge-info {
    background: var(--accent-cyan);
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, rgba(90, 159, 212, 0.2), rgba(122, 184, 232, 0.2));
    border-radius: 3px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow);
}

/* Check Form */
.site-check {
    text-align: left;
}

.site-check-btn {
    margin-left: 5px;
}

.site-check-form {
    margin-left: 15px;
}

.site-check-output {
    margin-left: 3px;
    color: var(--text-primary);
}

/* Pager */
.site-pager {
    font-size: 30px;
    color: var(--accent-blue);
}

.site-pager-number {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
}

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

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

.site-pager-active {
    color: var(--accent-cyan);
}

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

/* Index Page */
.site-index {
    text-align: center;
}

.site-index-main {
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-index-sub {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Labels */
.badge-pill {
    font-weight: 600;
}

.site-label-container {
    display: inline-flex;
    gap: 10px;
}

.site-label-info {
    margin-left: 15px;
    font-size: 17px;
    font-weight: 800;
}

.site-label-inactive {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.site-label-inactive,
.site-label-expired {
    color: #fff;
    background: var(--inactive-gray);
}

.site-label-active,
.site-label-permanent,
.site-label-ipban,
.site-label-ipmute {
    color: #fff;
    background: var(--active-green);
}

/* History Labels */
.site-label-history {
    display: inline;
    font-size: 16px;
    font-weight: 800;
}

.site-label-ban {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.site-label-mute {
    background: linear-gradient(135deg, #6b7280, #374151);
}

.site-label-warn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.site-label-kick {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Utility Classes */
.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;
}

/* Stat Boxes */
.stat-box {
    padding: 12px;
    border-radius: 3px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-box.clickable:hover,
a .stat-box:hover {
    background: rgba(90, 159, 212, 0.15);
    transform: scale(1.02);
}

.stat-box h4 {
    margin-bottom: 5px;
    font-weight: 700;
}

/* Footer */
footer {
    background: rgba(16, 24, 31, 0.95);
    border-top: 1px solid var(--accent-purple);
    padding: 1rem 0 0.8rem 0;
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    flex-shrink: 0;
}

footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-blue);
    text-decoration: none;
}

footer p {
    margin-bottom: 0.4rem;
}

footer small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
}

/* Container
   Overrides the Bootstrap breakpoint widths (540/720/960/1140px) so tables,
   buttons and cards use most of the screen width. Adjust the two values below
   to make the whole site wider or narrower. */
.container {
    width: 85%;
    max-width: 1800px;
    padding-top: 15px;
    margin-bottom: 15px;
}

/* Form Inputs */
.form-control {
    background: rgba(16, 24, 31, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 3px;
}

.form-control:focus {
    background: rgba(16, 24, 31, 0.9);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(58, 124, 92, 0.2);
}

/* Alert Messages */
.alert {
    border-radius: 3px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* ==========================================
   Moderation area (staff only)
   ========================================== */

/* Module tabs */
.mod-tabs {
    border-bottom: 1px solid var(--border-color);
}

.mod-tabs .nav-link {
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 3px 3px 0 0;
}

.mod-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: rgba(79, 209, 197, 0.08);
}

.mod-tabs .nav-link.active {
    color: var(--text-primary);
    background: var(--card-dark);
    border-color: var(--border-color) var(--border-color) transparent;
    border-top: 2px solid var(--accent-cyan);
}

/* Key/value lists */
.mod-dl {
    margin-bottom: 0;
}

.mod-dl dt {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mod-dl dd {
    margin-bottom: 0.9rem;
    word-break: break-word;
}

.mod-dl dd:last-child {
    margin-bottom: 0;
}

/* Flag badges */
.mod-flag {
    display: inline-block;
    margin: 1px 4px 1px 0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.mod-flag-danger  { background: rgba(239, 68, 68, 0.18);  border: 1px solid var(--danger);       color: #fca5a5; }
.mod-flag-warning { background: rgba(245, 158, 11, 0.18); border: 1px solid var(--warning);      color: #fcd34d; }
.mod-flag-info    { background: rgba(90, 159, 212, 0.18); border: 1px solid var(--accent-blue);  color: #bfdbfe; }
.mod-flag-group   { background: rgba(79, 209, 197, 0.18); border: 1px solid var(--accent-cyan);  color: #99f6e4; }
.mod-flag-muted   { background: rgba(107, 114, 128, 0.18); border: 1px solid var(--inactive-gray); color: #d1d5db; }

/* Tables inside the moderation area */
.mod-code, .container code {
    color: var(--accent-cyan);
    background: rgba(16, 24, 31, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Compact data tables (login history, IP list) */
/* Shared base for the compact data tables. Row height is set per table below. */
.mod-table-compact {
    font-size: 1.0rem;
}

/* Login history table */
.mod-table-logins {
    line-height: 0.55;
}

/* The tight line-height only works on single-line cells - a wrapped ISP or
   location would overlap the line above it. Keep every cell on one line and
   let .table-responsive scroll if a value is ever wider than the container. */
.mod-table-logins th,
.mod-table-logins td {
    white-space: nowrap;
}

/* IP addresses table */
.mod-table-ips {
    line-height: 1.2;
}

.mod-table-compact th,
.mod-table-compact td {
    padding: 3px 8px;
    vertical-align: middle;
}

.mod-table-compact th {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mod-table-compact code {
    padding: 0 4px;
    font-size: 0.78rem;
}

.mod-table-compact .mod-flag {
    margin: 0 3px 0 0;
    padding: 0 5px;
    font-size: 0.62rem;
}

.mod-table-compact small {
    font-size: 0.72rem;
}

/* Rows appended by "load more" */
.mod-new-row {
    animation: mod-fade-in 0.25s ease both;
}

@keyframes mod-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* Summary tiles above "Current account state" - value and label share one line
   so the block stays flat and the card below is visible without scrolling. */
.mod-tiles {
    margin-bottom: 0.5rem;
}

.mod-tiles > div {
    margin-bottom: 0.5rem;
}

.mod-tile .card-body {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
}

.mod-tile-value {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.mod-tile-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Search result banner - keeps clear of the fixed navbar when the page
   scrolls to it after a search (see inc/js/moderation-search.js). */
#mod-player {
    scroll-margin-top: 130px;
}

/* ---- Punishments module: chips with a hover detail panel ---- */

/* Cards clip their content by default, which would cut off the panel.
   They also have a backdrop-filter, which makes every card its own stacking
   context - so the panel's z-index alone cannot lift it above the next card.
   Raising the hovered card itself is what puts the panel in front. */
.mod-chip-card {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.mod-chip-card:hover {
    z-index: 20;
}

.mod-chips {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mod-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    max-width: 230px;
    padding: 1px 8px;
    border: 1px solid var(--border-color);
    border-left-width: 3px;
    border-radius: 3px;
    background: rgba(16, 24, 31, 0.6);
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.6;
}

.mod-chip:hover,
.mod-chip:focus {
    background: rgba(90, 159, 212, 0.15);
    color: var(--text-primary);
    border-color: var(--accent-cyan);
}

.mod-chip-active   { border-left-color: var(--danger); }
.mod-chip-inactive { border-left-color: var(--inactive-gray); }
.mod-chip-kick     { border-left-color: var(--accent-blue); }

.mod-chip-date {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mod-chip-reason {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The detail panel is anchored to the chip row, not to the chip, so it can
   never be pushed off the right edge of the screen. */
.mod-chip-tip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    margin-top: 6px;
    padding: 8px 12px;
    border: 1px solid var(--accent-cyan);
    border-radius: 3px;
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
}

.mod-chip:hover .mod-chip-tip,
.mod-chip:focus .mod-chip-tip {
    display: block;
}

.mod-chip-tip-head {
    display: block;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-heading);
    font-weight: 700;
}

.mod-chip-tip-row {
    display: block;
}

.mod-chip-tip-row b {
    display: inline-block;
    min-width: 62px;
    color: var(--text-primary);
}

/* ---- Chatlog module ---- */

/* Live toggle and channel switch, side by side in the card header */
.mod-log-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Same shape as a channel button, so the header reads as one row of controls */
.mod-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: rgba(16, 24, 31, 0.6);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.mod-live:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.mod-live.active {
    border-color: var(--success);
    color: var(--text-primary);
}

.mod-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--inactive-gray);
}

.mod-live.active .mod-live-dot {
    background: var(--success);
    animation: mod-live-pulse 1.8s ease-in-out infinite;
}

@keyframes mod-live-pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .mod-live.active .mod-live-dot { animation: none; }
}

/* Channel switch in the card header */
.mod-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mod-channel {
    padding: 2px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: rgba(16, 24, 31, 0.6);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.mod-channel:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.mod-channel.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.mod-channel-count {
    opacity: 0.75;
    font-weight: 400;
}

/* Console-style message list.
   The page wraps everything in .col-lg-12, which is centred - a log has to
   line up on the left, so it opts out here. */
.mod-log {
    text-align: left;
    min-height: 260px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: rgba(10, 15, 20, 0.85);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.45;
}

.mod-log-line {
    padding: 1px 0;
    word-break: break-word;
}

.mod-log-line:hover {
    background: rgba(90, 159, 212, 0.12);
}

.mod-log-time    { color: var(--inactive-gray); }
.mod-log-server  { color: var(--accent-purple); }
.mod-log-name    { color: var(--accent-cyan); font-weight: 600; }
.mod-log-arrow   { color: var(--inactive-gray); }
.mod-log-sep     { color: var(--inactive-gray); }
.mod-log-message { color: var(--text-primary); white-space: pre-wrap; }

/* Channel marker in the merged "All" view (public messages carry none) */
.mod-log-channel {
    display: inline-block;
    padding: 0 5px;
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: 1px;
}

.mod-log-channel-private { background: rgba(239, 68, 68, 0.20);  color: #fca5a5; }
.mod-log-channel-party   { background: rgba(245, 158, 11, 0.20); color: #fcd34d; }
.mod-log-channel-clan    { background: rgba(79, 209, 197, 0.20); color: #99f6e4; }

/* Report list */
.mod-table-reports {
    line-height: 1.2;
}

.mod-table-reports > tbody > tr > td {
    border-top: 1px solid var(--border-color);
}

.mod-report-row {
    cursor: pointer;
}

.mod-report-row:hover,
.mod-report-row:focus {
    background: rgba(79, 209, 197, 0.08);
    outline: none;
}

.mod-report-row .avatar-name-left {
    white-space: nowrap;
}

.mod-report-who,
.mod-report-who:hover {
    color: var(--accent-cyan);
    text-decoration: none;
}

.mod-report-who:hover {
    text-decoration: underline;
}

.mod-report-open,
.mod-report-open:hover {
    text-decoration: none;
}

.mod-report-head {
    color: var(--text-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Compact two-column key/value list used on the report pages */
.mod-dl-inline {
    display: grid;
    grid-template-columns: minmax(90px, max-content) 1fr;
    gap: 4px 14px;
    align-items: baseline;
}

.mod-dl-inline dt,
.mod-dl-inline dd {
    margin: 0;
}

/* State badges of a report */
.mod-report-state-waiting  { background: rgba(245, 158, 11, 0.18); border: 1px solid var(--warning);       color: #fcd34d; }
.mod-report-state-progress { background: rgba(90, 159, 212, 0.18); border: 1px solid var(--accent-blue);   color: #bfdbfe; }
.mod-report-state-done     { background: rgba(16, 185, 129, 0.18); border: 1px solid var(--success);       color: #6ee7b7; }
.mod-report-state-other    { background: rgba(107, 114, 128, 0.18); border: 1px solid var(--inactive-gray); color: #d1d5db; }
