﻿/* ========================================
   SETTINGS/CONFIG MODAL STYLES
   ======================================== */

.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.config-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.config-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    overflow-y: auto;
}

.config-modal-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================================
   CONFIG SECTIONS
   ======================================== */

.config-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.config-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-description {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ========================================
   TOGGLE SWITCH
   ======================================== */

.toggle-switch {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ========================================
   INFO BOX (For Club/Course display)
   ======================================== */

.config-info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   BUTTONS
   ======================================== */

.config-modal-content .action-buttons {
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.config-modal-content .btn {
    min-width: 120px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
    .config-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .config-modal-body {
        padding: 20px;
        gap: 16px;
    }
}