/* ===== SESSION CONTROL MODAL - CORE STYLES ===== */

/* Custom Scrollbar Styles */
html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: #0d0d0d;
}

html::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
    border: 2px solid #0d0d0d;
}

html::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #333 #0d0d0d;
}

/* Overlay */
.session-control-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Container */
.session-control-modal {
    background: #2a2a2a;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    color: white;
    overflow-y: auto;
    padding: 20px;
    max-height: 90vh;
}

/* Header */
.session-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.session-control-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

.session-control-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.session-control-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Content Container */
.session-control-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.session-control-content h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #555;
    padding-bottom: 8px;
}

/* ===== SESSION OVERVIEW ===== */
.session-overview {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #444;
}

.overview-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-value {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== STATISTICS TABLE ===== */
.session-stats-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #444;
}

.session-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
}

.session-stats-table thead th {
    background: #333;
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #444;
}

.session-stats-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    color: #ddd;
}

.session-stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* Row Styles */
.player-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hero-row {
    background: rgba(74, 144, 164, 0.2);
}

.hero-row:hover {
    background: rgba(74, 144, 164, 0.25);
}

.hero-indicator {
    font-size: 0.75rem;
    color: #4a90a4;
    font-weight: 600;
    margin-left: 4px;
}

/* Profit Colors */
.profit-positive {
    color: #27ae60;
    font-weight: 600;
}

.profit-negative {
    color: #e74c3c;
    font-weight: 600;
}

/* ===== SESSION SUMMARY ===== */
.session-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #444;
}

.session-summary h3 {
    margin-bottom: 15px;
}

.session-summary p {
    margin: 8px 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.session-summary p strong {
    color: #fff;
    min-width: 130px;
    display: inline-block;
}

/* ===== DEVELOPMENT NOTICE (if needed) ===== */
.development-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.development-notice h3 {
    color: #ffc107;
    margin: 0 0 10px 0;
    font-size: 1rem;
    border: none;
    padding: 0;
}

.development-notice p {
    color: #e0e0e0;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .session-control-modal {
        width: 95%;
        padding: 15px;
        max-height: 95vh;
    }

    .session-control-header h2 {
        font-size: 1.2rem;
    }

    .overview-stats {
        gap: 15px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .session-stats-table {
        font-size: 0.85rem;
    }

    .session-stats-table thead th,
    .session-stats-table tbody td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .session-summary p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .session-control-modal {
        width: 98%;
        padding: 12px;
    }

    .session-control-header {
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .session-control-header h2 {
        font-size: 1.1rem;
    }

    .session-control-content {
        gap: 15px;
    }

    .overview-stats {
        flex-direction: column;
        gap: 10px;
    }

    /* Make table scrollable on very small screens */
    .session-stats-container {
        overflow-x: auto;
    }

    .session-stats-table {
        min-width: 500px;
    }
}