@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --atlas-ink: #08162a;
  --atlas-surface: #12263d;
  --atlas-gold: #f5bf44;
  --atlas-line: #2b425c;
  --atlas-muted: #a4b8ca;
  --atlas-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --atlas-body: "Instrument Sans", system-ui, sans-serif;
  --bg-main: var(--atlas-ink);
  --bg-deep: #060f1e;
  --bg-panel: #101f34;
  --bg-panel-2: var(--atlas-surface);
  --border: var(--atlas-line);
  --yellow: var(--atlas-gold);
  --yellow-2: #d59a34;
  --muted: var(--atlas-muted);
}
body.atlas-shell, body.atlas-login {
  color: #f5f8fc;
  font-family: var(--atlas-body);
  background-color: var(--atlas-ink);
  background-image: linear-gradient(145deg,#14294066,transparent 52%),
    repeating-linear-gradient(0deg,transparent 0 39px,#92b4d308 39px 40px),
    repeating-linear-gradient(90deg,transparent 0 39px,#92b4d308 39px 40px);
}
.atlas-shell .sidebar {
  background: linear-gradient(165deg,#10243b,#071323 48%);
  border-color: var(--atlas-line);
  box-shadow: none;
}
.atlas-shell .brand {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0 13px;
  align-items: center;
  padding: 22px 18px;
  text-align: left;
}
.atlas-shell .brand-logo {
  grid-row: span 2;
  width: 50px;
  height: 50px;
  margin: 0;
  border: 1px solid #f5bf4480;
  border-radius: 14px 14px 14px 4px;
  box-shadow: none;
}
.atlas-shell .brand h2 {
  margin: 0;
  font: 700 31px/1 var(--atlas-display);
  letter-spacing: .18em;
  color: var(--atlas-gold);
}
.atlas-shell .brand span { color: var(--atlas-muted); font-size: 11px; letter-spacing: .12em; }
.atlas-shell .menu a { border-radius: 9px; font-size: 14px; font-weight: 600; }
.atlas-shell .menu a.active {
  color: #ffda80;
  background: #f5bf4419;
  box-shadow: inset 0 0 0 1px #f5bf443d;
}
.atlas-shell .menu a.active::before { background: var(--atlas-gold); }
.atlas-shell :is(button,a,input,select,textarea):focus-visible,
.atlas-login :is(button,a,input):focus-visible { outline: 2px solid #ffdc85; outline-offset: 3px; }
.atlas-shell .stats-bar {
  min-height: 0;
  border: 1px solid var(--atlas-line);
  border-top: 2px solid var(--atlas-gold);
  border-radius: 10px 10px 22px 10px;
  background: linear-gradient(115deg,#172c46,#101f33 70%);
  box-shadow: 0 14px 35px #01071060;
}
.atlas-shell :is(.stat-item,.stat-date) { gap: 10px; padding: 14px clamp(10px,1.4vw,24px); }
.atlas-shell .stat-item .stat-icon {
  width: 42px; height: 42px; min-width: 42px;
  border: 1px solid #6886a658; border-radius: 9px;
  background: #233b55; box-shadow: none; font-size: 20px;
}
.atlas-shell .stat-item h2 { font: 700 clamp(26px,3vw,44px)/.88 var(--atlas-display); margin: 0 0 4px; }
.atlas-shell .stat-item strong { font-size: 13px; }
.atlas-shell .stat-item span, .atlas-shell .stat-date { font-size: 11px; color: #b6c8da; }
.atlas-shell .stat-date { font-variant-numeric: tabular-nums; }
.atlas-map-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 18px; }
.atlas-map-heading h1 { font: 700 clamp(32px,4vw,54px)/.93 var(--atlas-display); letter-spacing: .01em; }
.atlas-map-heading p { color: var(--atlas-muted); font-size: 13px; }
.atlas-shell .dashboard-map-panel { border: 1px solid #496480; border-radius: 11px 27px 11px 11px; }
.atlas-shell .map-tools { gap: 8px; }
.atlas-shell :is(.search-map,.btn-map) { border: 1px solid #536d88; background: #09172aee; }
.atlas-shell .leaflet-tile { filter: invert(.92) hue-rotate(171deg) saturate(.76) brightness(.84) contrast(.96); }
.atlas-shell :is(.drivers-panel,.map-status,.map-bottom-menu) { border-color: #4a627c; background: #0c1b2eea; }
.atlas-shell .drivers-title strong { color: #ffda80; }

.atlas-login { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: clamp(16px,5vw,64px); }
.atlas-login * { box-sizing: border-box; }
.atlas-entry {
  width: min(1080px,100%);
  display: grid; grid-template-columns: 1.25fr 1fr;
  overflow: hidden; border: 1px solid var(--atlas-line);
  border-radius: 18px 40px 18px 18px;
  box-shadow: 0 30px 90px #0007;
}
.atlas-entry-identity {
  position: relative; isolation: isolate; min-height: 550px;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-start; padding: clamp(24px,5vw,55px);
  background:
    radial-gradient(ellipse at 60% 36%,#3c6786 0,transparent 47%),
    repeating-radial-gradient(ellipse at 80% 12%,transparent 0 21px,#91c4e328 22px 23px,transparent 24px 36px),
    linear-gradient(130deg,#112840,#0c1a2c 83%);
  border-right: 1px solid var(--atlas-line);
}
.atlas-entry-identity img { width: 64px; height: 64px; object-fit: cover; border: 1px solid #f5bf4490; border-radius: 14px 14px 14px 4px; }
.atlas-entry-identity strong { display:block; color:var(--atlas-gold); font:700 clamp(72px,11vw,150px)/.8 var(--atlas-display); letter-spacing:.06em; }
.atlas-entry-identity p { margin: 18px 0 0; color: #c0d3e3; font-size: 15px; letter-spacing:.08em; }
.atlas-login .box { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px,4vw,54px); background: #0e1e32; }
.atlas-login h1 { margin: 0 0 28px; font: 700 44px/1 var(--atlas-display); }
.atlas-login .field { margin-bottom: 16px; }
.atlas-login label { display:block; margin-bottom: 8px; font-weight:600; }
.atlas-login input { width:100%; padding:13px; border-radius:8px; border:1px solid #49627d; background:#09182b; color:#f5f8fc; font:inherit; }
.atlas-login .btn { width:100%; margin-top:6px; padding:13px; border:0; border-radius:8px; color:#101827; background:var(--atlas-gold); font:700 15px var(--atlas-body); cursor:pointer; }
.atlas-login .btn:hover { background:#ffd67b; }
.atlas-login .error { background:#542635; color:#ffdae2; padding:11px; border-radius:8px; margin-bottom:14px; }
.atlas-login .setup { margin-top:16px; }
.atlas-login .setup a { color:#ffd67b; }
@media (max-width: 1100px) { .atlas-shell .stat-item .stat-icon { display:none; } }
@media (max-width: 760px) {
  .atlas-entry { grid-template-columns: 1fr; }
  .atlas-entry-identity { min-height: 205px; gap: 26px; border-right:0; border-bottom:1px solid var(--atlas-line); }
  .atlas-entry-identity img { width: 44px; height:44px; }
  .atlas-entry-identity strong { font-size: 66px; }
  .atlas-login h1 { margin-bottom:20px; font-size:35px; }
}
