/* ===================================================================== */
/* =                         Theme Toggle Styles                       = */
/* ===================================================================== */

.theme-toggle-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.theme-toggle-item .switch {
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    transition: background 0.18s ease;
}

.theme-toggle-item .switch .switch-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.18s ease, left 0.18s ease, background 0.18s ease;
}

.theme-toggle-item .switch .switch-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.theme-toggle-item .switch .switch-icon.sun { 
    left: 8px; 
}

.theme-toggle-item .switch .switch-icon.moon { 
    right: 8px; 
    opacity: 1; 
}

body[data-theme="light"] .theme-toggle-item .switch {
    background: rgba(220,33,76,0.95);
}

body[data-theme="light"] .theme-toggle-item .switch .switch-knob {
    left: 26px;
}

body[data-theme="light"] .theme-toggle-item .switch .switch-icon.sun {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

body[data-theme="light"] .theme-toggle-item .switch .switch-icon.moon {
    opacity: 0;
    transform: translateY(-50%) scale(0.85);
}

.theme-toggle-item:focus {
    outline: none;
}

.theme-toggle-item:focus-visible {
    box-shadow: 0 0 0 4px rgba(220,33,76,0.18);
    border-radius: 8px;
}
