/* ================================================================
   SETTINGS DROPDOWN - PRODUCTION-GRADE
   ================================================================ */

/* ---------- CRITICAL: SVG Base Rules ---------- */
svg {
    display: block;
    flex-shrink: 0;
}

/* ---------- Settings Dropdown Container ---------- */
.settings-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    background: rgba(0, 0, 0, 0.986);
    border-radius: 8px;
    margin-left: 48px;
}

.settings-dropdown.open {
    max-height: 158px;
    opacity: 1;
}

/* ---------- Settings List ---------- */
.settings-list {
    padding: 4px 0;
}

/* ---------- Settings Items ---------- */
.setting-item {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 32px;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 6px;
    color: #ff3399
}

.setting-item:hover {
    background: #ff33ff3b
}

.setting-item+.setting-item {
    margin-top: 16px;
}

/* ========== ICON SIZING (15px) ========== */
.setting-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

/* ========== LABEL SIZING ========== */
.setting-label {
    flex: 1;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== TRAILING ICON/TOGGLE (10px or 30px) ========== */
.setting-trailing {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    color: #ff3399
}

/* Trailing Icon (10px) */
.setting-trailing.icon {
    width: 13px;
    height: 13px;
    margin-left: 16px;
}

.setting-trailing.icon svg {
    width: 13px;
    height: 13px;
}

/* ========== TOGGLE SWITCH (30x16) ========== */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    transition: background 0.25s ease;
    cursor: pointer;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 2px;
    top: 2px;
    background: #cc0066;
        border-radius: 50%;
        transition: transform 0.25s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.toggle-switch input:checked+.toggle-slider {
    background: #013a06;
}

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

/* ========== CHEVRON ROTATION (10px) ========== */
.settings-chevron {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #ff3399;
    margin-left: auto;
    margin-right: 16px;
}

.settings-chevron svg {
    width: 13px;
    height: 13px;
}

.settings-chevron.open {
    transform: rotate(180deg);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .setting-item {
        padding: 0 12px;
        height: 28px;
        gap: 6px;
    }

    .setting-icon {
        width: 13px;
        height: 13px;
    }

    .setting-icon svg {
        width: 13px;
        height: 13px;
    }

    .setting-label {
        font-size: clamp(13px, 1vw, 14px);
    }

    .settings-dropdown {
        margin-left: 40px;
    }
}