/* ─── Base Typography ───────────────────────────────────────── */
html, body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'kern';
    background-color: #ffffff;
    color: #0f172a;
}

/* Headings — tight tracking, maximum Inter weight crispness */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    font-feature-settings: 'cv11', 'kern', 'calt';
}

h2 { letter-spacing: -0.025em; }
h3 { letter-spacing: -0.02em; font-weight: 700; }
h4 { letter-spacing: -0.015em; font-weight: 700; }

/* Body text — optimised for readability */
p, li, span, label, a {
    font-feature-settings: 'kern', 'liga';
}

.signin-shell {
    background-image: radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.08), transparent 28rem);
}

.login-card {
    animation: signInCardIn 0.45s ease-out both;
}

@keyframes signInCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Active underline indicator for desktop navbar */
.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #085ac0; /* secondary */
    border-radius: 2px 2px 0 0;
    animation: slideIn 0.2s ease both;
}

@keyframes slideIn {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

/* Hover underline (not active) */
.nav-link:not(.nav-active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3d4459; /* primary */
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:not(.nav-active):hover::after {
    transform: scaleX(1);
}

/* ==========================================================================
   EazyMapSidePanel - Generic Slide-Over Panel Component
   ========================================================================== */

/* Dark Backdrop Overlay */
.eazy-sidepanel-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(11, 28, 48, 0.4) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 99990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.eazy-sidepanel-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Slide Drawer Container */
.eazy-sidepanel-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    background-color: #ffffff !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.eazy-sidepanel-drawer.active {
    transform: translateX(0) !important;
}

/* Panel Header */
.eazy-sidepanel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8f9ff;
}

.eazy-sidepanel-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0b1c30;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.eazy-sidepanel-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #45464d;
    padding: 6px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.eazy-sidepanel-close-btn:hover {
    background-color: #eff4ff;
    color: #000000;
}

/* Panel Body */
.eazy-sidepanel-body {
    flex: 1 1 auto;
    padding: 24px;
    overflow-y: auto;
}

/* Panel Footer */
.eazy-sidepanel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8f9ff;
}