:root {
  --bg: #07090e;
  --bg-subtle: #0d111a;
  --card: #131722;
  --card-hover: #181d2c;
  --card-active: #1f2538;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f4f9;
  --text-muted: #8e95a5;
  --text-dim: #60687a;
  
  --brand: #e31e24;
  --brand-light: #ff3e44;
  --brand-glow: rgba(227, 30, 36, 0.25);
  
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.35);
  
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.35);
  
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  --blue-border: rgba(59, 130, 246, 0.35);

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card-active); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Main App Wrapper (Sidebar + Content) */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: 270px;
  background: var(--bg-subtle);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 120;
  transition: width 0.25s ease;
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-header img {
  height: 38px;
  width: auto;
}
.sidebar-header-text h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}
.sidebar-header-text span {
  font-size: 10px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.sidebar-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 12px 10px 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.nav-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link:hover {
  color: #fff;
  background: var(--card);
}
.nav-link.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px var(--brand-glow);
}
.nav-link.active .nav-badge {
  background: #fff;
  color: var(--brand);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.user-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.user-info {
  flex: 1;
  overflow: hidden;
}
.user-info strong {
  display: block;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.user-info span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* App Main Content */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

/* Top App Bar */
.top-bar {
  background: rgba(13, 17, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 16px;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-title h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}
.page-title p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.role-switcher {
  display: flex;
  background: var(--bg);
  padding: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  gap: 4px;
}
.role-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.role-btn:hover {
  color: var(--text);
  background: var(--card);
}
.role-btn.active {
  background: var(--brand);
  color: #fff;
}

/* Page Containers */
.page-content {
  padding: 24px 28px 60px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.page-view {
  display: none;
}
.page-view.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-light);
  box-shadow: 0 4px 14px var(--brand-glow);
}
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--line-strong);
}
.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
}
.btn-danger {
  background: rgba(227, 30, 36, 0.15);
  color: #ff6b6b;
  border-color: rgba(227, 30, 36, 0.3);
}
.btn-danger:hover {
  background: var(--brand);
  color: #fff;
}
.btn-amber {
  background: var(--amber);
  color: #111;
}
.btn-amber:hover {
  background: #d97706;
  color: #fff;
}

/* Badges */
.nav-badge {
  background: var(--card);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
}
.nav-badge.danger {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}
.nav-badge.amber {
  background: var(--amber);
  color: #111;
  border-color: transparent;
}

/* Executive Story Banner */
.exec-story-banner {
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.12) 0%, rgba(19, 23, 34, 0.8) 100%);
  border: 1px solid rgba(227, 30, 36, 0.35);
  border-left: 5px solid var(--brand);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.exec-story-text h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exec-story-text p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
  max-width: 900px;
}
.exec-story-text strong {
  color: #fff;
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.kpi-card.highlight {
  border-color: rgba(227, 30, 36, 0.4);
  background: linear-gradient(180deg, rgba(227, 30, 36, 0.08) 0%, var(--card) 100%);
}
.kpi-card.alert-card {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--card) 100%);
}
.kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.kpi-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.kpi-value {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.kpi-badge.up {
  background: var(--amber-bg);
  color: var(--amber);
}
.kpi-badge.danger {
  background: rgba(227, 30, 36, 0.2);
  color: #ff6b6b;
}

/* SECTION HEADERS */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ANOMALY BOARD */
.anomaly-board {
  background: var(--card);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}
.anomaly-header {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(227, 30, 36, 0.15) 100%);
  padding: 16px 20px;
  border-bottom: 1px solid var(--amber-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.anomaly-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.anomaly-header-title h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}
.anomaly-list {
  display: flex;
  flex-direction: column;
}
.anomaly-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 140px 1.4fr 1.2fr 1fr auto;
  gap: 16px;
  align-items: center;
  transition: background 0.2s ease;
}
.anomaly-item:last-child {
  border-bottom: none;
}
.anomaly-item:hover {
  background: var(--card-hover);
}

.plate-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #111111;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 2px solid #333333;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.plate-flag {
  background: #003399;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 0 3px;
  margin-right: 5px;
  border-radius: 2px;
}

.anomaly-desc h5 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.anomaly-desc p {
  font-size: 13px;
  color: #ff9999;
  margin-top: 3px;
}
.anomaly-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.anomaly-meta strong {
  color: var(--text);
}
.anomaly-cost {
  text-align: right;
}
.anomaly-cost strong {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #fff;
  display: block;
}
.anomaly-cost span {
  font-size: 11px;
  color: var(--text-muted);
}

/* SIDE-BY-SIDE DUPLICATE COMPARISON MODAL / COMPONENT */
.compare-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.compare-col.prev {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--card) 100%);
}
.compare-col.current {
  border-color: rgba(227, 30, 36, 0.4);
  background: linear-gradient(180deg, rgba(227, 30, 36, 0.08) 0%, var(--card) 100%);
}
.compare-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.compare-tag.prev { color: #60a5fa; }
.compare-tag.current { color: #f87171; }

.compare-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.compare-table td {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.compare-table td:first-child {
  color: var(--text-muted);
  width: 42%;
}
.compare-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #fff;
}

/* Analytics Row Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* TOP 10 EXPENSIVE VEHICLES LIST */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.top-item:hover {
  background: var(--card-hover);
  border-color: var(--line-strong);
}
.top-rank {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  min-width: 24px;
}
.top-info {
  flex: 1;
  margin-left: 12px;
}
.top-info strong {
  display: block;
  font-size: 14px;
  color: #fff;
}
.top-info span {
  font-size: 12px;
  color: var(--text-muted);
}
.top-val {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

/* Vehicle Grid for Fleet Page */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}
.fleet-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fleet-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.fleet-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.fleet-card-body {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.fleet-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* DATA TABLE */
.table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-toolbar {
  padding: 16px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  gap: 8px;
  min-width: 280px;
}
.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  width: 100%;
}
.filters-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.select-filter {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius);
  outline: none;
}

.data-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.data-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:hover td {
  background: var(--card-hover);
}
.data-table tr.is-anomaly td {
  background: rgba(245, 158, 11, 0.04);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.onay_bekliyor { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge.onaylandi { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.badge.incelemede { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
.badge.reddedildi { background: rgba(227, 30, 36, 0.15); color: #ff6b6b; border: 1px solid rgba(227, 30, 36, 0.3); }
.badge.aktif { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.badge.sanayide { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge.arizali { background: rgba(227, 30, 36, 0.15); color: #ff6b6b; border: 1px solid rgba(227, 30, 36, 0.3); }

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-window {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  width: min(840px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.modal-overlay.active .modal-window {
  transform: scale(1);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-subtle);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* FORM CONTROLS */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-control {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-control:focus {
  border-color: var(--brand);
}

/* PROFESSIONAL PHONE INPUT GROUP (TR +90 ADDON) */
.phone-input-group {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phone-input-group:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(227, 30, 36, 0.2);
}
.phone-prefix-addon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  user-select: none;
  white-space: nowrap;
}
.phone-prefix-addon .flag-icon {
  font-size: 16px;
  line-height: 1;
}
.phone-input-group .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 12px;
  width: 100%;
}

/* SMS SIMULATOR - SLEEK SMARTPHONE UI */
.sms-phone-mockup {
  background: #0d0f14;
  border: 12px solid #232733;
  border-radius: 40px;
  padding: 18px 12px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,0.6);
  position: relative;
}
.sms-phone-mockup::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #374151;
  border-radius: 3px;
}
.sms-screen {
  background: #0b0d12;
  border-radius: 24px;
  padding: 18px 14px;
  min-height: 540px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sms-header-bar {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.sms-header-bar span {
  font-size: 11px;
  color: #9ca3af;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sms-header-bar strong {
  font-size: 15px;
  color: #fff;
  display: block;
  margin-top: 2px;
}
.sms-bubble-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}
.sms-bubble {
  background: #181d26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #f3f4f6;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.sms-bubble.alert {
  border-left-color: var(--brand);
  background: #201316;
  border-color: rgba(227, 30, 36, 0.35);
}
.sms-meta-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--emerald);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* 2D VEHICLE DIAGRAM & COMPONENT MAP STYLES */
.vehicle-map-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: flex-start;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .vehicle-map-container {
    grid-template-columns: 1fr;
  }
}

.diagram-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.diagram-tab-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.diagram-tab-btn:hover {
  color: #fff;
  border-color: var(--line-strong);
}
.diagram-tab-btn.active {
  background: rgba(227, 30, 36, 0.12);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 12px rgba(227, 30, 36, 0.25);
}

.svg-canvas-wrapper {
  background: #080c14;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}
.svg-canvas-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
  font-size: 11px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ZONE INSPECTOR PANEL */
.zone-inspector-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Print CSS */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .app-sidebar, .modal-close, .modal-footer button {
    display: none !important;
  }
  .modal-window {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .svg-canvas-wrapper {
    background: #fff !important;
    border: 1px solid #ccc !important;
  }
  .svg-bg {
    fill: #ffffff !important;
  }
  .svg-chassis {
    fill: #f1f5f9 !important;
    stroke: #334155 !important;
  }
}
