/* ==========================================
   SETTINGS PANEL (Fundal bleumarin, fără animație hover pe secțiuni, text alb)
========================================== */

.settings-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(0, 35, 70, 0.98) 0%, rgba(0, 15, 30, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(3, 157, 211, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    z-index: 2000;
    overflow-y: auto;
    color: #ffffff;
}

.settings-panel.active {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(3, 157, 211, 0.4);
}

.settings-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-header h2 i {
    color: #039DD3;
}

.close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.setting-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #003366;
    border: 1px solid rgba(3, 157, 211, 0.3);
    border-radius: 0.75rem;
    /* Am eliminat tranziția de transformare și culoare */
    transition: box-shadow 0.3s ease;
}

/* Am eliminat transform: translateX(5px) și schimbarea culorii de fundal */
.setting-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.setting-item label {
    display: block;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.color-picker {
    display: flex;
    gap: 1rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px #039DD3;
}

/* Comutator / Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:checked + .slider {
    background: #039DD3;
    border-color: #039DD3;
    box-shadow: 0 0 12px rgba(3, 157, 211, 0.6);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Glisante / Range Sliders */
input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #039DD3;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px #039DD3;
}

/* Selector Limba / Butoane Setări */
.language-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.lang-btn {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(3, 157, 211, 0.4);
    border-radius: 0.5rem;
    background: #003366;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Butoanele devin albastru deschis (#039DD3) cu text alb la hover */
.lang-btn:hover {
    border-color: #ffffff;
    background: #039DD3 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(3, 157, 211, 0.4);
}

/* Starea activă a butonului (selectat) */
.lang-btn.active {
    border-color: #ffffff !important;
    background: #039DD3 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(3, 157, 211, 0.7);
    position: relative;
}

.lang-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

@media (max-width: 480px) {
    .settings-panel {
        width: 100%;
        right: -100%;
        padding: 1.5rem;
    }
    
    .language-selector {
        grid-template-columns: 1fr;
    }
}