: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 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 {
    --banner-parallax-x: 0;
    --banner-parallax-y: 0;
}

[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] {
    transform: scale(1.08) translate3d(calc(var(--banner-parallax-x, 0) * 10px), calc(var(--banner-parallax-y, 0) * 10px), 0);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
    filter: saturate(1.06) contrast(1.02);
    will-change: transform;
}

[data-banner-slide].is-active [data-banner-image] {
    animation: banner-zoom 10s ease-in-out infinite alternate;
}

@keyframes banner-zoom {
    from {
        transform: scale(1.08) translate3d(calc(var(--banner-parallax-x, 0) * 10px), calc(var(--banner-parallax-y, 0) * 10px), 0);
    }

    to {
        transform: scale(1.14) translate3d(calc(var(--banner-parallax-x, 0) * 10px), calc(var(--banner-parallax-y, 0) * 10px), 0);
    }
}

@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%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.22);
}

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

.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;
    }
}
