/* Snackbar styles */
.snackbar {
    width: 90%;
    max-width: 600px;
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    color: var(--md-sys-color-inverse-on-surface);
    background-color: var(--md-sys-color-inverse-surface);
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--md-sys-elevation-2);
    z-index: 1000;
    opacity: 0;
    transition: all var(--motion-expressive-default-effects);
}

.snackbar .hidden {
    display: none;
}

.snackbar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.snackbar-message {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
}

.snackbar-undo,
.snackbar-update {
    background-color: transparent;
    color: var(--md-sys-color-inverse-primary);
    border: none;
    padding-block: 8px;
    padding-inline: 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color var(--motion-expressive-default-spatial);
}

.snackbar-close {
    background: none;
    border: none;
    color: var(--md-sys-color-inverse-on-surface);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.snackbar-close:hover,
.snackbar-undo:hover,
.snackbar-update:hover {
    background-color: color-mix(in srgb, var(--md-sys-color-inverse-on-surface) 10%, transparent);
}

.snackbar-close .material-symbols-rounded {
    font-size: 20px;
}

@media (min-width: 768px) {
    .snackbar { 
        bottom: 20px;
    }
}
