:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    position: relative;
    isolation: isolate;
    font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
    color: #0f172a;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.18), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(15, 23, 42, 0.12), transparent 22%),
        radial-gradient(circle at 80% 85%, rgba(16, 185, 129, 0.12), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 46%, #ffffff 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 9999px;
    filter: blur(72px);
    animation: sport-drift 18s ease-in-out infinite alternate;
}

body::before {
    inset: -4rem auto auto -5rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
}

body::after {
    inset: auto -7rem -8rem auto;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.14), transparent 70%);
    animation-duration: 22s;
}

@keyframes datlich-marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes datlich-marquee-ltr {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

[data-marquee-root] {
    overflow: hidden;
}

[data-marquee-track] {
    animation: none;
    will-change: transform;
    visibility: hidden;
}

[data-marquee-root]:hover [data-marquee-track] {
    animation-play-state: paused;
}

@keyframes sport-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(24px, -16px, 0) scale(1.05);
    }
}

::selection {
    background: rgba(34, 211, 238, 0.78);
    color: #ffffff;
}

input,
select,
textarea,
button,
a {
    transition:
        border-color 180ms ease,
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        opacity 180ms ease,
        box-shadow 180ms ease;
}

button:hover,
a:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.14);
}

#album-lightbox button:hover,
#album-lightbox button {
    transform: none !important;
    box-shadow: none !important;
}

.holiday-note-tooltip::after {
    content: '';
    position: absolute;
    top: -0.34rem;
    right: 1.05rem;
    width: 0.75rem;
    height: 0.75rem;
    transform: rotate(45deg);
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.12rem;
}

.brand-icon-white {
    color: #ffffff !important;
}

.banner-arrow {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.28)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(34, 211, 238, 0.12));
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.banner-arrow,
.banner-arrow:hover {
    transform: translate3d(0, -50%, 0) scale(0.92) !important;
}

.banner-arrow:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 18px 44px rgba(34, 211, 238, 0.18),
        0 14px 28px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.banner-shell:hover .banner-arrow,
.banner-shell:focus-within .banner-arrow {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, -50%, 0) scale(1) !important;
}

@media (hover: none) {
    .banner-arrow {
        opacity: 1;
        pointer-events: auto;
        transform: translate3d(0, -50%, 0) scale(1) !important;
    }
}

@media (min-width: 640px) {
    .banner-arrow {
        width: 3rem;
        height: 3rem;
    }
}

.banner-shell [data-banner-slide] > a,
.banner-shell [data-banner-slide] > a:hover {
    transform: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"] .max-w-7xl {
    max-width: 90rem !important;
}

html[data-theme="light"] .shadow-glow {
    box-shadow: 0 28px 90px rgba(34, 211, 238, 0.18), 0 18px 50px rgba(15, 23, 42, 0.10) !important;
}

html[data-theme="light"] .bg-slate-950,
html[data-theme="light"] .bg-slate-950\/95,
html[data-theme="light"] .bg-slate-950\/90,
html[data-theme="light"] .bg-slate-950\/80,
html[data-theme="light"] .bg-slate-950\/70,
html[data-theme="light"] .bg-slate-950\/60,
html[data-theme="light"] .bg-slate-950\/50,
html[data-theme="light"] .bg-slate-950\/40 {
    background-color: rgba(255, 255, 255, 0.88) !important;
}

html[data-theme="light"] .bg-slate-900,
html[data-theme="light"] .bg-slate-900\/95,
html[data-theme="light"] .bg-slate-900\/80,
html[data-theme="light"] .bg-slate-900\/70,
html[data-theme="light"] .bg-slate-900\/60,
html[data-theme="light"] .bg-slate-900\/50 {
    background-color: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="light"] .bg-black\/30,
html[data-theme="light"] .bg-black\/20 {
    background-color: rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .bg-white\/5 {
    background-color: rgba(34, 211, 238, 0.05) !important;
}

html[data-theme="light"] .bg-white\/10 {
    background-color: rgba(34, 211, 238, 0.09) !important;
}

html[data-theme="light"] .border-white\/5,
html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/15 {
    border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-slate-50,
html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200 {
    color: #0f172a !important;
}

html[data-theme="light"] .text-slate-300 {
    color: #334155 !important;
}

html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-slate-500 {
    color: #475569 !important;
}

html[data-theme="light"] .text-slate-600 {
    color: #64748b !important;
}

html[data-theme="light"] .text-slate-950 {
    color: #020617 !important;
}

html[data-theme="light"] .text-cyan-50 {
    color: #155e75 !important;
}

html[data-theme="light"] .text-cyan-100,
html[data-theme="light"] .text-cyan-100\/90,
html[data-theme="light"] .text-cyan-200,
html[data-theme="light"] .text-cyan-200\/90 {
    color: #0f766e !important;
}

html[data-theme="light"] .text-cyan-300,
html[data-theme="light"] .text-cyan-300\/90 {
    color: #0369a1 !important;
}

html[data-theme="light"] .text-cyan-400 {
    color: #0891b2 !important;
}

html[data-theme="light"] .text-emerald-100,
html[data-theme="light"] .text-emerald-100\/90,
html[data-theme="light"] .text-emerald-200,
html[data-theme="light"] .text-emerald-200\/90 {
    color: #065f46 !important;
}

html[data-theme="light"] .text-emerald-300,
html[data-theme="light"] .text-emerald-300\/90 {
    color: #047857 !important;
}

html[data-theme="light"] .text-emerald-400 {
    color: #059669 !important;
}

html[data-theme="light"] .text-amber-100,
html[data-theme="light"] .text-amber-200 {
    color: #b45309 !important;
}

html[data-theme="light"] .text-amber-300 {
    color: #d97706 !important;
}

html[data-theme="light"] .text-rose-100,
html[data-theme="light"] .text-rose-200 {
    color: #be123c !important;
}

html[data-theme="light"] .text-rose-300 {
    color: #e11d48 !important;
}

html[data-theme="light"] .bg-cyan-400\/10,
html[data-theme="light"] .bg-cyan-400\/15,
html[data-theme="light"] .bg-cyan-400\/20 {
    background-color: rgba(34, 211, 238, 0.12) !important;
}

html[data-theme="light"] .bg-emerald-400\/10,
html[data-theme="light"] .bg-emerald-400\/15,
html[data-theme="light"] .bg-emerald-400\/20 {
    background-color: rgba(16, 185, 129, 0.12) !important;
}

html[data-theme="light"] .bg-amber-400\/10,
html[data-theme="light"] .bg-amber-400\/15,
html[data-theme="light"] .bg-amber-400\/20 {
    background-color: rgba(245, 158, 11, 0.12) !important;
}

html[data-theme="light"] .bg-rose-400\/10,
html[data-theme="light"] .bg-rose-400\/15,
html[data-theme="light"] .bg-rose-400\/20 {
    background-color: rgba(244, 63, 94, 0.12) !important;
}

html[data-theme="light"] .border-cyan-400\/10,
html[data-theme="light"] .border-cyan-400\/15,
html[data-theme="light"] .border-cyan-400\/20,
html[data-theme="light"] .border-cyan-400\/30,
html[data-theme="light"] .border-sky-400\/10,
html[data-theme="light"] .border-sky-400\/20,
html[data-theme="light"] .border-sky-400\/30 {
    border-color: rgba(34, 211, 238, 0.26) !important;
}

html[data-theme="light"] .border-emerald-400\/10,
html[data-theme="light"] .border-emerald-400\/15,
html[data-theme="light"] .border-emerald-400\/20,
html[data-theme="light"] .border-emerald-400\/30 {
    border-color: rgba(16, 185, 129, 0.26) !important;
}

html[data-theme="light"] .border-amber-400\/10,
html[data-theme="light"] .border-amber-400\/15,
html[data-theme="light"] .border-amber-400\/20,
html[data-theme="light"] .border-amber-400\/30 {
    border-color: rgba(245, 158, 11, 0.26) !important;
}

/* .banner-shell {
} */

[data-banner-slide] {
    opacity: 0;
    pointer-events: none;
    transition: opacity 680ms ease;
}

[data-banner-slide].is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

[data-banner-slide].is-active [data-banner-copy],
[data-banner-slide].is-active [data-banner-caption] {
    animation: banner-copy-fade 700ms ease both;
}

[data-banner-slide].is-active [data-banner-caption] {
    animation-delay: 90ms;
}

[data-banner-slide] {
    overflow: hidden;
}

[data-banner-image] {
    filter: saturate(1.06) contrast(1.02);
}

[data-banner-track] {
    aspect-ratio: 16 / 5;
    min-height: 220px;
    max-height: 640px;
}

[data-banner-track] img[data-banner-image] {
    object-fit: cover;
}

@media (max-width: 639px) {
    .banner-arrow {
        display: none !important;
    }
    [data-banner-track] {
        aspect-ratio: 32 / 9;
        min-height: 100px;
        max-height: none;
    }
    [data-banner-track] img[data-banner-image] {
        object-fit: contain;
    }
}

@keyframes banner-copy-fade {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

html[data-theme="light"] .border-rose-400\/10,
html[data-theme="light"] .border-rose-400\/15,
html[data-theme="light"] .border-rose-400\/20,
html[data-theme="light"] .border-rose-400\/30 {
    border-color: rgba(244, 63, 94, 0.26) !important;
}

html[data-theme="light"] .bg-cyan-950,
html[data-theme="light"] .from-cyan-950 {
    background-color: rgba(236, 254, 255, 0.96) !important;
}

html[data-theme="light"] .bg-slate-950\/40,
html[data-theme="light"] .bg-slate-950\/50,
html[data-theme="light"] .bg-slate-950\/60 {
    background-color: rgba(248, 250, 252, 0.82) !important;
}

html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav button:hover {
    color: #0891b2 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
    background-color: #22d3ee !important;
    background-image: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);
    background-color: #22d3ee !important;
    background-image: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    color: #fff !important;
    box-shadow: 0 24px 50px rgba(34, 211, 238, 0.30);
}

.btn-primary,
.btn-primary * {
    color: #fff !important;
}

button.bg-cyan-600,
a.bg-cyan-600,
button.bg-cyan-500,
a.bg-cyan-500,
button.bg-cyan-700,
a.bg-cyan-700,
button.bg-emerald-500,
a.bg-emerald-500,
button.from-cyan-500.to-blue-500,
a.from-cyan-500.to-blue-500,
button.from-cyan-400.to-blue-500,
a.from-cyan-400.to-blue-500,
button.from-cyan-400.to-emerald-400,
a.from-cyan-400.to-emerald-400,
button.from-cyan-400.to-emerald-500,
a.from-cyan-400.to-emerald-500,
button.from-emerald-400.to-teal-500,
a.from-emerald-400.to-teal-500 {
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    background-color: #22d3ee !important;
    background-image: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.22) !important;
}

button.bg-cyan-600:hover,
a.bg-cyan-600:hover,
button.bg-cyan-500:hover,
a.bg-cyan-500:hover,
button.bg-cyan-700:hover,
a.bg-cyan-700:hover,
button.bg-emerald-500:hover,
a.bg-emerald-500:hover,
button.from-cyan-500.to-blue-500:hover,
a.from-cyan-500.to-blue-500:hover,
button.from-cyan-400.to-blue-500:hover,
a.from-cyan-400.to-blue-500:hover,
button.from-cyan-400.to-emerald-400:hover,
a.from-cyan-400.to-emerald-400:hover,
button.from-cyan-400.to-emerald-500:hover,
a.from-cyan-400.to-emerald-500:hover,
button.from-emerald-400.to-teal-500:hover,
a.from-emerald-400.to-teal-500:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    background-color: #22d3ee !important;
    background-image: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    color: #fff !important;
    box-shadow: 0 24px 50px rgba(34, 211, 238, 0.30) !important;
}

button.bg-cyan-600 *,
a.bg-cyan-600 *,
button.bg-cyan-500 *,
a.bg-cyan-500 *,
button.bg-cyan-700 *,
a.bg-cyan-700 *,
button.bg-emerald-500 *,
a.bg-emerald-500 *,
button.from-cyan-500.to-blue-500 *,
a.from-cyan-500.to-blue-500 *,
button.from-cyan-400.to-blue-500 *,
a.from-cyan-400.to-blue-500 *,
button.from-cyan-400.to-emerald-400 *,
a.from-cyan-400.to-emerald-400 *,
button.from-cyan-400.to-emerald-500 *,
a.from-cyan-400.to-emerald-500 *,
button.from-emerald-400.to-teal-500 *,
a.from-emerald-400.to-teal-500 * {
    color: #fff !important;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    background-color: #22d3ee !important;
    border: 0 !important;
    border-radius: 9999px !important;
    color: #fff !important;
    cursor: pointer;
    font-weight: 700;
    margin-inline-end: 1rem;
    padding: 0.55rem 1rem;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%) !important;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.22);
    transform: translateY(-1px);
}

.btn-ghost-blue {
    border-color: rgba(34, 211, 238, 0.22) !important;
    color: #0e7490 !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

.btn-ghost-blue:hover {
    background: rgba(236, 254, 255, 0.96) !important;
    border-color: rgba(34, 211, 238, 0.38) !important;
}

.section-title {
    color: #155e75 !important;
}

.menu-link {
    color: #0e7490 !important;
}

.menu-link:hover {
    color: #059669 !important;
}

html[data-theme="light"] .auth-admin-panel {
    background-color: rgba(255, 255, 255, 0.92) !important;
    background-image:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 36%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.11), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #e2e8f0 100%) !important;
}

html[data-theme="light"] .auth-admin-panel__glow {
    opacity: 0.28 !important;
}

html[data-theme="light"] .from-slate-900,
html[data-theme="light"] .via-slate-900,
html[data-theme="light"] .to-slate-900 {
    --tw-gradient-from: #ffffff !important;
    --tw-gradient-via: #f8fafc !important;
    --tw-gradient-to: #e2e8f0 !important;
}

html[data-theme="light"] .from-cyan-950 {
    --tw-gradient-from: #eff6ff !important;
    --tw-gradient-to: #dbeafe !important;
}

html[data-theme="light"] .to-cyan-950 {
    --tw-gradient-to: #dbeafe !important;
}

html[data-theme="light"] .from-emerald-950 {
    --tw-gradient-from: #ecfdf5 !important;
}

html[data-theme="light"] .to-emerald-950 {
    --tw-gradient-to: #dcfce7 !important;
}

html[data-theme="light"] .backdrop-blur-xl,
html[data-theme="light"] .backdrop-blur-sm {
    backdrop-filter: blur(18px) saturate(1.08);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    color: #0f172a !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] button:disabled {
    opacity: 0.55 !important;
}

/* ── Responsive: prevent horizontal overflow ─────────────────────────── */
html {
    overflow-x: hidden;
}

/* Ensure tables in overflow-x-auto containers stay minimum width */
.overflow-x-auto table {
    min-width: 480px;
}

/* On very small screens, tighten padding on table cells */
@media (max-width: 480px) {
    th, td {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Mobile: keep date inputs readable */
@media (max-width: 360px) {
    input[type="date"] {
        min-width: 0;
        width: auto !important;
    }
}

/* Auth page: ensure login panel is readable on small screens */
@media (max-width: 640px) {
    .auth-admin-panel {
        padding: 1.5rem !important;
    }
}

/* ── Popup Banner (trang chủ) ────────────────────────────────────────────── */
.home-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9990;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.home-popup-overlay.home-popup-visible {
    display: flex;
}
.home-popup-wrap {
    position: relative;
    display: inline-block;
    max-height: 90vh;
    overflow: visible;
}
.home-popup-img {
    display: block;
    width: var(--pb-width-d, 600px);
    max-width: 95vw;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
}
.home-popup-close {
    position: absolute;
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
    z-index: 10;
    transition: opacity .15s;
}
.home-popup-close:hover { opacity: .75; }
.home-popup-close-top-right    { top: 0; right: 0; transform: translate(50%, -50%); }
.home-popup-close-top-left     { top: 0; left: 0;  transform: translate(-50%, -50%); }
.home-popup-close-bottom-right { bottom: 0; right: 0; transform: translate(50%, 50%); }
.home-popup-close-bottom-left  { bottom: 0; left: 0;  transform: translate(-50%, 50%); }

/* Hiệu ứng mở */
@keyframes pb-fade-in      { from { opacity:0 }                 to { opacity:1 } }
@keyframes pb-slide-down-in{ from { opacity:0;transform:translateY(-40px) } to { opacity:1;transform:translateY(0) } }
@keyframes pb-slide-up-in  { from { opacity:0;transform:translateY(40px)  } to { opacity:1;transform:translateY(0) } }
@keyframes pb-zoom-in      { from { opacity:0;transform:scale(.6) }         to { opacity:1;transform:scale(1) } }
@keyframes pb-bounce-in    { 0%{opacity:0;transform:scale(.5)} 70%{transform:scale(1.08)} 85%{transform:scale(.96)} 100%{opacity:1;transform:scale(1)} }

.home-popup-anim-fade       .home-popup-img { animation: pb-fade-in .35s ease both; }
.home-popup-anim-slide-down .home-popup-img { animation: pb-slide-down-in .4s cubic-bezier(.22,.68,0,1.2) both; }
.home-popup-anim-slide-up   .home-popup-img { animation: pb-slide-up-in .4s cubic-bezier(.22,.68,0,1.2) both; }
.home-popup-anim-zoom       .home-popup-img { animation: pb-zoom-in .35s cubic-bezier(.34,1.56,.64,1) both; }
.home-popup-anim-bounce     .home-popup-img { animation: pb-bounce-in .6s both; }

/* Hiệu ứng đóng */
@keyframes pb-fade-out      { to { opacity:0 } }
@keyframes pb-slide-up-out  { to { opacity:0;transform:translateY(-30px) } }
@keyframes pb-slide-down-out{ to { opacity:0;transform:translateY(30px) } }
@keyframes pb-zoom-out      { to { opacity:0;transform:scale(.6) } }

.home-popup-anim-close-fade      .home-popup-img { animation: pb-fade-out .3s ease forwards; }
.home-popup-anim-close-slide-up  .home-popup-img { animation: pb-slide-up-out .3s ease forwards; }
.home-popup-anim-close-slide-down .home-popup-img { animation: pb-slide-down-out .3s ease forwards; }
.home-popup-anim-close-zoom      .home-popup-img { animation: pb-zoom-out .3s ease forwards; }

/* Responsive kích thước ảnh popup */
@media (max-width: 1024px) {
    .home-popup-img { width: var(--pb-width-t, 90%) !important; }
}
@media (max-width: 640px) {
    .home-popup-img { width: var(--pb-width-m, 100%) !important; }
    .home-popup-close-top-right    { transform: translate(30%, -30%); }
    .home-popup-close-top-left     { transform: translate(-30%, -30%); }
    .home-popup-close-bottom-right { transform: translate(30%, 30%); }
    .home-popup-close-bottom-left  { transform: translate(-30%, 30%); }
}
