/*
 * Theme toggle button. Kept in a standalone file because the entrance
 * (login/signup) layout does not load base.css but still renders the control.
 */
.fc-theme-toggle {
    --fc-theme-toggle-size: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--fc-theme-toggle-size);
    height: var(--fc-theme-toggle-size);
    padding: 0;
    border: 1px solid var(--fc-color-palette-d7e1ef);
    border-radius: 50%;
    background: var(--fc-color-surface);
    color: var(--fc-color-palette-65758d);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.fc-theme-toggle:hover {
    color: var(--fc-color-primary-hover);
    border-color: var(--fc-color-primary);
    background: var(--fc-color-success-soft);
}

.fc-theme-toggle:focus-visible {
    outline: 3px solid rgba(var(--fc-color-shadow-brand-rgb), 0.28);
    outline-offset: 2px;
}

.fc-theme-toggle__icon {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fc-theme-toggle__icon--sun {
    display: none;
}

[data-bs-theme="dark"] .fc-theme-toggle__icon--sun {
    display: inline-block;
}

[data-bs-theme="dark"] .fc-theme-toggle__icon--moon {
    display: none;
}

.fc-theme-toggle--floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    box-shadow: 0 6px 18px rgba(var(--fc-color-shadow-rgb), 0.14);
    backdrop-filter: blur(8px);
}

@media (max-width: 575.98px) {
    .fc-theme-toggle {
        --fc-theme-toggle-size: 30px;
    }
}