/* Emergency Floating Button Styles */
.emergency-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #d01418;
    /* Dark Red to signal emergency */
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    animation: pulse-red 2s infinite;
}

.emergency-btn i {
    font-size: 30px;
}

.emergency-btn:hover {
    transform: scale(1.1);
    background-color: #ff0000;
}

.emergency-btn .tooltip {
    position: absolute;
    right: 80px;
    background: #222;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.emergency-btn:hover .tooltip {
    opacity: 1;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(208, 20, 24, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(208, 20, 24, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(208, 20, 24, 0);
    }
}

/* RTL Adjustment */
[dir="rtl"] .emergency-btn {
    right: auto;
    left: 30px;
}

[dir="rtl"] .emergency-btn .tooltip {
    right: auto;
    left: 80px;
}