/* ==============================
   FLOATING TOGGLE
============================== */
.floating-menu-toggle1 {
    position: fixed;
    top: 5px;
    right: 15px;
    background-color: rgba(0, 102, 204, 0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    font-weight: bold;
    user-select: none;
    font-family: monospace;
    line-height: 1;
    
    /* === THÊM DÒNG NÀY === */
    transition: transform 0.35s ease, background-color 0.3s;
}
/* ==============================
   RESET RIÊNG CHO MENU
============================== */
#floatingMenu1,
#floatingMenu1 * {
    box-sizing: border-box;
}

#floatingMenu1 ul,
#floatingMenu1 li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#floatingMenu1 a {
    text-decoration: none !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
}

/* ==============================
   MENU CHÍNH
============================== */
#floatingMenu1.floating-menu1 {
    position: fixed;
    top: 45px;
    right: 10px;
    background-color: #0066cc;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
    width: 220px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.22s;
}

#floatingMenu1.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#floatingMenu1 ul li {
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

#floatingMenu1 ul li:last-child {
    border-bottom: none;
}

/* ==============================
   LINK MENU CHA
============================== */
#floatingMenu1 ul li > a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 10px 10px 5px;
    color: white;
    font-weight: bold;
    transition: 0.18s;
}

#floatingMenu1 ul li > a:hover {
    color: #ffeb3b;
}

/* ==============================
   MENU CÓ SUBMENU
============================== */
#floatingMenu1 .menu-item-row1 {
    display: flex;
}

#floatingMenu1 .menu-main-link1 {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    padding: 10px 10px 10px 5px;
    color: white;
    font-weight: bold;
}

#floatingMenu1 .menu-main-link1:hover {
    color: #ffeb3b;
}

#floatingMenu1 .arrow-btn1 {
    width: 40px;
    background: transparent;
    color: white;
    border: none;
    display: flex;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    
    /* === THÊM NHỮNG DÒNG NÀY === */
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none;           /* Loại bỏ style mặc định trên iOS */
    user-select: none;
}

/* Xử lý khi đang active (đang nhấn) */
#floatingMenu1 .arrow-btn1:active,
#floatingMenu1 .arrow-btn1:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Tăng độ mượt cho hiệu ứng xoay */
#floatingMenu1 .arrow-btn1 {
    transition: transform 0.25s ease;
}

#floatingMenu1 .arrow-btn1.open {
    transform: rotate(180deg)!important;
}

#floatingMenu1 .menu-item-row1:hover .arrow-btn1 {
    color: #ffeb3b;
}

/* ==============================
   SUBMENU
============================== */
#floatingMenu1 ul li ul {
    background: #0056b3;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.25s;
}

#floatingMenu1 ul li ul.open {
    max-height: 500px;
    opacity: 1;
}

#floatingMenu1 ul li ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 20px;
    font-weight: normal;
    color: white;
}

#floatingMenu1 ul li ul li a:hover {
    color: #ffeb3b;
}

/* ==============================
   ICON
============================== */
#floatingMenu1 .menu-icon1 {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    margin-left: 3px;
    object-fit: contain;
    flex-shrink: 0;
    transition: 0.2s;
}

#floatingMenu1 a:hover .menu-icon1,
#floatingMenu1 .menu-item-row1:hover .menu-icon1 {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* ==============================
   BANNER (GIỮ NGUYÊN)
============================== */
#banner {
    background:#0066cc;
    color:#fff;
    display:flex;
    padding:10px 72px 10px 12px;
    font-size:18px;
    font-weight:700;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9990;
    padding-left: 20px;
    border-bottom:1px solid rgba(255,255,255,0.15);
}

#banner .banner-item {
    display:flex;
    align-items:center;
    gap:6px;
    padding:0 8px;
}

#banner .banner-label {
    font-size:12px;
    color:rgba(255,255,255,0.72);
}

#banner .banner-value {
    font-size:16px;
    font-weight:700;
}


#clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 20px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    display: none;

    transition: transform 0.25s ease, color 0.2s;
}

#clear-button:hover {
    color: #0066cc;
    transform: translateY(-50%) rotate(90deg);
}


@media (max-width: 768px) {
    
    #floatingMenu1 .arrow-btn1 {
        font-size: 16px;           /* Mũi tên submenu to hơn */
    }
    
    
}