/* Settings Page Styles */

.settings-page {
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.settings-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.settings-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.setting-section {
    margin-bottom: 2rem;
}

.setting-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.setting-info {
    flex: 1;
}

.setting-info label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.setting-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Form Controls */
.setting-item select {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.setting-item select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Toggle Switch */
.setting-item input[type="checkbox"] {
    width: 48px;
    height: 24px;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.setting-item input[type="checkbox"]:checked {
    background: var(--primary);
}

.setting-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.setting-item input[type="checkbox"]:checked::before {
    left: 26px;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-page {
        padding: 0;
    }

    .settings-header {
        padding: 1rem;
    }

    .settings-header h1 {
        font-size: 1.5rem;
    }

    .btn-back {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .settings-content {
        padding: 1rem;
    }

    .setting-section {
        padding: 1.25rem;
    }

    .setting-section h2 {
        font-size: 1.1rem;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .setting-info label {
        font-size: 0.9rem;
    }

    .setting-info p {
        font-size: 0.8rem;
    }

    #status-select,
    #theme-select {
        width: 100%;
    }
}

/* Danger Zone Styling */
.danger-zone {
    margin-top: 3rem;
}

.danger-zone h2 {
    margin-bottom: 1rem;
}

.danger-zone .setting-item {
    border-bottom: none;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

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

.btn-modal-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-danger:hover {
    background: #dc2626;
}

.btn-modal-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-modal-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-secondary:hover {
    background: var(--bg-tertiary);
}
