.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--nb-radius);
    background: var(--bg-primary);
    border: 2px solid var(--nb-border);
    box-shadow: 3px 3px 0 var(--nb-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease,
                background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
    color: var(--text-primary);
    flex-shrink: 0;
    transform: rotate(-2deg);
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent-ink);
    transform: translate(-2px, -2px) rotate(0);
    box-shadow: 5px 5px 0 var(--nb-shadow);
}

.theme-toggle:active {
    transform: translate(3px, 3px) rotate(0);
    box-shadow: 0 0 0 var(--nb-shadow);
}

.theme-toggle .material-icons-round {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:hover .material-icons-round {
    transform: rotate(180deg) scale(1.1);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 480px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    .theme-toggle .material-icons-round { font-size: 18px; }
}