/* Floating Icon */
.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;transition: transform 0.2s ease;
}



/* Floating Menu */
.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: 200px;

    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.floating-menu1.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-menu1 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.floating-menu1 ul li {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.floating-menu1 ul li:last-child {
    border-bottom: none;
}

.floating-menu1 ul li > a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 10px 10px 10px 5px;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.18s ease;
    font-weight: bold;
}

.floating-menu1 ul li > a:hover {
    color: #ffeb3b;
}

/* item có submenu: link trái + nút phải */
.menu-item-row1 {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.menu-main-link1 {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 10px 10px 10px 5px;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.18s ease;
    font-weight: bold;
}

.menu-main-link1:hover {
    color: #ffeb3b;
}

.arrow-btn1 {
    width: 40px;
    min-width: 40px;
    border: none;
    border-left: none;
    background-color: #0066cc;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* arrow đổi màu khi hover menu */
.menu-item-row1:hover .arrow-btn1 {
    color: #ffeb3b;
}

.arrow-btn1.open {
    transform: rotate(180deg);
}

/* Menu con */
.floating-menu1 ul li ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #0056b3;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

.floating-menu1 ul li ul.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.floating-menu1 ul li ul li a {
    font-size: 15px;
    padding: 8px 20px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.01);
    font-weight: normal;
    color: white;
    text-decoration: none;
    transition: color 0.18s ease;
}

.floating-menu1 ul li ul li a:hover {
    color: #ffeb3b;
}

/* Định dạng vị trí submenu */
.floating-menu1 ul li ul {
    margin-top: 0;
    position: relative;
}

.floating-menu1 ul li ul li {
    position: relative;
}

/* hover chữ -> đổi màu arrow */
.menu-main-link1:hover + .arrow-btn1 {
    color: #ffeb3b;
}

/* hover arrow -> đổi màu chữ */
.arrow-btn1:hover + .menu-main-link1,
.arrow-btn1:hover {
    color: #ffeb3b;
}

/* hover toàn bộ hàng -> đồng bộ màu */
.menu-item-row1:hover .menu-main-link1,
.menu-item-row1:hover .arrow-btn1 {
    color: #ffeb3b;
}

/*------------BANNER------------------ */
.banner-favicon{
    width:18px;
    height:18px;
    margin-right:5px;
    vertical-align:-2px;

    opacity:0.65;
}

#banner{
    background:#0066cc;
    color:#fff;

    display:flex;
    align-items:left;
   justify-content:flex-start; 

    padding:10px 72px 10px 12px; /* giữ nguyên chiều cao */

    font-size:18px;
    font-weight:700;

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9990;
    
    padding-left: 20px; /* thêm padding-left */

    box-sizing:border-box;
    will-change:transform;
    backface-visibility:hidden;

    border-bottom:1px solid rgba(255,255,255,0.15);
}

/* cột */
#banner .banner-item{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:left;
    gap:6px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    position:relative;
    padding:0 8px;
    box-sizing:border-box;
    padding-left: 20px;
}

/* vạch chia */
#banner .banner-item:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:20px;
    background:rgba(255,255,255,0.18);
}

/* label */
#banner .banner-label{
    font-size:12px;
    font-weight:600;
    color:rgba(255,255,255,0.72);
    flex:0 0 auto;
}

/* value */
#banner .banner-value{
    font-size:16px;
    font-weight:700;
    color:#fff;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* đồng hồ + số */
#thoi_gian_chinh_xac,
#luottruycap_banner,
#nhietdo{
    font-variant-numeric:tabular-nums;
}

/* cân bố cục */
.banner-brand{
    flex:1.6;
    justify-content:flex-start;
    text-align:left;
}

.banner-location{
    flex:0.9;
}

.banner-time{
    flex:1.25;
}

.banner-temp{
    flex:0.75;
}

.banner-weather{
    flex:1.25;
}

.banner-visit{
    flex:0.95;
    justify-content:flex-start;   /* canh trái */
    text-align:left;
    padding-left:30px;            /* khoảng cách 30px */
}
