:root {
  --eft-bg: #060817;
  --eft-panel: #0b1028;
  --eft-panel-2: #101a3e;
  --eft-card: rgba(17, 27, 62, .92);
  --eft-border: rgba(91, 108, 255, .22);
  --eft-border-strong: rgba(91, 108, 255, .42);
  --eft-text: #f8fafc;
  --eft-muted: #8ea0c8;
  --eft-primary: #5b5cff;
  --eft-purple: #7c3aed;
  --eft-cyan: #22d3ee;
  --eft-red: #ef4444;
  --eft-green: #22c55e;
}

.easyfleet-tire-layout {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--eft-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 92, 255, .20), transparent 32%),
    radial-gradient(circle at 100% 20%, rgba(124, 58, 237, .18), transparent 34%),
    linear-gradient(180deg, rgba(16, 26, 62, .96), rgba(6, 8, 23, .98));
  color: var(--eft-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.easyfleet-tire-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 78%);
}

.eft-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(91, 108, 255, .16);
}

.eft-title-wrap {
  display: grid;
  gap: 4px;
}

.eft-kicker {
  color: var(--eft-primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eft-title-wrap strong {
  color: var(--eft-text);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.eft-title-wrap small {
  color: var(--eft-muted);
  font-size: .87rem;
}

.eft-main-plate {
  min-width: 116px;
  padding: 10px 14px;
  border: 1px solid rgba(34, 211, 238, .34);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(91, 92, 255, .14));
  color: #ffffff;
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  box-shadow: 0 0 22px rgba(34, 211, 238, .10);
}

.eft-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 16px;
}

.eft-stage {
  min-height: 560px;
  border: 1px solid var(--eft-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(91, 92, 255, .16), transparent 34%),
    linear-gradient(180deg, rgba(8, 13, 33, .72), rgba(9, 13, 31, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.eft-svg {
  display: block;
  width: 100%;
  height: auto;
}

.eft-stage-border {
  fill: rgba(255,255,255,.015);
  stroke: rgba(91, 108, 255, .14);
  stroke-width: 1.2;
}

.eft-body {
  stroke: rgba(129, 140, 248, .55);
  stroke-width: 1.8;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .35));
}

.eft-window {
  fill: rgba(34, 211, 238, .14);
  stroke: rgba(34, 211, 238, .38);
  stroke-width: 1.5;
}

.eft-center-line {
  stroke: rgba(148, 163, 184, .32);
  stroke-width: 10;
  stroke-linecap: round;
}

.eft-axle-line {
  stroke: rgba(148, 163, 184, .52);
  stroke-width: 8;
  stroke-linecap: round;
}

.eft-axle-hub {
  fill: #0f172a;
  stroke: rgba(226, 232, 240, .80);
  stroke-width: 5;
}

.eft-axle-label,
.eft-spare-title {
  fill: #cbd5e1;
  font-size: 14px;
  font-weight: 750;
}

.eft-spare-title {
  fill: #8ea0c8;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eft-plate-box {
  fill: rgba(255,255,255,.92);
  stroke: rgba(34, 211, 238, .72);
  stroke-width: 1.6;
  filter: drop-shadow(0 8px 16px rgba(34, 211, 238, .18));
}

.eft-plate-text {
  fill: #172554;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .05em;
}

.eft-tire {
  cursor: pointer;
  outline: none;
  transition: transform .16s ease, filter .16s ease;
}

.eft-tire:hover,
.eft-tire:focus-visible {
  filter: drop-shadow(0 0 18px rgba(91, 92, 255, .52));
}

.eft-tire:hover .eft-tire-shell,
.eft-tire:focus-visible .eft-tire-shell {
  stroke: rgba(255, 255, 255, .90);
}

.eft-tire-shell {
  fill: #050712;
  stroke: rgba(148, 163, 184, .28);
  stroke-width: 1.3;
}

.eft-tire-groove {
  stroke: rgba(226, 232, 240, .38);
  stroke-width: 2.1;
  stroke-linecap: round;
}

.eft-tire-dot {
  filter: drop-shadow(0 0 8px currentColor);
}

.eft-tire-label {
  fill: #f8fafc;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
}

.eft-side-panel {
  overflow: hidden;
  border: 1px solid var(--eft-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 27, 62, .92), rgba(9, 13, 31, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.eft-card-title {
  padding: 15px 16px 8px;
  color: #f8fafc;
  font-size: .9rem;
  font-weight: 850;
  letter-spacing: -.01em;
}

.eft-card-title--spaced {
  padding-top: 18px;
  border-top: 1px solid rgba(91, 108, 255, .14);
}

.eft-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 8px 12px;
  padding: 11px 12px;
  border: 1px solid rgba(91, 108, 255, .14);
  border-radius: 13px;
  background: rgba(6, 8, 23, .38);
}

.eft-metric span {
  color: var(--eft-muted);
  font-size: .78rem;
  font-weight: 700;
}

.eft-metric strong {
  color: #ffffff;
  font-size: .88rem;
  font-weight: 850;
  text-align: right;
}

.eft-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.eft-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(91, 108, 255, .14);
  border-radius: 999px;
  background: rgba(6, 8, 23, .36);
  color: #cbd5e1;
  font-size: .76rem;
  font-weight: 750;
}

.eft-legend i,
.eft-tire-row i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.eft-tire-mini-list {
  display: grid;
  gap: 7px;
  max-height: 265px;
  overflow: auto;
  padding: 0 12px 14px;
}

.eft-tire-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(91, 108, 255, .14);
  border-radius: 11px;
  background: rgba(6, 8, 23, .38);
  color: #f8fafc;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.eft-tire-row:hover {
  border-color: var(--eft-border-strong);
  background: rgba(91, 92, 255, .12);
}

.eft-tire-row span {
  overflow: hidden;
  font-size: .78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eft-tire-row small {
  color: var(--eft-muted);
  font-size: .72rem;
  font-weight: 700;
}

.eft-tooltip {
  position: absolute;
  z-index: 10;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 108, 255, .35);
  border-radius: 13px;
  background: rgba(7, 10, 25, .96);
  color: #f8fafc;
  box-shadow: 0 18px 38px rgba(0,0,0,.42);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.eft-tooltip strong,
.eft-tooltip span,
.eft-tooltip small {
  display: block;
}

.eft-tooltip strong {
  font-size: .88rem;
  font-weight: 900;
}

.eft-tooltip span {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 700;
}

.eft-tooltip small {
  margin-top: 3px;
  color: var(--eft-muted);
  font-size: .72rem;
}

.efd-page {
  min-height: 100vh;
  margin: 0;
  background: #070918;
  color: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.efd-app-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}

.efd-sidebar {
  border-right: 1px solid rgba(91, 108, 255, .13);
  background: #090c1f;
  padding: 20px 12px;
}

.efd-logo {
  margin-bottom: 34px;
  padding: 0 4px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.efd-logo span {
  color: #5b5cff;
}

.efd-nav {
  display: grid;
  gap: 8px;
}

.efd-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #8ea0c8;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.efd-nav a.active {
  border-color: rgba(91, 92, 255, .55);
  background: rgba(91, 92, 255, .10);
  color: #ffffff;
}

.efd-main {
  min-width: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(91, 92, 255, .18), transparent 32%),
    radial-gradient(circle at 84% 0%, rgba(124, 58, 237, .18), transparent 28%),
    #070918;
}

.efd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(91, 108, 255, .13);
}

.efd-company {
  padding: 9px 13px;
  border: 1px solid rgba(91, 108, 255, .18);
  border-radius: 10px;
  background: rgba(17, 27, 62, .85);
  color: #cbd5e1;
  font-size: .86rem;
  font-weight: 800;
}

.efd-user {
  color: #cbd5e1;
  font-size: .86rem;
  font-weight: 700;
}

.efd-content {
  padding: 26px;
}

.efd-page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.efd-page-title::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #5b5cff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(91, 92, 255, .7);
}

.efd-tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(91, 108, 255, .13);
}

.efd-tabs button {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8ea0c8;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
}

.efd-tabs button.active {
  border-color: #5b5cff;
  color: #7c7cff;
}

.efd-controls {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.efd-controls label {
  display: grid;
  gap: 6px;
  color: #8ea0c8;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.efd-controls select,
.efd-controls button {
  min-height: 44px;
  border: 1px solid rgba(91, 108, 255, .22);
  border-radius: 12px;
  background: rgba(17, 27, 62, .90);
  color: #f8fafc;
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.efd-controls button {
  background: linear-gradient(135deg, #5b5cff, #7c3aed);
  border-color: transparent;
  cursor: pointer;
}

.efd-event-log {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(91, 108, 255, .16);
  border-radius: 14px;
  background: rgba(17, 27, 62, .72);
  color: #cbd5e1;
  font-size: .88rem;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .eft-content {
    grid-template-columns: 1fr;
  }

  .eft-side-panel {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .efd-app-shell {
    grid-template-columns: 1fr;
  }

  .efd-sidebar {
    display: none;
  }

  .efd-content,
  .efd-topbar {
    padding: 16px;
  }

  .efd-controls {
    grid-template-columns: 1fr;
  }

  .eft-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
