/* ========== FAB MENU ========== */
.fab-menu-scrim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9;
}

.fab-menu-scrim.active {
    opacity: 1;
    visibility: visible;
}

.fab-menu-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

#fabIcon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-menu-container.expanded #fabIcon {
    transform: rotate(45deg);
}

.fab-menu-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem;
    height: 56px;
    border: none;
    border-radius: 28px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    font-family: var(--md-ref-typeface-plain, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.8) translateY(8px);
    white-space: nowrap;
    text-decoration: none;
}

.fab-menu-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fab-menu-item:active {
    transform: scale(0.95);
}

.fab-menu-item .material-symbols-outlined {
    font-size: 24px;
}

.fab-menu-item .item-text {
    font-size: 0.875rem;
}

.fab-menu-container md-fab {
    --md-fab-container-color: var(--md-sys-color-primary);
    --md-fab-icon-color: var(--md-sys-color-on-primary);
    --md-fab-label-text-color: var(--md-sys-color-on-primary);
}

.fab-menu-container.expanded .fab-menu-item:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fab-menu-container.expanded .fab-menu-item:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fab-menu-container.expanded .fab-menu-item:nth-child(3) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fab-menu-container.expanded .fab-menu-item:nth-child(4) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fab-menu-container.collapsing .fab-menu-item {
    pointer-events: none;
}

.fab-menu-container.collapsing .fab-menu-item:nth-child(1) {
    transition-delay: 0.15s;
}

.fab-menu-container.collapsing .fab-menu-item:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-menu-container.collapsing .fab-menu-item:nth-child(3) {
    transition-delay: 0.05s;
}

.fab-menu-container.collapsing .fab-menu-item:nth-child(4) {
    transition-delay: 0s;
}