﻿
.brand-text {
    color: #2986e2;
    font-weight: bold;
}

.modal {
    z-index: 100 !important;
}


.btn-truemed {
    /*background: linear-gradient(135deg, var(--truemed-primary), var(--truemed-accent));*/
    background: linear-gradient(90deg, #005b96, #00b4d8);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    width: 100%;
    font-size: 0.95rem;
    box-shadow: 0 8px 16px #0b4f80;
    box-shadow: 0 8px 16px rgba(11, 79, 128, 0.32);
}

    .btn-truemed:hover {
        filter: brightness(1.04);
        box-shadow: 0 10px 22px #0b4f80;
        box-shadow: 0 10px 22px rgba(11, 79, 128, 0.4);
        color: #fafafa;
    }

.btn-truemed-cancel {
    background: linear-gradient(135deg, #cdddec, #bcd0e0);
    border: none;
    color: #255a74;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    width: 100%;
    font-size: 0.95rem;
    box-shadow: 0 8px 16px #1e466e;
    box-shadow: 0 8px 16px rgba(30, 70, 110, 0.18);
    transition: all 0.18s ease;
}

    .btn-truemed-cancel:hover, .btn-truemed-cancel:active {
        filter: brightness(1.08);
        box-shadow: 0 12px 22px #193c5f;
        box-shadow: 0 12px 22px rgba(25, 60, 95, 0.25);
        color: #1e4c62;
    }

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
}

.form-control,
.form-select {
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--truemed-primary);
    }

.input-group-text {
    border-radius: 0.55rem 0 0 0.55rem;
    border-right: 0;
    background: #F3FAFF;
    color: #5f7a8f;
}

.header-button .user-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffffff;
    /*border: 2px solid #00aacc;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0b4f80;
    transition: 0.2s ease;
}

.header-button .offline {
    border: 2px solid #d1d1d1 !important;
    box-shadow: 0 0 6px #b5b5b5;
    box-shadow: 0 0 6px rgba(181, 181, 181, 0.45);
    animation: offlinePulse 2.6s infinite ease-out;
}

    .header-button .offline ::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        background: #b5b5b5;
        border-radius: 50%;
        border: 2px solid #ffffff;
        bottom: 6px;
        right: 6px;
    }


@keyframes offlinePulse {
    0% {
        box-shadow: 0 0 6px rgba(181, 181, 181, 0.45);
    }

    50% {
        box-shadow: 0 0 12px rgba(181, 181, 181, 0.2);
    }

    100% {
        box-shadow: 0 0 6px rgba(181, 181, 181, 0.45);
    }
}

.header-button .online {
    border: 2px solid #28A745 !important;
    box-shadow: 0 0 8px #28A745;
}

    .header-button .online::after {
        content: "";
        position: absolute;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: #28a745;
        border: 2px solid #ffffff;
        bottom: 6px;
        right: 6px;
        box-shadow: 0 0 0 0 #28a745;
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6);
        animation: online-pulse 1.6s infinite;
    }

@keyframes online-pulse {
    0% {
        box-shadow: 0 0 0 0 #28a745;
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px #28a745;
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 #28a745;
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.header-button .user-menu {
    border-radius: 12px;
    padding: 8px 0;
    background: #ffffff;
    min-width: 220px;
}

    .header-button .user-menu .dropdown-header {
        font-size: 15px;
        font-weight: 600;
        color: #0b4f80;
        padding: 10px 18px;
    }

    .header-button .user-menu .dropdown-item {
        padding: 10px 18px;
        font-size: 14px;
        display: flex;
        align-items: center;
        color: #0b4f80;
    }

        .header-button .user-menu .dropdown-item:hover {
            background: #e9f7ff;
            color: #2f9be0;
        }

        .header-button .user-menu .dropdown-item.text-danger:hover {
            background: #ffe5e5;
        }

.header-button .user-greeting {
    font-size: 15px;
    font-weight: 600;
    color: #0b4f80;
    padding: 5px 0 !important;
    border-bottom: 1px solid #e9f4ff;
    background: #f7fbff;
    max-width: 215px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}


.announcement-bar {
    width: 100%;
    max-width: 100vw; /* 🔴 Never exceed viewport width */
    background: linear-gradient(90deg, #005b96, #00b4d8);
    color: #ffffff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden; /* 🔴 Hide overflow inside bar */
    z-index: 9999;
    box-sizing: border-box;
}

    .announcement-bar .announcement-label {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
        flex-shrink: 0;
    }

        .announcement-bar .announcement-label img {
            max-height: 30px;
        }

    .announcement-bar .announcement-scroll {
        overflow: hidden;
        position: relative;
        flex: 1;
    }


    .announcement-bar .announcement-item {
        color: #fff;
        text-decoration: none;
        margin-right: 60px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .announcement-bar .tag {
        background: #ffffff;
        background: rgba(255,255,255,0.2);
        padding: 2px 8px;
        border-radius: 20px;
        margin-right: 6px;
        font-size: 11px;
        font-weight: 600;
    }

    .announcement-bar .close-btn {
        background: transparent;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        opacity: 0.75;
        flex-shrink: 0;
    }

        .announcement-bar .close-btn:hover {
            opacity: 1;
        }

@media (max-width: 576px) {
    .announcement-bar .announcement-label {
        font-size: 12px;
    }

    .announcement-bar .announcement-item {
        font-size: 13px;
        margin-right: 40px;
    }
}

.tm-app-banner {
    border-radius: 12px;
    padding: 10px 20px;
    background: #005b96;
    color: #e5f3ff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    box-shadow: 0 18px 40px rgba(0, 53, 112, 0.45);
}

.tm-app-banner-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-app-banner-icon i {
    color: #ffffff;
    font-size: 14px;
}

.tm-app-banner-text {
    font-size: 14px;
}

.tm-app-banner-text strong {
    font-weight: 600;
}
