/* ==========================================================================
   ESTA FLEET COMMAND - PREMIUM 2026 SAAS DESIGN SYSTEM
   Inspired by FleetOps, Samsara, and Modern Utility Fleet Platforms
   ========================================================================== */

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

:root {
  /* Core Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #0f172a;
  --sidebar-bg: #0b1329;
  --sidebar-border: #1e293b;
  --sidebar-hover: rgba(255, 255, 255, 0.07);
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  
  /* Canvas & Cards */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  /* Typography */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Semantic Highlights */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-text: #15803d;
  
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-text: #b45309;
  
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-text: #b91c1c;
  
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --info-text: #0369a1;

  --purple: #7c3aed;
  --purple-bg: #faf5ff;
  --purple-text: #6d28d9;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Lock browser window to eliminate double scrollbars */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sleek Modern SaaS Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

/* --------------------------------------------------------------------------
   App Layout
   -------------------------------------------------------------------------- */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Sidebar (Dark Sleek SaaS Theme)
   -------------------------------------------------------------------------- */
.sidebar {
  width: 250px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--sidebar-border);
  z-index: 100;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.sidebar-branding {
  line-height: 1.2;
}

.sidebar-branding h2 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-branding small {
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease-in-out;
}

.sidebar-nav li a i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: #64748b;
  transition: color 0.15s ease;
}

.sidebar-nav li a:hover {
  background-color: var(--sidebar-hover);
  color: #ffffff;
}

.sidebar-nav li a:hover i {
  color: #93c5fd;
}

.sidebar-nav li.active a {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.sidebar-nav li.active a i {
  color: #ffffff;
}

.sidebar-nav .nav-badge {
  margin-left: auto;
  background-color: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Sidebar Sustainability / Power Promo Card */
.sidebar-promo-card {
  margin: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.sidebar-promo-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.sidebar-promo-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-promo-card p {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar (Pure White SaaS Header)
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-main);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  width: 380px;
  transition: all 0.2s;
}

.topbar-search-box:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.topbar-search-box i {
  color: #94a3b8;
  font-size: 13px;
}

.topbar-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  color: var(--text-main);
  width: 100%;
}

.topbar-search-box .key-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  font-family: inherit;
}

.topbar-right-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.date-range-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.live-beacon {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #15803d;
  background: #f0fdf4;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}

.beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: all 0.15s ease;
}

.topbar-icon-btn:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.topbar-icon-btn .badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.user-profile-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-profile-capsule:hover {
  background: #f1f5f9;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.user-meta {
  line-height: 1.25;
}

.user-name-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.user-role-text {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Page Header & Banners
   -------------------------------------------------------------------------- */
.content-body {
  padding: 20px 24px 36px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-intro-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
}

.page-intro-titles .greeting-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.page-intro-titles .main-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.6px;
}

.page-intro-slogan {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

/* --------------------------------------------------------------------------
   6-Column Metric Cards Grid (SaaS Squircles)
   -------------------------------------------------------------------------- */
.kpi-row-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  width: 100%;
}

@media (max-width: 1560px) {
  .kpi-row-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 860px) {
  .kpi-row-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .kpi-row-6 {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.kpi-icon-squircle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.kpi-icon-squircle.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon-squircle.green { background: #f0fdf4; color: #16a34a; }
.kpi-icon-squircle.cyan { background: #ecfeff; color: #0891b2; }
.kpi-icon-squircle.rose { background: #fff1f2; color: #e11d48; }
.kpi-icon-squircle.amber { background: #fffbeb; color: #d97706; }
.kpi-icon-squircle.purple { background: #faf5ff; color: #7c3aed; }

.kpi-details {
  flex: 1;
  min-width: 0;
}

.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.kpi-value-number {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.kpi-delta-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.kpi-delta-pill.up-good { background: #dcfce7; color: #15803d; }
.kpi-delta-pill.up-bad { background: #fee2e2; color: #b91c1c; }
.kpi-delta-pill.down-good { background: #dcfce7; color: #15803d; }
.kpi-delta-pill.down-bad { background: #fee2e2; color: #b91c1c; }

.kpi-subtext {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Cards, Panels, & Widgets
   -------------------------------------------------------------------------- */
.dashboard-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
  width: 100%;
}

@media (max-width: 1280px) {
  .dashboard-grid-3 {
    grid-template-columns: 1fr;
  }
}

.ui-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ui-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.ui-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.ui-card-header .header-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ui-card-header .header-link:hover {
  text-decoration: underline;
}

.ui-card-body {
  padding: 16px 18px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Data Tables
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.clean-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.clean-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.clean-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-secondary);
  vertical-align: middle;
}

.clean-table tbody tr {
  transition: background 0.12s ease;
}

.clean-table tbody tr:hover {
  background-color: #f8fafc;
}

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

.plate-pill {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: #f1f5f9;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  display: inline-block;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pill.success {
  background: #dcfce7;
  color: #15803d;
}
.status-pill.success::before {
  background: #16a34a;
}

.status-pill.warning {
  background: #fef3c7;
  color: #b45309;
}
.status-pill.warning::before {
  background: #d97706;
}

.status-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}
.status-pill.danger::before {
  background: #dc2626;
}

.status-pill.info {
  background: #e0f2fe;
  color: #0369a1;
}
.status-pill.info::before {
  background: #0284c7;
}

.status-pill.neutral {
  background: #f1f5f9;
  color: #475569;
}
.status-pill.neutral::before {
  background: #94a3b8;
}

/* --------------------------------------------------------------------------
   Dashboard 2-Column Split & Activity Feed Items
   -------------------------------------------------------------------------- */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
  width: 100%;
}

@media (max-width: 1080px) {
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
}

.code-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  display: inline-block;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.alert-feed-item, .task-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  transition: all 0.15s ease;
}

.alert-feed-item:hover, .task-feed-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.alert-icon-wrap, .task-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.alert-icon-wrap.critical { background: #fee2e2; color: #dc2626; }
.alert-icon-wrap.warning { background: #fef3c7; color: #d97706; }
.alert-icon-wrap.info { background: #e0f2fe; color: #0284c7; }

.task-icon-wrap.red { background: #fff1f2; color: #e11d48; }
.task-icon-wrap.blue { background: #eff6ff; color: #2563eb; }
.task-icon-wrap.green { background: #f0fdf4; color: #16a34a; }
.task-icon-wrap.purple { background: #faf5ff; color: #7c3aed; }

.alert-content-wrap, .task-content-wrap {
  flex: 1;
  min-width: 0;
}

.alert-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.alert-title, .task-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-message-text, .task-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-meta-wrap, .task-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.alert-time {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.btn-ack {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ack:hover {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: #94a3b8;
}

.task-countdown {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.task-countdown.danger { background: #fee2e2; color: #b91c1c; }
.task-countdown.warning { background: #fef3c7; color: #b45309; }
.task-countdown.info { background: #e0f2fe; color: #0369a1; }

.task-action-link {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.task-action-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Buttons & Form Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11.5px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 14px;
  width: 90%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  padding: 14px 22px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #94a3b8;
}
.close-btn:hover {
  color: var(--text-main);
}
