.tables-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px;
    background: transparent;
}

.table-section {
    flex: 1;
    min-width: 360px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: #0f1115;
    /* Deeper obsidian background */
    border: 1px solid rgba(57, 255, 20, 0.4);
    /* Sharper Fel Green border */
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 8px rgba(34, 197, 94, 0.08);
    /* Subtle outer glow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-table th {
    background: #0a0c10;
    /* Very dark header */
    color: #39FF14;
    /* Fel Green Neon */
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
    font-family: 'Cinzel', serif;
}

.modern-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.05);
    vertical-align: middle;
    color: #e2e8f0;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover td {
    background-color: rgba(34, 197, 94, 0.05);
    /* Very light green tint */
}

/* Fel Green Premium Row Surbrillance */
.modern-table tr.fel-green-row:hover {
    box-shadow: inset 0 0 10px rgba(34, 197, 94, 0.15);
    /* Slightly sharper hover glow */
    background-color: rgba(34, 197, 94, 0.06) !important;
    transition: all 0.2s ease;
}

.modern-table tr.fel-green-row-active {
    background-color: rgba(34, 197, 94, 0.12) !important;
    border-left: 2px solid #39FF14;
    /* Sharper neon green accent */
    box-shadow: inset 0 0 15px rgba(34, 197, 94, 0.2);
}

.player-name {
    font-weight: 600;
    color: #1e293b;
}

.class-name {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #6c757d;
}

.damage-value,
.healing-value {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    color: #2d3436;
}

.progress-cell {
    width: 120px;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background-color: #f1f3f5;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.2s ease-in-out;
}

.progress-fill.damage {
    background: linear-gradient(90deg, #ff6b6b, #d64545);
}

.progress-fill.healing {
    background: linear-gradient(90deg, #51cf66, #2b8a3e);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #ffd700;
    /* Or WoW */
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

/* --- COMMAND CENTER & TOGGLE CHIPS --- */
#command-center {
    backdrop-filter: blur(10px);
}

.control-pod {
    transition: all 0.3s ease;
}

.control-pod:hover {
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.toggle-chip {
    cursor: pointer;
    display: block;
}

.toggle-chip .chip-label {
    display: block;
    padding: 0.5rem 0.75rem;
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid rgba(57, 255, 20, 0.1);
    color: #64748b;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toggle-chip:hover .chip-label {
    border-color: rgba(57, 255, 20, 0.3);
    color: #94a3b8;
    background: rgba(26, 29, 35, 0.9);
}

.toggle-chip .peer:checked+.chip-label {
    background: rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.5);
    color: #fff;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2), inset 0 0 5px rgba(57, 255, 20, 0.1);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

/* --- PREMIUM UI EFFECTS --- */
.text-shadow-glow {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 5px rgba(255, 255, 255, 0.2);
}

.text-shadow-glow-green {
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5), 0 0 5px rgba(34, 197, 94, 0.3);
}

.text-wow-gold {
    color: #ffd700;
}

.text-shadow-gold {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Custom Scrollbar for Options Dropdowns */
#stored-logs-select option,
#session-selector option,
#target-filter-selection option {
    background-color: #0a0c10;
    color: #39ff14;
    padding: 10px;
}

/* --- MOBILE TABLE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .modern-table th.collapsible-header {
        cursor: pointer;
        position: relative;
        padding-right: 25px !important;
    }

    .modern-table th.collapsible-header::after {
        content: '▼';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        opacity: 0.5;
        transition: transform 0.3s ease;
        color: #39FF14;
    }

    .modern-table.show-col-amount th.col-amount::after,
    .modern-table.show-col-dps th.col-dps::after,
    .modern-table.show-col-pct th.col-pct::after {
        transform: translateY(-50%) rotate(180deg);
        opacity: 1;
    }

    /* Hide data columns by default on mobile */
    .modern-table td.col-amount,
    .modern-table td.col-dps,
    .modern-table td.col-pct {
        display: none;
    }

    /* Show when toggled (Reveal logic) */
    .modern-table.show-col-amount td.col-amount,
    .modern-table.show-col-dps td.col-dps,
    .modern-table.show-col-pct td.col-pct {
        display: table-cell;
        animation: slideInCol 0.2s ease-out;
    }

    @keyframes slideInCol {
        from {
            opacity: 0;
            transform: translateX(5px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}