/* Speed Dial Menu */
.dh-speed-dial-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background-color: transparent;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99998;
}

.dh-speed-dial-backdrop.active {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: all;
}

.dh-speed-dial {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Låt klick passera igenom till sökknappen */
}

.dh-speed-dial.open {
    pointer-events: auto; /* Aktivera klick när menyn är öppen */
}

.dh-speed-dial-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dh-primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
    pointer-events: auto; /* FAB-knappen ska alltid kunna ta emot klick */
}

.dh-speed-dial-fab:hover {
    background: var(--dh-primary-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.dh-speed-dial-fab .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.dh-speed-dial.open .dh-speed-dial-fab .dashicons {
    transform: rotate(45deg);
}

.dh-speed-dial-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.dh-speed-dial.open .dh-speed-dial-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dh-speed-dial-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: var(--dh-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--dh-border-color);
    position: relative;
}

.dh-speed-dial-action:hover {
    background: var(--dh-primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.dh-speed-dial-action .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dh-speed-dial-action::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dh-text-dark);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dh-speed-dial.open .dh-speed-dial-action::after {
    opacity: 1;
    visibility: visible;
}

/* Separator mellan grupper */
.dh-speed-dial-separator {
    width: 32px;
    height: 2px;
    background: var(--dh-border-color);
    margin: 4px 8px;
    border-radius: 1px;
    align-self: center;
}

/* Mobile responsive styles for Speed Dial */
@media (max-width: 768px) {
    .dh-speed-dial {
        bottom: 20px;
        right: 20px;
    }
}