/* ========================================
   Floating Helpdesk Button
   ======================================== */

.floating-helpdesk {
    position: fixed !important;
    left: 24px !important;
    right: auto !important;
    bottom: 175px !important;
    top: auto !important;
    transform: none !important;
    z-index: 999;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

/* Tooltip Label */
.helpdesk-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-helpdesk:hover .helpdesk-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Main Button */
.helpdesk-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.4),
        0 0 0 0 rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 12px;
}

.helpdesk-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.helpdesk-btn:hover {
    transform: scale(1.15);
    box-shadow:
        0 12px 40px rgba(59, 130, 246, 0.5),
        0 0 0 8px rgba(59, 130, 246, 0.2);
}

.helpdesk-btn:hover::before {
    opacity: 1;
}

/* Helpdesk Icon Image */
.helpdesk-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Pulse Animation */
.helpdesk-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    animation: helpdeskPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes helpdeskPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-helpdesk {
        left: 20px !important;
        bottom: 90px !important;
    }

    .helpdesk-btn {
        width: 50px;
        height: 50px;
        padding: 8px;
    }

    .helpdesk-icon {
        width: 32px;
        height: 32px;
    }

    .helpdesk-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-helpdesk {
        left: 12px !important;
        bottom: 75px !important;
    }

    .helpdesk-btn {
        width: 45px;
        height: 45px;
        padding: 7px;
    }

    .helpdesk-icon {
        width: 28px;
        height: 28px;
    }
}