/* ============================================================
   LONGFIELD CONSULTING & ANALYTICS — Brand Design System
   Colors extracted from Longfield logo:
     Deep Blue:    #1a3a6b  (LONG)
     Medium Blue:  #1e5fa8
     Teal:         #0e9ab5
     Green:        #2eab4e  (Field)
     Light Green:  #6dc93a
     Wave Accent:  linear-gradient(90deg, #1a3a6b, #0e9ab5, #2eab4e)
   ============================================================ */

:root {
  --lf-blue-dark:    #1a3a6b;
  --lf-blue:         #1e5fa8;
  --lf-blue-light:   #2d7dd2;
  --lf-teal:         #0e9ab5;
  --lf-green:        #2eab4e;
  --lf-green-light:  #6dc93a;
  --lf-wave:         linear-gradient(90deg, #1a3a6b 0%, #0e9ab5 50%, #2eab4e 100%);
  --lf-wave-v:       linear-gradient(180deg, #1a3a6b 0%, #1e5fa8 40%, #0e9ab5 70%, #2eab4e 100%);
  --lf-sidebar-bg:   #0d1f3c;
  --lf-sidebar-text: #c8d8f0;
  --lf-sidebar-hover:#1e5fa8;
  --lf-sidebar-active:#2d7dd2;
  --lf-bg:           #f0f4f8;
  --lf-card-bg:      #ffffff;
  --lf-border:       #d0dce8;
  --lf-text:         #1a2a3a;
  --lf-text-muted:   #5a7a9a;
  --lf-shadow:       0 2px 12px rgba(26,58,107,0.10);
  --lf-shadow-lg:    0 6px 24px rgba(26,58,107,0.16);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--lf-bg);
  color: var(--lf-text);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Layout ── */
.lf-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.lf-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--lf-sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.lf-sidebar-logo {
  padding: 20px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lf-sidebar-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}

/* Wave accent bar under logo */
.lf-wave-bar {
  height: 3px;
  background: var(--lf-wave);
  margin: 0;
}

.lf-sidebar-section {
  padding: 16px 0 4px;
}

.lf-sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(200,216,240,0.45);
  padding: 0 16px 6px;
}

.lf-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--lf-sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lf-sidebar a:hover {
  background: rgba(30,95,168,0.35);
  color: #ffffff;
  border-left-color: var(--lf-teal);
}

.lf-sidebar a.active {
  background: rgba(45,125,210,0.30);
  color: #ffffff;
  border-left-color: var(--lf-green-light);
}

.lf-sidebar a i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: var(--lf-teal);
  flex-shrink: 0;
}

.lf-sidebar a.active i,
.lf-sidebar a:hover i {
  color: var(--lf-green-light);
}

.lf-sidebar-footer {
  margin-top: auto;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Main Content ── */
.lf-main {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top Bar ── */
.lf-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--lf-border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(26,58,107,0.07);
}

.lf-topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--lf-blue-dark);
  letter-spacing: -0.3px;
}

.lf-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--lf-text-muted);
}

.lf-topbar-user .lf-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lf-wave);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
}

.lf-badge-role {
  background: var(--lf-blue-dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Page Content ── */
.lf-content {
  padding: 28px;
  flex: 1;
}

/* ── Flash Messages ── */
.lf-flash {
  padding: 11px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid;
}
.lf-flash.success { background: #eafaf0; border-color: var(--lf-green); color: #1a5c2e; }
.lf-flash.error   { background: #fef0f0; border-color: #e53e3e; color: #742a2a; }
.lf-flash.info    { background: #ebf4ff; border-color: var(--lf-blue); color: #1a3a6b; }
.lf-flash.warning { background: #fffbeb; border-color: #d69e2e; color: #744210; }

/* ── Cards ── */
.lf-card {
  background: var(--lf-card-bg);
  border: 1px solid var(--lf-border);
  border-radius: 10px;
  box-shadow: var(--lf-shadow);
  overflow: hidden;
}

.lf-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--lf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafcff;
}

.lf-card-header h5, .lf-card-header h6 {
  margin: 0;
  font-weight: 700;
  color: var(--lf-blue-dark);
  font-size: 14px;
}

.lf-card-body {
  padding: 20px;
}

/* ── Stat Cards ── */
.lf-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.lf-stat-card {
  background: var(--lf-card-bg);
  border: 1px solid var(--lf-border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--lf-shadow);
  position: relative;
  overflow: hidden;
}

.lf-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lf-wave);
}

.lf-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.lf-stat-icon.blue   { background: rgba(30,95,168,0.12); color: var(--lf-blue); }
.lf-stat-icon.teal   { background: rgba(14,154,181,0.12); color: var(--lf-teal); }
.lf-stat-icon.green  { background: rgba(46,171,78,0.12);  color: var(--lf-green); }
.lf-stat-icon.orange { background: rgba(237,137,54,0.12); color: #dd6b20; }

.lf-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--lf-blue-dark);
  line-height: 1;
}

.lf-stat-label {
  font-size: 12px;
  color: var(--lf-text-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* ── Buttons ── */
.lf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.lf-btn-primary {
  background: var(--lf-blue);
  color: white;
}
.lf-btn-primary:hover { background: var(--lf-blue-dark); color: white; text-decoration: none; }

.lf-btn-success {
  background: var(--lf-green);
  color: white;
}
.lf-btn-success:hover { background: #228b3a; color: white; text-decoration: none; }

.lf-btn-wave {
  background: var(--lf-wave);
  color: white;
}
.lf-btn-wave:hover { opacity: 0.9; color: white; text-decoration: none; }

.lf-btn-outline {
  background: transparent;
  color: var(--lf-blue);
  border: 1.5px solid var(--lf-blue);
}
.lf-btn-outline:hover { background: var(--lf-blue); color: white; text-decoration: none; }

.lf-btn-danger {
  background: #e53e3e;
  color: white;
}
.lf-btn-danger:hover { background: #c53030; color: white; text-decoration: none; }

.lf-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.lf-btn-lg {
  padding: 11px 28px;
  font-size: 15px;
}

/* ── Tables ── */
.lf-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--lf-border);
  box-shadow: var(--lf-shadow);
}

.lf-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 13.5px;
}

.lf-table thead th {
  background: #f0f5fb;
  color: var(--lf-blue-dark);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 2px solid var(--lf-border);
  white-space: nowrap;
}

.lf-table tbody tr {
  border-bottom: 1px solid #eef2f7;
  transition: background 0.1s;
}

.lf-table tbody tr:hover {
  background: #f5f9ff;
}

.lf-table tbody td {
  padding: 11px 16px;
  color: var(--lf-text);
  vertical-align: middle;
}

.lf-table tbody tr:last-child {
  border-bottom: none;
}

/* ── Badges / Status Pills ── */
.lf-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.lf-badge-active   { background: #eafaf0; color: #1a5c2e; }
.lf-badge-pending  { background: #fffbeb; color: #744210; }
.lf-badge-closed   { background: #f0f4f8; color: #4a6080; }
.lf-badge-draft    { background: #f0f4f8; color: #4a6080; }
.lf-badge-sent     { background: #ebf4ff; color: #1a3a6b; }
.lf-badge-paid     { background: #eafaf0; color: #1a5c2e; }
.lf-badge-overdue  { background: #fff5f5; color: #742a2a; }
.lf-badge-family   { background: rgba(30,95,168,0.1); color: var(--lf-blue-dark); }
.lf-badge-criminal { background: rgba(14,154,181,0.1); color: #0a6e82; }
.lf-badge-civil    { background: rgba(46,171,78,0.1);  color: #1a5c2e; }
.lf-badge-estate   { background: rgba(109,201,58,0.1); color: #2d6a0a; }

/* ── Forms ── */
.lf-form-group {
  margin-bottom: 18px;
}

.lf-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lf-blue-dark);
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.lf-input,
.lf-select,
.lf-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--lf-border);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--lf-text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}

.lf-input:focus,
.lf-select:focus,
.lf-textarea:focus {
  border-color: var(--lf-blue);
  box-shadow: 0 0 0 3px rgba(30,95,168,0.12);
}

.lf-textarea { resize: vertical; min-height: 100px; }

/* ── Tabs ── */
.lf-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--lf-border);
  margin-bottom: 20px;
}

.lf-tab {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lf-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lf-tab:hover { color: var(--lf-blue); text-decoration: none; }
.lf-tab.active { color: var(--lf-blue); border-bottom-color: var(--lf-blue); }

/* ── Kanban ── */
.lf-kanban {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.lf-kanban-col {
  min-width: 200px;
  flex-shrink: 0;
  background: #f0f5fb;
  border-radius: 10px;
  border: 1px solid var(--lf-border);
}

.lf-kanban-col-header {
  padding: 12px 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 2px solid;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lf-kanban-col-header.new      { color: var(--lf-blue-dark); border-color: var(--lf-blue); background: rgba(30,95,168,0.08); }
.lf-kanban-col-header.contacted{ color: var(--lf-teal); border-color: var(--lf-teal); background: rgba(14,154,181,0.08); }
.lf-kanban-col-header.consult  { color: #d69e2e; border-color: #d69e2e; background: rgba(214,158,46,0.08); }
.lf-kanban-col-header.retainer { color: var(--lf-green); border-color: var(--lf-green); background: rgba(46,171,78,0.08); }
.lf-kanban-col-header.hired    { color: var(--lf-green-light); border-color: var(--lf-green-light); background: rgba(109,201,58,0.08); }
.lf-kanban-col-header.lost     { color: #e53e3e; border-color: #e53e3e; background: rgba(229,62,62,0.08); }

.lf-kanban-cards { padding: 10px; min-height: 80px; }

.lf-kanban-card {
  background: white;
  border: 1px solid var(--lf-border);
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--lf-shadow);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}

.lf-kanban-card:hover {
  box-shadow: var(--lf-shadow-lg);
  transform: translateY(-1px);
}

/* ── Login Page ── */
.lf-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a6b 40%, #0e9ab5 75%, #2eab4e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lf-login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.lf-login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.lf-login-logo img {
  max-width: 240px;
  height: auto;
}

.lf-login-title {
  text-align: center;
  font-size: 14px;
  color: var(--lf-text-muted);
  margin-bottom: 28px;
  font-weight: 500;
}

/* ── Section Headers ── */
.lf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.lf-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--lf-blue-dark);
  margin: 0;
}

.lf-section-title span {
  background: var(--lf-wave);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Matter Detail Tabs ── */
.lf-matter-header {
  background: white;
  border: 1px solid var(--lf-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--lf-shadow);
  position: relative;
  overflow: hidden;
}

.lf-matter-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--lf-wave);
}

/* ── Divider ── */
.lf-divider {
  height: 1px;
  background: var(--lf-border);
  margin: 20px 0;
}

/* ── Empty State ── */
.lf-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--lf-text-muted);
}

.lf-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--lf-border);
  display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .lf-sidebar { width: 200px; min-width: 200px; transform: translateX(-100%); transition: transform 0.2s; }
  .lf-sidebar.open { transform: translateX(0); }
  .lf-main { margin-left: 0; }
  .lf-content { padding: 16px; }
  .lf-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f4f8; }
::-webkit-scrollbar-thumb { background: var(--lf-blue-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--lf-blue-dark); }

/* ── Utility ── */
.text-blue   { color: var(--lf-blue) !important; }
.text-green  { color: var(--lf-green) !important; }
.text-teal   { color: var(--lf-teal) !important; }
.text-muted  { color: var(--lf-text-muted) !important; }
.fw-700      { font-weight: 700 !important; }
.fw-800      { font-weight: 800 !important; }
.mb-0        { margin-bottom: 0 !important; }
.mt-0        { margin-top: 0 !important; }
.gap-2       { gap: 8px !important; }
.d-flex      { display: flex !important; }
.align-center{ align-items: center !important; }
.justify-between { justify-content: space-between !important; }

/* ============================================================
   EXPANDED MODULES — Logistics, Statistics, Multi-Firm
   ============================================================ */

/* ── Quick Links (49 CFR Reference) ── */
.lf-quick-link {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--lf-bg);
  border: 1px solid var(--lf-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.lf-quick-link:hover {
  background: var(--lf-blue-dark);
  border-color: var(--lf-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--lf-shadow);
}
.lf-quick-link-part {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lf-teal);
}
.lf-quick-link:hover .lf-quick-link-part { color: #7ecfdf; }
.lf-quick-link-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--lf-blue-dark);
  margin-top: 2px;
}
.lf-quick-link:hover .lf-quick-link-name { color: #fff; }

/* ── Audit Checklist ── */
.lf-audit-item {
  border-bottom: 1px solid var(--lf-border);
  padding: 12px 16px;
  transition: background 0.15s;
}
.lf-audit-item:last-child { border-bottom: none; }
.lf-audit-item:hover { background: #f8fafc; }
.lf-audit-item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.lf-audit-cfr { flex-shrink: 0; padding-top: 2px; }
.lf-audit-question {
  flex: 1;
  font-size: 13.5px;
  color: var(--lf-text);
  min-width: 200px;
}
.lf-audit-status-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.lf-audit-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--lf-border);
  border-radius: 6px;
  background: #fff;
  color: var(--lf-text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lf-audit-btn:hover { border-color: var(--lf-blue); color: var(--lf-blue); }
.lf-audit-btn.active-compliant { background: #d4edda; border-color: #28a745; color: #155724; }
.lf-audit-btn.active-violation { background: #fff3cd; border-color: #ffc107; color: #856404; }
.lf-audit-btn.active-critical { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.lf-audit-btn.active-na { background: #e9ecef; border-color: #adb5bd; color: #495057; }
.lf-audit-finding-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--lf-border);
}

/* ── Regulations Accordion ── */
.lf-accordion-item {
  border: 1px solid var(--lf-border);
  border-radius: 8px !important;
  margin-bottom: 8px;
  overflow: hidden;
}
.lf-accordion-btn {
  background: var(--lf-bg) !important;
  color: var(--lf-text) !important;
  font-size: 14px;
  padding: 12px 16px;
}
.lf-accordion-btn:not(.collapsed) {
  background: var(--lf-blue-dark) !important;
  color: #fff !important;
}
.lf-accordion-body {
  background: #fff;
  font-size: 13.5px;
  line-height: 1.7;
}
.lf-reg-requirements {
  background: #f0f7ff;
  border-left: 3px solid var(--lf-blue);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}
.lf-reg-audit-note {
  background: #e8f5e9;
  border-left: 3px solid var(--lf-green);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
}
.lf-reg-penalty {
  background: #fff8e1;
  border-left: 3px solid #ffc107;
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
}

/* ── Statistics & Analysis ── */
.lf-sas-output {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 16px;
  overflow-x: auto;
  line-height: 1.6;
}
.lf-code-output {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
}
.lf-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  background: #1a1a2e;
  color: #e8e8e8;
  border: 1px solid #333;
}
.lf-analysis-narrative {
  font-size: 14px;
  line-height: 1.8;
  color: var(--lf-text);
}
.lf-analysis-narrative p { margin-bottom: 1em; }
.lf-recommendations {
  font-size: 13.5px;
  line-height: 1.7;
}
.lf-citation-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--lf-border);
}
.lf-citation-item:last-child { border-bottom: none; }
.lf-citation-name { font-weight: 600; color: var(--lf-blue-dark); font-size: 13px; }
.lf-citation-ref { color: var(--lf-teal); }
.lf-citation-note { color: var(--lf-text-muted); }
.lf-insight-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--lf-border);
  font-size: 13.5px;
}
.lf-insight-item:last-child { border-bottom: none; }

/* ── File Upload Zone ── */
.lf-upload-zone {
  border: 2px dashed var(--lf-border);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.lf-upload-zone:hover {
  border-color: var(--lf-blue);
  background: #f0f7ff;
}
.lf-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* ── Alerts ── */
.lf-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.lf-alert-warning { background: #fff3cd; border: 1px solid #ffc107; color: #856404; }
.lf-alert-danger  { background: #f8d7da; border: 1px solid #dc3545; color: #721c24; }
.lf-alert-success { background: #d4edda; border: 1px solid #28a745; color: #155724; }
.lf-alert-info    { background: #d1ecf1; border: 1px solid #17a2b8; color: #0c5460; }

/* ── Info Box ── */
.lf-info-box {
  background: #e8f4fd;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--lf-blue-dark);
}

/* ── Badge Large ── */
.lf-badge-lg {
  font-size: 13px;
  padding: 6px 14px;
}

/* ── Clickable Card ── */
.lf-card-clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lf-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: var(--lf-shadow-lg);
}

/* ── Firm Switcher in Topbar ── */
.lf-firm-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(30,95,168,0.1);
  border: 1px solid rgba(30,95,168,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lf-blue);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.lf-firm-switcher:hover {
  background: var(--lf-blue);
  color: #fff;
  border-color: var(--lf-blue);
}
.lf-firm-switcher i { font-size: 14px; }

/* ── Empty State ── */
.lf-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--lf-text-muted);
}
