/* =============================================
   FINORA – Global Styles
   Base: Bootstrap 5 + custom Finora tokens
   ============================================= */

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

:root {
    --finora-green:       #10B981;
    --finora-green-dark:  #059669;
    --finora-green-light: #d1fae5;
    --finora-navy:        #0f172a;
    --finora-slate:       #475569;
    --finora-muted:       #94a3b8;
    --finora-border:      #e2e8f0;
    --finora-bg:          #f8fafc;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #374151;
    background: white;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Bootstrap override – primary color = Finora green */
.btn-primary {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    border: none !important;
    font-weight: 600 !important;
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(16,185,129,0.4) !important;
    transform: translateY(-1px);
}

/* Focus rings */
*:focus-visible {
    outline: 2px solid var(--finora-green);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Inertia progress bar override */
#nprogress .bar { height: 3px !important; }

/* =============================================
   Authenticated App Shell
   ============================================= */
.finora-app-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--finora-bg);
}

.finora-sidebar {
    width: 240px;
    background: var(--finora-navy);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.finora-main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.finora-topbar {
    background: white;
    border-bottom: 1px solid var(--finora-border);
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.finora-content {
    flex: 1;
    padding: 1.5rem;
}

/* Sidebar Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1.25rem 1rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.5rem;
}

/* Sidebar Nav */
.sidebar-nav { flex: 1; padding: 0.5rem; overflow-y: auto; }
.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 0.75rem 0.35rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: white; }
.sidebar-link.active { background: rgba(16,185,129,0.15); color: #10B981; }
.sidebar-link .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem;
}

/* Mobile */
@media (max-width: 991.98px) {
    .finora-sidebar { transform: translateX(-100%); }
    .finora-sidebar.open { transform: translateX(0); }
    .finora-main { margin-left: 0; }
}
