.toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    background-color: var(--colore-container);
    color: white;
    font-family: 'Signika Negative', sans-serif;
}

.toggle-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: #2a2a2a;
}

.toggle-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    background-color: var(--colore-container);
}

.toggle-button:disabled,
.toggle-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    background-color: #222;
    color: #999;
}

.toggle-button.toggle-compact {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    flex: 0 0 48px;
}

@media (max-width: 576px) {
    .toggle-button.toggle-compact {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: none;
    }
}

.toggle-button.toggle-expanded {
    padding: 8px 16px;
}

.toggle-button-icon {
    font-size: 28px;
    transition: font-variation-settings 0.3s ease, color 0.3s ease;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 28;
    vertical-align: middle;
    user-select: none;
}

/* Stato: Non Aggiunto (Icona grigia e vuota) */
.toggle-button.is-not-added .toggle-button-icon.is-empty {
    color: #666;
    font-variation-settings: 'FILL' 0;
}

/* Stato: Aggiunto (Icona colorata e riempita) */
.toggle-button.is-added .toggle-button-icon.is-filled {
    color: hsl(var(--button-hue, 200), 80%, 60%);
    font-variation-settings: 'FILL' 1;
}

.toggle-button-text {
    margin-left: 10px;
    font-size: 0.95rem;
    color: white;
}

.toggle-button.is-added {
    background-color: hsla(var(--button-hue, 200), 80%, 40%, 0.2);
    border: 1px solid hsl(var(--button-hue, 200), 80%, 60%);
}

.toggle-button.is-not-added {
    background-color: var(--colore-container);
    border: 1px solid transparent;
}