/* ─── 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 with Glassmorphism */
.eazy-sidepanel-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, visibility 0.25s 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;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: 100% !important;
    max-width: 480px !important;
    background-color: #ffffff !important;
    box-shadow: -10px 0 32px -4px rgba(15, 23, 42, 0.12), -4px 0 12px -2px rgba(15, 23, 42, 0.04) !important;
    border-left: 1px solid #e2e8f0 !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 640px) {
    .eazy-sidepanel-drawer {
        max-width: 100% !important;
        border-left: none !important;
    }
    .eazy-sidepanel-header {
        padding: 14px 16px !important;
    }
    .eazy-sidepanel-body {
        padding: 16px !important;
    }
    .eazy-sidepanel-footer {
        padding: 12px 16px !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 #f1f5f9;
    background-color: #ffffff;
    flex-shrink: 0;
}

.eazy-sidepanel-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 0.625rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eazy-sidepanel-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
    line-height: 1.35;
    margin: 0;
}

.eazy-sidepanel-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
    margin-top: 2px;
    margin-bottom: 0;
}

.eazy-sidepanel-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.eazy-sidepanel-close-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.eazy-sidepanel-close-btn:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

/* Panel Body */
.eazy-sidepanel-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    background-color: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.eazy-sidepanel-body::-webkit-scrollbar {
    width: 6px;
}

.eazy-sidepanel-body::-webkit-scrollbar-track {
    background: transparent;
}

.eazy-sidepanel-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.eazy-sidepanel-body::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Panel Footer */
.eazy-sidepanel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background-color: #f8fafc;
    flex-shrink: 0;
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.eazy-sidepanel-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    line-height: 1.25rem;
}

.eazy-sidepanel-btn-delete:hover {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.eazy-sidepanel-btn-delete:active {
    transform: scale(0.98);
}

.eazy-sidepanel-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    line-height: 1.25rem;
}

.eazy-sidepanel-btn-cancel:hover {
    background-color: #f8fafc;
    color: #1e293b;
    border-color: #94a3b8;
}

.eazy-sidepanel-btn-cancel:active {
    transform: scale(0.98);
}

.eazy-sidepanel-btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    line-height: 1.25rem;
}

.eazy-sidepanel-btn-save:hover:not(:disabled) {
    background-color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.eazy-sidepanel-btn-save:active:not(:disabled) {
    transform: scale(0.98);
}

.eazy-sidepanel-btn-save:disabled,
.eazy-sidepanel-btn-save.is-loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.eazy-sidepanel-btn-save .eazy-sidepanel-save-spinner {
    display: none;
}

.eazy-sidepanel-btn-save.is-loading .eazy-sidepanel-save-spinner {
    display: inline-block;
}

.eazy-sidepanel-btn-save.is-loading .eazy-sidepanel-save-icon {
    display: none;
}

.eazy-sidepanel-save-spinner {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: eazySpinnerRotate 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes eazySpinnerRotate {
    to { transform: rotate(360deg); }
}

/* Floor Plan Tile Hover Actions */
.floor-plan-tile {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.floor-plan-tile:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.floor-plan-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.floor-plan-action-btn {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.floor-plan-action-btn:hover {
    background-color: #ffffff;
    color: #2563eb;
    border-color: #93c5fd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.floor-plan-action-btn.unassign-btn {
    color: #d97706;
}

.floor-plan-action-btn.unassign-btn:hover {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.floor-plan-action-btn.delete-btn {
    color: #e11d48;
}

.floor-plan-action-btn.delete-btn:hover {
    background-color: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

/* Horizontal Smooth Scroll Bar for Photo Strips */
.eazy-photos-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.eazy-photos-scroll::-webkit-scrollbar {
    height: 5px;
}

.eazy-photos-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.eazy-photos-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.eazy-photos-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}