/* --- Glidebryter (Toggle Switch) --- */
.switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}
.switch-label-text {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}
.switch-sub-text {
    display: block;
    font-weight: normal;
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

/* Selve bryteren */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--color-accent); /* Bruker sidens hovedfarge */
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--color-accent);
}
input:checked + .slider:before {
    transform: translateX(26px);
}