/* ==========================================================================
   VIỀN LED SVG CHẠY 1 CHIỀU DỌC THEO ĐƯỜNG VIỀN LOGO TOP1SUB
   - Chạy bo chuẩn 100% theo từng nét viền chữ ngoài và 4 icon góc
   - Chạy đuổi 1 chiều kim đồng hồ bằng stroke-dashoffset: 1000 -> 0
   - Lõi trắng (#ffffff), hào quang cyan (#00f2fe) và xanh (#0088ff)
   ========================================================================== */

.logo-led-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    height: fit-content !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
    vertical-align: middle !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease !important;
}

.logo-led-wrapper > img,
.main_header .nav-logo,
.brand-logo .brand-title,
.nav-header-left .brand-logo .brand-title,
.nav-logo {
    position: relative;
    z-index: 1;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    flex-shrink: 0 !important;
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    aspect-ratio: 690 / 231 !important;
    object-fit: contain !important;
    filter: none !important;
    transition: opacity 0.2s ease;
    box-sizing: border-box !important;
}

.footer-logo .logo-led-wrapper > img,
.footer-logo img {
    height: auto !important;
    max-height: none !important;
    width: min(210px, 100%) !important;
    aspect-ratio: 690 / 231 !important;
}

.brand-logo:hover .logo-led-wrapper,
.t1-brand-link:hover .logo-led-wrapper,
.navbar-brand:hover .logo-led-wrapper,
.logo-led-wrapper:hover {
    transform: scale(1.02);
}

.logo-led-svg {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    overflow: visible !important;
    z-index: 3 !important;
    display: block !important;
}

.logo-led-track {
    fill: none !important;
    stroke: rgba(0, 242, 254, 0.28) !important;
    stroke-width: 3.5px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.logo-led-beam {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 4.5px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-dasharray: 200 800 !important;
    animation: logoLedContourChase 3s linear infinite !important;
    filter: 
        drop-shadow(0 0 2px #ffffff)
        drop-shadow(0 0 6px #00f2fe)
        drop-shadow(0 0 12px #0088ff) !important;
    will-change: stroke-dashoffset !important;
}

@keyframes logoLedContourChase {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 768px) {
    .logo-led-wrapper > img,
    .main_header .nav-logo,
    .brand-logo .brand-title,
    .nav-header-left .brand-logo .brand-title,
    .nav-logo {
        height: 38px !important;
        max-height: 38px !important;
    }
}

@media (max-width: 420px) {
    .logo-led-wrapper > img,
    .main_header .nav-logo,
    .brand-logo .brand-title,
    .nav-header-left .brand-logo .brand-title,
    .nav-logo {
        height: 34px !important;
        max-height: 34px !important;
    }
}

/* ==========================================================================
   VIỀN LED CHO VIÊN THUỐC THÔNG BÁO (ANNOUNCEMENT CAPSULE)
   - Lõi trắng #ffffff, hào quang cyan #00f2fe và xanh dương #0088ff
   - Ôm khít 100% theo chu vi bo tròn của viên thuốc thông báo
   ========================================================================== */
.announcement-led-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    overflow: visible !important;
    z-index: 2 !important;
    border-radius: inherit !important;
}

.announcement-led-svg .logo-led-track {
    fill: none !important;
    stroke: rgba(0, 242, 254, 0.35) !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.announcement-led-svg .logo-led-beam {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.8px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-dasharray: 200 800 !important;
    animation: logoLedContourChase 3.5s linear infinite !important;
    filter: 
        drop-shadow(0 0 2px #ffffff)
        drop-shadow(0 0 6px #00f2fe)
        drop-shadow(0 0 12px #0088ff) !important;
    will-change: stroke-dashoffset !important;
}
