/* Rolls Page Styles */

.rolls-container {
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 20px 40px 40px;
}

.rolls-header {
    text-align: center;
    margin-bottom: 30px;
}

.rolls-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, #e0b3ff 0%, #ffb3d9 50%, #b3e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 2px;
}

.rolls-header .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* Admin Controls */
.admin-controls {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-controls.hidden {
    display: none;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-group label {
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
    min-width: 100px;
}

.user-select {
    flex: 1;
    max-width: 400px;
    padding: 10px 15px;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(100, 100, 150, 0.4);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-select:hover,
.user-select:focus {
    border-color: rgba(150, 150, 200, 0.6);
    background: rgba(40, 40, 60, 0.8);
    box-shadow: 0 0 10px rgba(100, 100, 200, 0.2);
    outline: none;
}

.user-select option {
    background: rgba(20, 20, 35, 0.95);
    color: rgba(255, 255, 255, 0.9);
}

/* Roll Type Selector */
.roll-type-selector {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.roll-type-selector h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(100, 100, 150, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: rgba(150, 150, 200, 0.6);
    background: rgba(40, 40, 60, 0.8);
}

.radio-label input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(150, 150, 200, 0.6);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked {
    border-color: rgba(224, 179, 255, 0.9);
    background: linear-gradient(135deg, rgba(224, 179, 255, 0.3), rgba(179, 224, 255, 0.3));
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0b3ff, #b3e0ff);
}

.radio-label span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.radio-label input[type="radio"]:checked + span {
    color: rgba(255, 255, 255, 0.95);
}

/* Server Filters */
.server-filters {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.server-filters h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.server-btn {
    padding: 10px 20px;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(100, 100, 150, 0.4);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.server-btn:hover {
    border-color: rgba(150, 150, 200, 0.6);
    background: rgba(40, 40, 60, 0.8);
    box-shadow: 0 2px 10px rgba(100, 100, 200, 0.2);
}

.server-btn.active {
    background: linear-gradient(135deg, rgba(224, 179, 255, 0.2), rgba(179, 224, 255, 0.2));
    border-color: rgba(200, 200, 255, 0.6);
    box-shadow: 0 0 15px rgba(200, 200, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

/* Statistics Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    border-color: rgba(150, 150, 200, 0.5);
    box-shadow: 0 6px 25px rgba(100, 100, 200, 0.2);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e0b3ff 0%, #b3e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.chart-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 600;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.chart-wrapper canvas {
    max-height: 100%;
}

/* Leaderboard */
.leaderboard {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.leaderboard.hidden {
    display: none;
}

.leaderboard h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Recent Rolls Table */
.recent-rolls {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.recent-rolls h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.table-wrapper {
    overflow-x: auto;
}

.rolls-table {
    width: 100%;
    border-collapse: collapse;
}

.rolls-table thead {
    background: rgba(30, 30, 50, 0.6);
}

.rolls-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: rgba(200, 200, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    border-bottom: 2px solid rgba(100, 100, 150, 0.3);
}

.rolls-table td {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(100, 100, 150, 0.15);
    font-size: 0.95rem;
}

.rolls-table tbody tr {
    transition: background-color 0.2s ease;
}

.rolls-table tbody tr:hover {
    background: rgba(100, 100, 150, 0.1);
}

.rolls-table .skill-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.rolls-table .roll-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.rolls-table .roll-positive {
    color: #4ade80;
}

.rolls-table .roll-negative {
    color: #f87171;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    color: var(--text-primary, #e0e0e0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rolls-container {
        padding: 0 20px;
        margin-top: 80px;
    }

    .rolls-header h1 {
        font-size: 2rem;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .rolls-table {
        font-size: 0.85rem;
    }

    .rolls-table th,
    .rolls-table td {
        padding: 8px 10px;
    }
}
