/* ============================================
   Settings Page Styles
   ============================================ */

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 0 0.25rem;
    margin-bottom: 0.5rem;
}

.settings-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.settings-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    stroke-width: 2;
}

.settings-row-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.settings-row-icon.sky {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.settings-row-icon.green {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.settings-row-icon.indigo {
    background: rgba(129, 140, 248, 0.1);
    color: #818cf8;
}

.settings-row-icon.amber {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.settings-row-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.settings-row-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.settings-row-desc {
    font-size: 0.85rem;
    color: #64748b;
}

.settings-row-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.settings-row-right svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    color: #94a3b8;
}

/* ============================================
   Toggle Switch
   ============================================ */

.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #cbd5e1;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

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

.toggle input:checked + .toggle-slider {
    background-color: #38bdf8;
}

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

.toggle input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
    .settings-row {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .settings-row-icon {
        width: 36px;
        height: 36px;
    }

    .settings-row-icon svg {
        width: 18px;
        height: 18px;
    }

    .settings-row-label {
        font-size: 0.9rem;
    }

    .settings-row-desc {
        font-size: 0.8rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.settings-row:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: -2px;
}

.toggle:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .settings-card {
        background: #1e293b;
        border-color: rgba(148, 163, 184, 0.2);
    }

    .settings-row {
        border-bottom-color: rgba(148, 163, 184, 0.2);
    }

    .settings-row:hover {
        background-color: rgba(100, 116, 139, 0.1);
    }

    .settings-row-label {
        color: #f1f5f9;
    }

    .settings-row-desc {
        color: #cbd5e1;
    }

    .toggle-slider {
        background-color: #475569;
    }

    .toggle-slider::before {
        background-color: #e2e8f0;
    }
}

/* ============================================
   Danger Label
   ============================================ */

.settings-row-label-danger {
    color: #dc2626;
}

/* ============================================
   Notification Row Specific
   ============================================ */

.settings-row-notif {
    cursor: default;
}

.settings-row-notif:hover {
    background-color: transparent;
}
