/* Funnel Sans — local variable font */
@font-face {
    font-family: 'Funnel Sans';
    src: url('/fonts/FunnelSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

/* Custom Filament Navigation Styling */

/* Sidebar background */
.fi-sidebar {
    background: linear-gradient(180deg, #f0fdfa 0%, #e6f7f5 100%);
    box-shadow: 4px 0 12px -2px rgba(0, 0, 0, 0.08);
}

.dark .fi-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 4px 0 12px -2px rgba(0, 0, 0, 0.3);
}

/* Sidebar header */
.fi-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dark .fi-sidebar-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Navigation items */
.fi-sidebar-item-button {
    border-radius: 0.5rem;
    transition: all 150ms ease;
}

.fi-sidebar-item-button:hover {
    background-color: rgba(148, 163, 184, 0.1);
}

.dark .fi-sidebar-item-button:hover {
    background-color: rgba(148, 163, 184, 0.1);
}

/* Active navigation item */
.fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background-color: rgba(20, 184, 166, 0.1);
    color: #0d9488;
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background-color: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

/* Active item icon */
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #0d9488;
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #2dd4bf;
}

/* Navigation group labels */
.fi-sidebar-group-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.dark .fi-sidebar-group-label {
    color: #94a3b8;
}

/* Sidebar nav section */
.fi-sidebar-nav {
    padding: 1rem 0.75rem;
}

/* Organization switcher styling */
.fi-sidebar-nav > div:first-child {
    margin-bottom: 0.5rem;
}

/* ── Fixed form actions footer ─────────────────────────────────
   Pinned to the very bottom of the viewport, spanning the full
   width of the main content area (right of the sidebar).
   ──────────────────────────────────────────────────────────── */

/* Reserve space at the bottom so page content isn't hidden behind the footer */
.fi-resource-edit-record-page > section,
.fi-resource-create-record-page > section,
.fi-page:has(.fi-sticky-footer) > section {
    padding-bottom: 4rem;
}

/* Fixed footer bar */
.fi-form-actions.fi-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: white;
    border-top: 1px solid rgb(229 231 235);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
}

/* On desktop, offset for the sidebar */
@media (min-width: 1024px) {
    .fi-form-actions.fi-sticky-footer {
        left: var(--sidebar-width);
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.dark .fi-form-actions.fi-sticky-footer {
    background: rgb(17 24 39);
    border-top-color: rgba(255, 255, 255, 0.1);
}
