/* =============================================================
   Almawarid — Light Theme Stylesheet
   ============================================================= */

/* ---- Base ---- */
:root {
    --bg-deep:      #ffffff;
    --bg-mid:       #f8fafc;
    --bg-card:      #ffffff;
    --bg-card-hover:#f1f5f9;
    --border-light: #e2e8f0;
    --accent-1:     #4f46e5;
    --accent-2:     #7c3aed;
    --accent-blue:  #4f46e5;
    --accent-green: #059669;
    --text-main:    #1e293b;
    --text-muted:   #475569;
    --radius-card:  16px;
    --shadow-card:  0 10px 40px rgba(0,0,0,0.08);
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
    background: #ffffff;
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { color: var(--text-main); }
p { color: var(--text-main); }
a { color: var(--accent-blue); }
a:hover { color: #4338ca; }
small { color: var(--text-muted); }
.text-muted { color: var(--text-muted) !important; }
.card-footer.text-muted { color: var(--text-muted) !important; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---- Logo lockup ---- The PNG holds only the sign / symbol.
   .lc renders "[symbol]  Almawarid" as a single inline unit. The wordmark
   is injected via ::after so every existing `.lc` usage across the app
   gets the text without template edits. */
.lc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  vertical-align: middle;
  line-height: 1;
}
.lc img {
  display: block !important;
  width: auto !important;
  height: 30px;              /* safe default; size variants override below */
  max-width: none;
  max-height: 48px !important;  /* hard cap regardless of what parent does */
  margin: 0 !important;         /* kill legacy negative-margin crop rules */
  object-fit: contain;
}
/* Never let any parent page grow the navbar logo. */
.navbar .lc img { max-height: 42px !important; }
.navbar-brand img { height: auto; }
.lc::after {
  content: 'Almawarid';
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1;
  white-space: nowrap;
}
.lc-lg  img { height: 42px; }   .lc-lg::after  { font-size: 1.45rem; }
.lc-md  img { height: 36px; }   .lc-md::after  { font-size: 1.25rem; }
.lc-sm  img { height: 30px; }   .lc-sm::after  { font-size: 1.10rem; }
.lc-ft  img { height: 26px; }   .lc-ft::after  { font-size: 1.00rem; }
.lc-xs  img { height: 22px; }   .lc-xs::after  { font-size: 0.90rem; }
.lc-mob img { height: 30px; }   .lc-mob::after { font-size: 1.10rem; }
/* Keep the latin wordmark in RTL too — brand name is not translated. */

/* ---- Navbar ---- */
.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
    z-index: 1050;
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.navbar-brand { text-decoration: none; }
/* On desktop, push navbar content right when sidebar is present */
@media (min-width: 992px) {
    .navbar.has-sidebar .navbar-brand { margin-left: 240px; }
    [dir="rtl"] .navbar.has-sidebar .navbar-brand { margin-left: 0; margin-right: 240px; }
}
.nav-link {
    color: #475569 !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--accent-1) !important; }

.messages-container { padding: 0.5rem 0; }
.messages-container.has-sidebar { margin-left: 240px; }

/* ---- Sidebar toggle button (mobile) ---- */
.sidebar-toggle-btn {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s;
}
.sidebar-toggle-btn:hover { background: #f1f5f9; }

/* ---- Left Sidebar ---- */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #ffffff;
    border-right: 1px solid var(--border-light);
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 90px; /* below navbar — logo 52px + text + padding */
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    -webkit-overflow-scrolling: touch;
}
.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.sidebar-inner {
    padding: 12px 10px 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 12px 4px;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.sidebar-link:hover {
    background: #f1f5f9;
    color: var(--accent-1);
    text-decoration: none;
}
.sidebar-link.active {
    background: rgba(79,70,229,0.08);
    color: var(--accent-1);
    font-weight: 600;
}

.sidebar-info {
    font-size: 0.65rem !important;
    color: #94a3b8 !important;
    margin-left: auto;
    cursor: help;
    width: auto !important;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}
.sidebar-link:hover .sidebar-info { opacity: 1; color: #4f46e5 !important; }

.sidebar-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 12px;
}

/* Sidebar backdrop (mobile overlay) */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1034;
    opacity: 0;
    transition: opacity 0.28s;
}

/* ---- Main content offset for sidebar ---- */
.app-main-content {
    margin-left: 240px;
    min-height: calc(100vh - 68px);
    transition: margin-left 0.28s cubic-bezier(.4,0,.2,1);
}

/* Footer adjusts too */
.site-footer.has-sidebar { margin-left: 240px; }

/* ---- Mobile sidebar: hidden by default, shown as drawer ---- */
@media (max-width: 991px) {
    .app-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: 270px;
        padding-top: 12px;
        padding-bottom: 80px;
        height: 100vh;
        height: 100dvh;
        top: 0;
        z-index: 1060;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    }
    .sidebar-backdrop.open {
        display: block;
        opacity: 1;
    }
    .app-main-content {
        margin-left: 0;
    }
    .site-footer.has-sidebar { margin-left: 0; }
    .messages-container.has-sidebar { margin-left: 0; }
}

/* RTL sidebar */
[dir="rtl"] .app-sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--border-light); }
[dir="rtl"] .app-main-content { margin-left: 0; margin-right: 240px; }
[dir="rtl"] .site-footer.has-sidebar { margin-left: 0; margin-right: 240px; }
[dir="rtl"] .messages-container.has-sidebar { margin-left: 0; margin-right: 240px; }
@media (max-width: 991px) {
    [dir="rtl"] .app-sidebar { transform: translateX(100%); }
    [dir="rtl"] .app-sidebar.open { transform: translateX(0); }
    [dir="rtl"] .app-main-content { margin-right: 0; }
    [dir="rtl"] .site-footer.has-sidebar { margin-right: 0; }
    [dir="rtl"] .messages-container.has-sidebar { margin-right: 0; }
}

/* App mode (Android WebView) — only hide marketing chrome (footer, cookie
   banner) but KEEP the SafarPro/Core sidebar so users can navigate.
   Force LIGHT theme : site has no dark CSS, Android Force-Dark inverts
   colors badly. 2026-05-11. */
body.app-mode { color-scheme: light !important; }
html { color-scheme: light; }

/* ───────────────────────────────────────────────────────────────────
   Arabic / RTL bidi safety net for numbers + currency + codes.
   The Unicode Bidi Algorithm reverses neutral runs (spaces, "DA",
   "DZD"...) when surrounded by RTL text — so « 36 000 DA » renders as
   « DA 000 36 » and « -50% » as « 50%- ». User flagged this on /ar/
   pricing + /safarpro/.../reservation/ (2026-05-13).

   Strategy : in RTL mode only, auto-isolate any element whose class
   name suggests it holds a number, money, currency, total, or code.
   Pages can still opt-in explicitly with .num / <bdi> for one-offs.
   `isolate` keeps the inner LTR run together without changing its
   visual position relative to surrounding RTL flow.
   ─────────────────────────────────────────────────────────────── */
[dir="rtl"] [class*="price"]:not(.doc-totals):not(.doc-totals-row):not(.doc-totals-inner),
[dir="rtl"] [class*="amount"],
[dir="rtl"] [class*="total"]:not(.doc-totals):not(.doc-totals-row):not(.doc-totals-inner),
[dir="rtl"] [class*="currency"],
[dir="rtl"] [class*="number"],
[dir="rtl"] [class*="-num"],
[dir="rtl"] [class*="-delta"],            /* .chip-delta, .price-delta… */
[dir="rtl"] [class*="-count"],            /* .pax-count, .badge-count… */
[dir="rtl"] [data-price-delta],
[dir="rtl"] [data-price],
[dir="rtl"] .num,
[dir="rtl"] [data-num],
[dir="rtl"] code,
[dir="rtl"] kbd,
[dir="rtl"] samp,
[dir="rtl"] time {
  unicode-bidi: isolate;
  direction: ltr;
}

/* Doc-detail totals block (proforma / facture / devis / BL detail pages) :
   on phones the right-aligned 240-260px-wide totals box was leaving Notes
   immediately below it with no clearance and overlapping inside the
   shared card on narrow viewports (user-flagged 2026-05-13). Force the
   totals to take full row width on phones + restore comfortable spacing
   before the next sibling block (Notes / QR / RIB / etc.).
   Breakpoint widened to 767.98 (covers phone + small tablet) and
   !important added so Bootstrap's `.justify-content-end !important`
   doesn't fight the override. */
.doc-totals { margin-bottom: 16px; clear: both; }
.doc-totals::after { content: ""; display: table; clear: both; }
@media (max-width: 767.98px) {
  .doc-totals-row {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    display: block !important;
  }
  .doc-totals-inner {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
  }
  .doc-totals { margin-bottom: 20px; }
  .doc-totals + * { margin-top: 12px !important; }
}
/* Tabular numerics (alignment + same-width digits) for prices/totals */
[dir="rtl"] [class*="price"],
[dir="rtl"] [class*="total"],
[dir="rtl"] .num,
[dir="rtl"] [data-num] {
  font-variant-numeric: tabular-nums;
}

/* Mobile : bigger touch targets on .btn-sm inside table rows.  2026-05-11. */
@media (max-width: 768px) {
  table .btn-sm,
  .table-responsive .btn-sm {
    min-height: 38px;
    min-width: 38px;
    padding: 6px 12px;
    font-size: .85rem;
  }
  table .btn-sm i,
  .table-responsive .btn-sm i {
    font-size: 1.05rem;
  }
  /* Scroll affordance : when a .table-responsive overflows horizontally,
     show a small gradient + arrow on the right edge so users know to swipe.
     RTL flips to the left edge. Pure CSS, no JS.  2026-05-11. */
  .table-responsive {
    position: relative;
    background:
      linear-gradient(to right, rgba(255,255,255,0), #fff 90%) right center / 40px 100% no-repeat,
      linear-gradient(to right, #fff, rgba(255,255,255,0) 10%) left center / 40px 100% no-repeat;
  }
  [dir="rtl"] .table-responsive::after,
  .table-responsive::after {
    content: '⟷';
    position: absolute; top: 8px; right: 8px;
    font-size: .85rem; color: #94a3b8; opacity: .7;
    background: #fff; padding: 2px 6px; border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 0 0 1px #e2e8f0;
  }
  [dir="rtl"] .table-responsive::after { right: auto; left: 8px; }
}

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border: none;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.4);
    color: #fff;
}
.btn-outline-primary {
    border-color: var(--accent-1);
    color: var(--accent-1) !important;
}
.btn-outline-primary:hover {
    background: var(--accent-1);
    color: #fff !important;
}
.btn-outline-light {
    border-color: var(--border-light);
    color: var(--text-main) !important;
}
.btn-outline-light:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.btn-outline-secondary {
    border-color: var(--border-light);
    color: var(--text-muted) !important;
    font-size: 0.85rem;
}
.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: var(--text-main) !important;
}

/* ---- Cards base ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
    box-shadow: var(--shadow-card);
}

/* ---- Forms ---- */
.form-label, label { color: #334155; font-weight: 500; }
.form-control {
    color: var(--text-main);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    transition: all 0.2s;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus {
    color: var(--text-main);
    background: #ffffff;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
    outline: none;
}
.form-select {
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
}

/* ---- Dropdown ---- */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 6px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.dropdown-item {
    color: var(--text-main) !important;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 8px 12px;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: #f1f5f9;
    color: var(--accent-1) !important;
}
.dropdown-item.active { background: rgba(79,70,229,0.08); color: var(--accent-1) !important; }
.dropdown-divider { border-color: var(--border-light); margin: 4px 0; }

/* ---- Tables ---- */
.table { color: var(--text-main); }
.table th, .table td { border-color: var(--border-light); color: var(--text-main); }
.table-hover tbody tr:hover { background: #f8fafc; }

/* =============================================================
   SCROLL ANIMATIONS
   ============================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* Floating animation for mock elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.float-anim { animation: float 4s ease-in-out infinite; }

/* Pulse for live indicators */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(5,150,105,0); }
    100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

/* Counter animation for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gradient shimmer */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-1));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
/* Subtle decorative dots */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    position: relative;
}
.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
}
.hero-trust {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}

/* =============================================================
   TRUST BAR
   ============================================================= */
.trust-bar {
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.trust-icon {
    font-size: 1.5rem;
    color: var(--accent-1);
}

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.how-section { background: #f8fafc; }
.step-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}
.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

/* =============================================================
   FEATURES
   ============================================================= */
.features-section { }
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    background: #fafbff;
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(79,70,229,0.2);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.08));
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-1);
}

.feature-card--highlight {
    border-color: rgba(5,150,105,0.25) !important;
    background: linear-gradient(160deg, rgba(5,150,105,0.03), rgba(79,70,229,0.02)) !important;
}
.feature-icon--alert {
    background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(79,70,229,0.06)) !important;
    border-color: rgba(5,150,105,0.2) !important;
    color: var(--accent-green) !important;
}

/* =============================================================
   EMPLOYEE VIEW SECTION
   ============================================================= */
.employee-view-section { background: #f8fafc; }

.employee-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.employee-feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.employee-feature-list li p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.employee-feature-list li strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-main);
    font-size: 0.95rem;
}
.emp-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(79,70,229,0.08);
    border: 1px solid rgba(79,70,229,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-1);
    flex-shrink: 0;
    margin-top: 2px;
}
.emp-icon--green {
    background: rgba(5,150,105,0.08);
    border-color: rgba(5,150,105,0.15);
    color: var(--accent-green);
}
.emp-icon--yellow {
    background: rgba(217,119,6,0.08);
    border-color: rgba(217,119,6,0.15);
    color: #d97706;
}

/* Mock desktop app card */
.mock-desktop-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.mock-titlebar { border-bottom: 1px solid var(--border-light); padding-bottom: 10px; }
.mock-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mock-status-row {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 10px;
}
.mock-status-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mock-status-value { font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.mock-info-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}
.mock-info-label { font-size: 0.72rem; color: var(--text-muted); }
.mock-info-value { font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.mock-notice {
    background: rgba(5,150,105,0.06);
    border: 1px solid rgba(5,150,105,0.15);
    border-radius: 8px;
    color: #065f46;
}
.mock-pulse {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 0 0 rgba(5,150,105,0.5);
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
}

/* =============================================================
   ANALYTICS SECTION
   ============================================================= */
.analytics-section {
    background: #f8fafc;
    border-radius: 20px;
    margin: 0 0 50px;
    border: 1px solid var(--border-light);
}
.metric-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}
.metric-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.metric-value { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.metric-sub { font-size: 0.8rem; color: var(--accent-1); margin-bottom: 10px; }
.metric-bar {
    height: 5px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.metric-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 4px;
}
.timeline-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
}
.timeline-bar {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    background: #e2e8f0;
}
.timeline-segment { height: 100%; }
.timeline-segment.productive  { background: var(--accent-green); }
.timeline-segment.idle        { background: #f59e0b; }
.timeline-segment.unproductive{ background: #ef4444; }
.timeline-legend {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
.legend-dot.productive  { background: var(--accent-green); }
.legend-dot.idle        { background: #f59e0b; }
.legend-dot.unproductive{ background: #ef4444; }

/* =============================================================
   PRICING
   ============================================================= */
.pricing-section {
    position: relative;
    background: #f8fafc;
}
.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}
.pricing-card--featured {
    background: #ffffff;
    border-color: rgba(79,70,229,0.3);
    box-shadow: 0 0 0 1px rgba(79,70,229,0.1), 0 8px 30px rgba(79,70,229,0.08);
}
.plan-badge-popular {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}
.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}
.plan-currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.plan-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    min-height: 1.2rem;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.plan-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li.text-muted { color: var(--text-muted) !important; }

.pricing-calc-hint {
    background: rgba(217,119,6,0.06);
    border: 1px solid rgba(217,119,6,0.15);
    border-radius: 10px;
}

/* =============================================================
   DOWNLOAD SECTION
   ============================================================= */
.download-section {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin: 0 0 50px;
}

.download-app-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    transition: transform 0.3s, box-shadow 0.3s;
}
.download-app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}
.download-os-icon {
    font-size: 3.5rem;
    color: var(--text-main);
    line-height: 1;
}

/* =============================================================
   REVIEWS / TESTIMONIALS
   ============================================================= */
.reviews-section { background: #f8fafc; }
.review-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}
.review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.review-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}
.review-author { font-weight: 600; color: var(--text-main); font-size: 0.9rem; }

/* =============================================================
   FAQ
   ============================================================= */
.faq-accordion .faq-item {
    background: #ffffff;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-btn {
    background: transparent !important;
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
}
.faq-btn::after { filter: none; }
.faq-btn:not(.collapsed) { color: var(--accent-1) !important; }
.faq-body {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    padding: 1rem 1.25rem;
}

/* =============================================================
   FINAL CTA
   ============================================================= */
.final-cta-section {
    background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(124,58,237,0.04));
    border: 1px solid rgba(79,70,229,0.1);
    border-radius: 20px;
    margin: 0 0 50px;
}

/* =============================================================
   CONTACT SECTION
   ============================================================= */
.contact-section { }
.contact-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    margin-top: 80px;
    color: #334155;
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6 { color: #0f172a; }
.site-footer p { color: #475569; }
.site-footer a { color: #4f46e5; }
.footer-brand { display: flex; align-items: center; }
.footer-desc { color: #475569; font-size: 0.9rem; line-height: 1.6; }
.footer-company { color: #475569; font-size: 0.85rem; line-height: 1.7; }
.footer-company a { color: #4f46e5; }
.footer-heading { color: #0f172a; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #475569 !important; font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #0f172a !important; }
.footer-divider { border-color: #cbd5e1; margin: 2rem 0 1rem; }
.footer-copy { color: #475569; font-size: 0.85rem; }
.footer-copy a { color: #475569 !important; text-decoration: none; }
.footer-copy a:hover { color: #0f172a !important; }
.badge-compliance {
    display: inline-block;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #334155;
    margin-right: 6px;
    margin-top: 4px;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* =============================================================
   COOKIE BANNER
   ============================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
}
.cookie-banner p { color: var(--text-muted); }
.cookie-banner a { color: var(--accent-1); }

/* =============================================================
   AUTH PAGES
   ============================================================= */
.auth-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.06);
}
.auth-title { font-size: 1.75rem; font-weight: 700; text-align: center; color: var(--text-main); }
.auth-sub { color: var(--text-muted); text-align: center; font-size: 0.95rem; }

/* =============================================================
   DASHBOARD
   ============================================================= */
.dash-header { padding: 2rem 0 1rem; border-bottom: 1px solid var(--border-light); margin-bottom: 2rem; }
.dash-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-align: center;
}
.dash-stat-value { font-size: 2rem; font-weight: 700; color: var(--text-main); }
.dash-stat-label { font-size: 0.85rem; color: var(--text-muted); }
.dash-action-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    color: var(--text-main) !important;
}
.dash-action-card:hover {
    background: #f8fafc;
    transform: translateX(4px);
}
.dash-action-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.08));
    border: 1px solid rgba(79,70,229,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* =============================================================
   BLOG
   ============================================================= */
.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: var(--text-main) !important;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

/* =============================================================
   ALERTS / BADGES
   ============================================================= */
.alert-success  { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info     { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warning  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.btn-close { filter: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 767px) {
    .hero-section { padding: 70px 0 40px; }
    .section-title { font-size: 1.6rem; }
    .plan-price { font-size: 1.8rem; }
    .auth-card { margin: 1rem; padding: 1.75rem; }
    .navbar-brand { max-width: 70%; padding: 0; }
    .navbar-brand .lc-mob { flex-wrap: wrap; }
    .navbar-brand .lc-mob img { flex-shrink: 0; }
    /* Make the SafarPro/Health badge inside lc shrink/wrap rather than overflow */
    .navbar-brand .lc-mob span { font-size: .58rem !important; padding: 1px 6px !important; }
    .navbar .container { padding-left: 12px; padding-right: 12px; }

    /* ── List tables : compact on mobile + Bootstrap classes for hiding
       secondary columns. Use Bootstrap's built-in :
         - <th class="d-none d-md-table-cell">  → hidden < 768px
         - <th class="d-none d-lg-table-cell">  → hidden < 992px
       Plus this generic compaction (font + padding reduction). */
    .table th, .table td { padding: .5rem .5rem; font-size: .82rem; }
    .table th { white-space: nowrap; }
    .table td.text-truncate-mobile { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .site-footer .row > div { margin-bottom: 1.5rem; }
    .footer-badges { flex-wrap: wrap; gap: 6px; }
    .card { overflow: hidden; }
    .dash-action-card { flex-wrap: wrap; }
    .plan-card { margin-bottom: 1rem; }
    .mock-dashboard { overflow-x: auto; }
    #whereby-modal > div { height: 100vh; border-radius: 0; max-width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
    .hero-trust .mx-3 { display: none; }
    .hero-trust span:not(.mx-3) { width: 100%; text-align: center; }
    .modules-row { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
    .container { padding-left: 16px; padding-right: 16px; }
    .row { margin-left: 0; margin-right: 0; }
    .row > * { padding-left: 8px; padding-right: 8px; }
}

/* ── Forms narrow centered (single-column entry, easier to fill) ──
   Use on a wrapper inside .container to constrain the form width and
   center it. Mobile = full width via the @media 575px override below.
   Pattern (any form template) :
     <div class="container py-4">
       <div class="form-wrap-wide">[hero/back-button/alerts]</div>
       <form class="form-card-narrow">[form fields]</form>
     </div>
*/
.form-wrap-wide   { max-width: 760px; margin: 0 auto; }
.form-card-narrow { max-width: 540px; margin: 0 auto; }

@media (max-width: 575px) {
    .hero-section { padding: 60px 0 30px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .hero-badge { font-size: 0.78rem; padding: 5px 14px; }
    .section-title { font-size: 1.3rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .form-wrap-wide, .form-card-narrow { max-width: 100%; }
}

/* =============================================================
   GLOBAL FIXES
   ============================================================= */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table td, .table th { word-break: break-word; word-wrap: break-word; }

@media (max-width: 767px) {
    input, select, textarea { font-size: 16px !important; }
}

.d-flex { gap: var(--flex-gap, 0); }
[style*="-webkit-background-clip:text"] {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar.sticky-top { position: -webkit-sticky; position: sticky; }
a, button { -webkit-tap-highlight-color: transparent; }
.full-vh { height: calc(var(--vh, 1vh) * 100); }
html { -webkit-overflow-scrolling: touch; }
.landing-cta-btn { -webkit-transform: translateZ(0); }

input::placeholder,
textarea::placeholder { color: #94a3b8 !important; opacity: 1; }
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { color: #94a3b8; }

select.form-select,
select.form-control {
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    border-color: #cbd5e1 !important;
}
select.form-select option,
select.form-control option {
    background-color: #ffffff;
    color: var(--text-main);
}

.user-content { word-break: break-word; overflow-wrap: break-word; }
.monospace-field { word-break: break-all; font-family: monospace; font-size: 0.85rem; }
.modal-inner { overflow-y: auto; max-height: 88vh; }
.flex-min-0 { min-width: 0; }

.landing-hero-h1 { font-size: clamp(1.6rem, 5vw, 2.5rem) !important; line-height: 1.2; }
.landing-hero { padding: 70px 0 50px; }
@media (max-width: 767px) {
    .landing-hero { padding: 40px 0 30px !important; }
}
.landing-stat-num { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; }
.landing-cta-btn {
    display: inline-block;
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.landing-cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.navbar .dropdown-menu { min-width: 220px; max-width: 90vw; }
@media (max-width: 991px) {
    .navbar .dropdown-menu { max-height: 60vh; overflow-y: auto; }
}

/* Sidebar-aware container: use fluid width inside sidebar layout */
.app-main-content .container,
.app-main-content .container-lg,
.app-main-content .container-md,
.app-main-content .container-sm,
.app-main-content .container-xl,
.app-main-content .container-xxl {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
}
@media (min-width: 992px) {
    .app-main-content .container,
    .app-main-content .container-lg,
    .app-main-content .container-md,
    .app-main-content .container-sm,
    .app-main-content .container-xl,
    .app-main-content .container-xxl { padding-left: 2rem; padding-right: 2rem; }
}
.app-main-content { overflow-x: hidden; }

/* RTL support */
[dir="rtl"] .bi { transform: scaleX(-1); }
[dir="rtl"] .lc img { transform: none; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .navbar-nav { padding-right: 0; }
[dir="rtl"] .dropdown-menu { text-align: right; }
[dir="rtl"] .navbar-brand { margin-right: 0; margin-left: 1rem; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }

/* ---- Bidi isolation for number+unit combos in RTL pages ----
   Use <span class="ltr-num"> (or attribute dir="ltr") to keep
   "42 ans", "10 000 DA", "+213 555 12 34 56", "Lun. 14h30" in their
   natural left-to-right ordering, even when the parent is dir="rtl".
   Without this, the browser bidi algorithm reorders them to the
   right of the line and they read backwards. */
.ltr-num,
.bidi-isolate,
[dir="rtl"] .ltr-num,
[dir="rtl"] .bidi-isolate,
[dir="rtl"] [data-ltr],
[dir="rtl"] time,
[dir="rtl"] .price,
[dir="rtl"] code,
[dir="rtl"] kbd {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* ---- Print ---- */
@media print {
    .site-footer, .navbar, .app-sidebar, .sidebar-backdrop, .messages-container { display: none !important; }
    .app-main-content { margin-left: 0 !important; margin-right: 0 !important; }
    /* Hide Nassir chatbot floating widgets (mic, WhatsApp bubble, panel) */
    #nassir-toggle, #nassir-talk-fab, #nassir-quick-bubble, #nassir-panel,
    #nassir-wa-fab, #nassir-wa-banner,
    .ocr-overlay, .install-banner { display: none !important; }
}

/* Previous overflow:hidden rule on .form-select option clipped option
   labels themselves (dropdowns appeared blank in Chrome RTL). Reverted —
   only width:100% on the trigger so it fits its container. Option
   text is left to native browser rendering.                            */
.form-select, select.form-control { width: 100%; }

/* ───────────────────────────────────────────────────────────────────
   Bespoke refresh (2026-05-14) — buttons, headings, links, cards.
   Targeted on purpose : no padding, font-size, or breakpoint changes.
   Goal : flat solid buttons (Qonto/Stripe style), deeper near-black
   headings, sharper link underline, lighter card elevation. Sizes are
   untouched so the existing layouts are stable.
   ─────────────────────────────────────────────────────────────── */

/* Buttons : single solid colour, no gradient. Keeps existing padding /
   font-size from Bootstrap so layouts don't reflow. !important defeats
   the legacy .btn-primary gradient defined above. */
.btn { border-radius: 10px; transition: box-shadow .18s, transform .12s, background .15s, color .15s; }
.btn-sm { border-radius: 8px; }
.btn-lg { border-radius: 12px; }
.btn:focus, .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(2,77,236,.18);
}
.btn-primary {
  background: #024dec !important;
  background-image: none !important;
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(2,77,236,.18), 0 1px 4px rgba(2,77,236,.10);
}
.btn-primary:hover {
  background: #0240c9 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(2,77,236,.22), 0 4px 12px rgba(2,77,236,.14);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Headings : near-black slate, tighter letter-spacing, confident weight.
   Doesn't change size — only colour + weight + letter-spacing. */
h1, h2, h3, .section-title, .landing-hero-h1 {
  color: #0F172A;
  letter-spacing: -0.022em;
  font-weight: 800;
}
h4, h5 {
  color: #0F172A;
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* Links : subtle underline on hover (Qonto-style), thicker stroke
   so it's visible even on small text. */
a {
  color: #024dec;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color .15s;
}
a:hover {
  color: #0240c9;
}

/* Cards : almost-flat at rest, gentle lift on hover. */
.card { box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card:hover { box-shadow: 0 4px 18px rgba(15,23,42,.06); }

/* Inputs : matching focus ring, untouched border-radius / height. */
.form-control:focus, .form-select:focus {
  border-color: rgba(2,77,236,.45);
  box-shadow: 0 0 0 3px rgba(2,77,236,.12);
}

/* Section dividers : Qonto uses 1px hairlines between sections.
   Only applied where the section has explicit class .py-5 to avoid
   touching the dashboard/admin layouts. */
section.py-5 + section.py-5 {
  position: relative;
}

/* App chrome (sidebar + nav) refresh — break the « default Bootstrap »
   look on every authenticated page (/billing/, /safarpro/, /erp/, etc.).
   Same widths + paddings, just deeper neutrals + sharper accents. */
.app-sidebar {
  background: #FAFBFC;                                 /* warmer than pure #fff */
  border-right: 1px solid rgba(15,23,42,0.08);
}
.sidebar-section-label {
  color: #64748B;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}
.sidebar-link {
  color: #1e293b;                                      /* darker text = better contrast */
  font-weight: 500;
  border-radius: 8px;
}
.sidebar-link:hover {
  background: rgba(2,77,236,0.06);
  color: #024dec;
}
.sidebar-link.active {
  background: rgba(2,77,236,0.10);
  color: #024dec;
  font-weight: 700;
  position: relative;
}
.sidebar-link.active::before {
  /* Qonto/Linear-style active-indicator bar on the left. */
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #024dec;
}
[dir="rtl"] .sidebar-link.active::before {
  left: auto; right: -10px;
  border-radius: 2px 0 0 2px;
}
.sidebar-divider {
  background: rgba(15,23,42,0.06) !important;
  margin: 14px 8px !important;
}

/* Top navbar : flatten + tighter type. Keeps existing height. */
.navbar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  box-shadow: none;
}
.navbar .nav-link, .navbar .navbar-brand { letter-spacing: -0.005em; }
