.theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 40px;
    height: 40px;
    background-color: var(--button-bg);
    border: 1px solid var(--button-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Добавляем flex для центрирования */
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-switcher:hover {
    transform: scale(1.1);
}

/* Иконка солнца/луны */
.theme-switcher .icon {
    width: 20px;
    height: 20px;
    /* Убираем margin, так как центрирование теперь через flex */
    background-color: var(--button-text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

body[data-theme='light'] .theme-switcher .icon {
    background-color: #fff;
    box-shadow: inset -8px -8px 0 0 #333;
}