.theme-switch {
    position: fixed;
    top: 1.5rem;
    right: 9.5rem;
    z-index: 100;
    display: flex;
    background: var(--switcher-bg);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    padding: 0.3rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.theme-switch button {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.theme-switch button:hover {
    transform: scale(1.05);
}

.theme-switch .icon-light,
.theme-switch .icon-dark {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-switch .icon-light {
    opacity: 0;
    transform: rotate(-90deg);
}

.theme-switch .icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-switch .icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-switch .icon-dark {
    opacity: 0;
    transform: rotate(90deg);
}

@media (max-width: 640px) {
    .theme-switch {
        top: 4.5rem;
        right: 1rem;
    }
}
