.badge-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-card {
    transition: 0.3s ease-in-out;
}

    .stat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

.ticker-wrap {
    overflow: hidden;
    position: relative;
    height: 32px;
}

.ticker {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.ticker-move {
    display: inline-block;
    padding-left: 100%;
    animation: tickerScroll 45s linear infinite;
    padding-top: 5px;
}

.ticker-item {
    display: inline-block;
    margin-right: 4rem;
    font-weight: 500;
    font-size: 1rem;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

#centeredAlert {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 440px;
    transform: translate(-50%, -50%);
    z-index: 1055;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
}

@media (max-width: 480px) {
    #centeredAlert {
        width: 340px;
        padding: 1.5rem;
    }
}
@media (max-width: 330px) {
    #centeredAlert {
        width: 290px;
        padding: 1.3rem;
    }
}


/*PATIENT SIDE CSS*/

.chat-box {
    height: 300px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Common bubble */
.chat-message {
    display: flex;
    max-width: 100%;
}

    /* User message */
    .chat-message.user {
        justify-content: flex-end;
    }

        .chat-message.user .msg {
            background-color: #d1e7dd;
            color: #000;
            border-radius: 18px 18px 0 18px;
        }

    /* Hospital message */
    .chat-message.hospital {
        justify-content: flex-start;
    }

        .chat-message.hospital .msg {
            background-color: #e2e3e5;
            color: #000;
            border-radius: 18px 18px 18px 0;
        }

/* Bubble itself */
.msg {
    padding: 10px 14px;
    word-wrap: break-word;
}

.msg-styling {
    padding: 5px 15px;
    text-align: left;
}

/* Popup transition */
#hospitalChatPopup {
    transition: opacity 0.3s ease;
    opacity: 1;
}

    #hospitalChatPopup[style*="display: none"] {
        opacity: 0;
    }

.custom-select-wrapper {
    width: 100%;
}

.custom-select-btn {
    width: 100%;
    padding: 8px 14px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    cursor: pointer;
}

/* Common styles for all dropdowns */
.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
}

    /* Show the dropdown when toggled */
    .custom-select-options.show {
        display: block;
    }

/* Override just for message dropdown to open upward */
#messageSelectOptions {
    top: auto !important;
    bottom: 100% !important;
}


.custom-select-options li {
    cursor: pointer;
}

    .custom-select-options li:hover {
        background-color: #e9ecef;
    }


.no-shadow {
    box-shadow: none !important;
}
