.theme-switch-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Matches auth-button */
    background: var(--surface-strong);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px; /* Matches auth-button */
    padding: 0px 0px 0px 16px; /* Matches auth-button */
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; /* Matches auth-button */
    max-width: 220px; /* Matches auth-button */
    white-space: nowrap; /* Matches auth-button */
    overflow: hidden; /* Matches auth-button */
    text-overflow: ellipsis; /* Matches auth-button */
}

.theme-switch-container:hover,
.theme-switch-container:focus-visible {
    border-color: var(--accent);
    outline: none;
}

/* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
    transform: scale(0.6);
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--accent); /* Use theme variable */
    transition: 0.4s;
    border-radius: 30px;
    overflow: hidden;
}

.circle {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 20px;
    left: 0.3em;
    bottom: 0.3em;
    background-color: #fff000;
    transition: 0.4s;
}

.switch input:checked + .slider .circle {
    transform: rotate(0deg) translateX(1.5em) !important;
}

.switch input:checked + .slider .circle .shine {
    transform: translate(0%, 0%) !important;
}

.switch input:checked + .slider .circle .moon {
    left: -10%;
    opacity: 1;
    transform: translateY(-60%);
}

.moon {
    position: absolute;
    left: -100%;
    top: 50%;
    opacity: 0;
    background-color: var(--accent); /* Use theme variable */
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 99999px;
    transform: translateY(-50%);
    transition: all 0.4s;
}

.shine {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    background-color: #fff000;
    border-radius: 1rem;
    transition: all 0.4s;
}

.shine-1 {
    transform: translate(-50%, -375%);
}
.shine-2 {
    transform: translate(175%, -275%);
}
.shine-3 {
    transform: translate(275%, -50%);
}
.shine-4 {
    transform: translate(175%, 175%);
}
.shine-5 {
    transform: translate(-50%, 275%);
}
.shine-6 {
    transform: translate(-275%, 175%);
}
.shine-7 {
    transform: translate(-375%, -50%);
}
.shine-8 {
    transform: translate(-275%, -275%);
}
