/* Hotline button shared by the login page and the dashboard: red, ringing phone.
   Fixed in the bottom-left corner of the screen. */
.hotline-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotline-fab:hover,
.hotline-fab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.55);
}

.hotline-fab-icon {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #dc2626;
    font-size: 20px;
}

/* expanding rings behind the icon */
.hotline-fab-icon::before,
.hotline-fab-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #dc2626;
    opacity: 0;
    animation: hotline-ring 2s ease-out infinite;
}

.hotline-fab-icon::after {
    animation-delay: 1s;
}

.hotline-fab-icon i {
    transform-origin: 50% 50%;
    animation: hotline-shake 2s ease-in-out infinite;
}

.hotline-fab-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.hotline-fab-text small {
    font-size: 11px;
    opacity: 0.9;
}

.hotline-fab-text strong {
    font-size: 16px;
    letter-spacing: 0.02em;
}

@keyframes hotline-shake {
    0%, 55%, 100% { transform: rotate(0); }
    5%  { transform: rotate(-22deg); }
    10% { transform: rotate(22deg); }
    15% { transform: rotate(-22deg); }
    20% { transform: rotate(22deg); }
    25% { transform: rotate(-16deg); }
    30% { transform: rotate(16deg); }
    35% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    45% { transform: rotate(0); }
}

@keyframes hotline-ring {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hotline-fab-icon::before,
    .hotline-fab-icon::after,
    .hotline-fab-icon i {
        animation: none;
    }
}



@media (max-width: 768px) {
    .hotline-fab {
        left: 10px;
        bottom: 10px;
        gap: 8px;
        padding: 4px 14px 4px 4px;
    }


    .hotline-fab-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .hotline-fab-text strong {
        font-size: 14px;
    }
}
