/* ============================================================================
   Hack4Rescue Production Stylesheet (Dark Default + Crisp Off-White Light Mode)
   ============================================================================ */
html,
body {
    background-color: #090b0e;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Soft Off-White Light Mode (Zero Pure White Glare & High Text Contrast) */
html.light-theme,
html.light-theme body {
    background-color: #777a81;
    color: #111827;
}

html.light-theme .bg-surface-950 {
    background-color: #dfe3e8 !important;
}

html.light-theme .bg-surface-900 {
    background-color: #eceef2 !important;
}

html.light-theme .bg-surface-850 {
    background-color: #e2e6ec !important;
}

html.light-theme .bg-surface-800 {
    background-color: #d5dbe3 !important;
}

html.light-theme .text-white {
    color: #111827 !important;
}

html.light-theme .text-zinc-100,
html.light-theme .text-zinc-200 {
    color: #1f2937 !important;
}

html.light-theme .text-zinc-300 {
    color: #374151 !important;
}

html.light-theme .text-zinc-400 {
    color: #4b5563 !important;
}

html.light-theme .text-zinc-500 {
    color: #6b7280 !important;
}

/* Keep Solid Action Buttons & Own Chat Bubbles Crisp White Text */
html.light-theme button.bg-emerald-600,
html.light-theme button.bg-sky-600,
html.light-theme button.bg-rose-600,
html.light-theme button.bg-red-600,
html.light-theme .msg-bubble-me,
html.light-theme #toast,
html.light-theme #toast span {
    color: #f9fafb !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #27303f;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b475c;
}

.hero-grid {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

@keyframes statusGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25);
    }

    50% {
        box-shadow: 0 0 12px 2px rgba(16, 185, 129, 0.35);
    }
}

.badge-animated-open {
    animation: statusGlow 2.4s infinite ease-in-out;
}

/* Hexagonal Crest Badge Shape (No Border / No Outline) */
.h1-hex-badge {
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

@keyframes viewFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-enter {
    animation: viewFadeUp 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}