/* ─── Inter typography ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body, .fi-body {
    font-family: 'Inter', system-ui, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* ─── Cleaner sidebar ─── */
.fi-sidebar {
    border-right: 1px solid rgb(243 244 246);
}
.dark .fi-sidebar { border-right-color: rgb(31 41 55); }

.fi-sidebar-nav {
    padding: 0.75rem;
}

.fi-sidebar-item-button {
    border-radius: 0.5rem !important;
    transition: all 0.15s ease;
}
.fi-sidebar-item-button:hover {
    background: linear-gradient(135deg, rgba(255,107,53,0.06), rgba(255,149,88,0.06)) !important;
}
.fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: linear-gradient(135deg, #FF6B35, #FF9558) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255,107,53,0.25);
}
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: white !important; }

/* Sidebar group headers */
.fi-sidebar-group-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: rgb(107 114 128);
    margin: 1.25rem 0.5rem 0.5rem;
}

/* ─── Topbar ─── */
.fi-topbar {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85) !important;
    border-bottom: 1px solid rgb(243 244 246);
}
.dark .fi-topbar {
    background: rgba(17,24,39,0.85) !important;
    border-bottom-color: rgb(31 41 55);
}

/* ─── Better cards ─── */
.fi-section {
    border-radius: 0.875rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02) !important;
    border: 1px solid rgb(243 244 246) !important;
}
.dark .fi-section { border-color: rgb(31 41 55) !important; }

/* ─── Buttons polish ─── */
.fi-btn-color-primary {
    background: linear-gradient(135deg, #FF6B35, #FF9558) !important;
    box-shadow: 0 4px 12px rgba(255,107,53,0.25) !important;
}
.fi-btn-color-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.35) !important;
}

/* ─── Tables polish ─── */
.fi-ta-table thead {
    background: rgb(249 250 251);
}
.dark .fi-ta-table thead { background: rgb(17 24 39); }

.fi-ta-row:hover { background: rgba(255,107,53,0.03) !important; }
.dark .fi-ta-row:hover { background: rgba(255,107,53,0.06) !important; }

/* ─── Badges ─── */
.fi-badge { font-weight: 600 !important; letter-spacing: 0.01em; }

/* ─── Custom utility classes for our pages ─── */
.lm-gradient-orange { background: linear-gradient(135deg, #FF6B35 0%, #FF9558 100%); }
.lm-gradient-cool { background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%); }
.lm-gradient-dark { background: linear-gradient(135deg, #1F2937 0%, #111827 100%); }

.lm-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgb(243 244 246);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.dark .lm-card { background: rgb(17 24 39); border-color: rgb(31 41 55); }
.lm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.lm-card-glow {
    position: relative;
    overflow: hidden;
}
.lm-card-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.06), transparent);
    transition: left 0.6s ease;
}
.lm-card-glow:hover::before { left: 100%; }

/* ─── Animations ─── */
@keyframes lm-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lm-fade-in { animation: lm-fade-in 0.4s ease forwards; }

/* Smooth scroll for inner panels */
html { scroll-behavior: smooth; }
