/* === SETTINGS SPECIFIC STYLES === */

.main-stage {
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 60px;
}

.main-stage::-webkit-scrollbar {
    width: 8px;
}

.main-stage::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.main-stage::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

.main-stage::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* === MODE DROPDOWN === */
.mode-container {
    position: relative;
}

.mode-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    min-width: 150px;
    justify-content: space-between;
    outline: none;
}

.mode-pill:hover, .mode-pill.active { 
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff; 
}

.mode-pill.active {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.mode-pill span { 
    color: #fff; 
    flex: 1;
    text-align: left;
}

.mode-pill i {
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.mode-pill.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    bottom: 120%;
    left: 0;
    width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.2s;
}

.dropdown-menu::-webkit-scrollbar { 
    width: 4px; 
}

.dropdown-menu::-webkit-scrollbar-thumb { 
    background: rgba(255,255,255,0.2); 
    border-radius: 4px; 
}

.dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:hover { 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
}

.dropdown-item.selected { 
    background: rgba(139, 92, 246, 0.15); 
    color: #8b5cf6; 
}

.dropdown-item i { 
    opacity: 0; 
    font-size: 14px; 
}

.dropdown-item.selected i { 
    opacity: 1; 
}

.settings-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.settings-header {
    text-align: center;
    margin-bottom: 20px;
}

.settings-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.settings-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

/* === SETTINGS SECTIONS === */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-section {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: visible;
}

.settings-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.section-header i {
    font-size: 24px;
    color: var(--accent-glow);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s var(--ease-elastic);
    overflow: visible;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.setting-item.danger {
    border-color: rgba(239, 68, 68, 0.2);
}

.setting-item.danger:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.setting-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.setting-value {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* === FORM ELEMENTS === */
.setting-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    min-width: 150px;
}

.setting-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.setting-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.setting-select option {
    background: #1a1a2e;
    color: #fff;
}

/* === THEME OPTIONS === */
.theme-options {
    display: flex;
    gap: 10px;
}

.theme-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-elastic);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.theme-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(139, 92, 246, 0.3);
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.theme-btn i {
    font-size: 16px;
}

/* === TOGGLE SWITCH === */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border-color: rgba(139, 92, 246, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.toggle-switch:hover .toggle-slider {
    border-color: rgba(255, 255, 255, 0.3);
}

/* === RANGE INPUT === */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.range-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: all 0.3s;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.7);
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    transition: all 0.3s;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.7);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* === ACTION BUTTONS === */
.btn-action {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-elastic);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-action i {
    font-size: 16px;
}

.btn-action.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-action.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

/* === SETTINGS FOOTER === */
.settings-footer {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.btn-save {
    padding: 16px 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-elastic);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(59, 130, 246, 0.5);
}

.btn-save:active {
    transform: translateY(0);
}

.btn-save i {
    font-size: 18px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .settings-title {
        font-size: 36px;
    }

    .settings-section {
        padding: 20px;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .theme-options {
        flex-direction: column;
        width: 100%;
    }

    .theme-btn {
        width: 100%;
        justify-content: center;
    }

    .range-container {
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}
