/* Settings Panel Styles */
.settings-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    height: 80%;
    max-height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.settings-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.settings-tabs {
    display: flex;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.tab-btn.active {
    border-bottom-color: #4CAF50;
    color: #4CAF50;
    font-weight: bold;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-content {
    display: none;
}

/* Settings Tab */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.setting-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.setting-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.reset-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.reset-btn:hover {
    background-color: #d32f2f;
}

/* Leaderboard Tab */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 16px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.leaderboard-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.leaderboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.leaderboard-table tr:hover {
    background-color: #f1f1f1;
}

/* Style for the player's own score */
.leaderboard-table tr.own-score {
    background-color: #e6f7ff;
    font-weight: bold;
}

/* Stats Tab */
.stats-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.your-stats {
    background-color: #e8f5e9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.your-stats h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2e7d32;
}

/* Settings toggle button */
#settings-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #4CAF50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#settings-toggle:hover {
    background-color: #e8f5e9;
    transform: scale(1.05);
}

/* Add this at the end of the file */
.test-btn {
    padding: 8px 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.test-btn:hover {
    background-color: #0b7dda;
}

/* Add these styles for the leaderboard tabs */
.leaderboard-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.leaderboard-tab-btn {
    padding: 8px 15px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.leaderboard-tab-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.leaderboard-tab-btn.active {
    border-bottom-color: #4CAF50;
    color: #4CAF50;
    font-weight: bold;
}

.reset-info {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-style: italic;
} 

