/* =====================================================
   KD HMS TOP BAR
===================================================== */

.hms-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid var(--hms-border);
    padding: 12px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   FIX TOPBAR TEXT BREAK
========================= */

/* Prevent left side from shrinking */
.hms-topbar-left {
    flex-shrink: 0;
}

/* Keep title in single line */
.hms-topbar-left .hms-logo {
    white-space: nowrap;
}

/* Allow right menu to wrap instead */
.hms-topbar-right {
    flex-wrap: wrap;
}


/* =========================
   LEFT (LOGO)
========================= */
.hms-topbar-left {
    display: flex;
    align-items: center;
}

.hms-logo {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: var(--hms-primary);
}

/* =========================
   RIGHT (MENU)
========================= */
.hms-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* MENU LINKS */
.hms-topbar-right a {
    text-decoration: none;
    font-size: 14px;
    color: var(--hms-text);
    transition: color 0.2s ease;
}

.hms-topbar-right a:hover {
    color: var(--hms-primary);
}

/* =========================
   SPECIAL BUTTON (BOOK)
========================= */
.hms-topbar-right .hms-btn-primary {
    padding: 8px 14px;
    font-size: 13px;
}

/* =====================================================
   FLOATING NAV BUTTONS
===================================================== */

.hms-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hms-float-btn a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    border-radius: 50%;
    text-decoration: none;

    color: #fff;
    background: #2b7cff;

    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.2s ease;

    position: relative;
}

.hms-float-btn a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* TOOLTIP */
/* REQUIRED */
.hms-float-btn a {
    position: relative;
}

/* TOOLTIP (HIDDEN COMPLETELY) */
.hms-float-btn a::after {
    content: attr(title);

    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);

    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;

    white-space: nowrap;

    display: none;   /* 🔥 IMPORTANT FIX */
}

/* SHOW ONLY ON HOVER */
.hms-float-btn a:hover::after {
    display: block;
}

/* FIX DASHICONS */
.hms-float-btn .dashicons {
    font-size: 22px;
    width: auto;
    height: auto;
    line-height: 1;
}