/* Teljes képernyős alapbeállítások */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden; /* A térkép alatt ne legyen görgetősáv */
  font-family: Nunito, sans-serif;
}

/* 1. Háttér Térkép */
#map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Legalsó réteg */
}

/* 2. Felső Sáv */
.floating-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10; /* A térkép felett */
  max-width: 800px;
  margin: 0 auto; /* Középre igazítás mobilon/desktopon */
}

/* 3. Főmenü kártyák helye: a panelek ebben csúsznak fel/le */
.floating-panel {
  position: fixed;
  bottom: 90px; /* Az alsó menüsáv felett legyen */
  left: 0;
  right: 0;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

/* Egy-egy főmenü kártya: alulról felúszik, X-re vagy térkép-érintésre lecsúszik */
.app-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-height: calc(100vh - 220px); /* Görgethető legyen a fix pozíciós sávon belül */
  overflow-y: auto;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; /* Zárt állapotban ne fogja el a kattintást a térképtől */
}

.app-panel.panel-open {
  transform: translateY(0);
  pointer-events: auto;
}

/* Külön lekerekítés a panel kártyának */
.custom-rounded-card {
  border-radius: 24px !important; /* Nagyobb, divatos lekerekítés */
  background: rgba(255, 255, 255, 0.7); /* Letisztult, félig áttetsző kártya a térkép felett */
  backdrop-filter: blur(8px);
}

/* 4. Alsó Navigációs Sáv */
.floating-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

/* Kerek START gomb beállítása */
.btn-circle.btn-lg {
  width: 55px;
  height: 55px;
  padding: 10px 16px;
  border-radius: 35px;
  font-size: 18px;
  line-height: 1.33;
  margin-top: -15px; /* Kicsit kiemelkedik az alsó sávból */
  border: 3px solid #343a40;
}

/* Semleges státusz-chip sötét háttéren (pl. fejléc) */
.badge-neutral-dark {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Semleges státusz-chip világos kártyákon */
.badge-neutral {
  background-color: rgba(0, 0, 0, 0.06);
  color: #495057;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Barát-avatarok monogrammal az Élő állapot kártyán */
.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  display: inline-block;
  margin-left: 8px;
}

/* Dőlésszög lefutás mockup oszlopdiagram (Túráim) */
.lean-angle-bars {
  display: flex;
  align-items: flex-end;
  height: 50px;
  gap: 4px;
}

.lean-angle-bars .bar {
  flex: 1;
  background: #adb5bd;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

/* G-erő hőtérkép mockup sáv (Túráim) */
.g-force-heatmap {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e9ecef, #adb5bd, #495057);
}

/* Smart Maintenance progress sávok (Garázs) */
.progress-bar-neutral {
  background-color: #343a40;
}

/* Jelvények (Profil) */
.achievement-badge {
  text-align: center;
  width: 64px;
}

.achievement-badge i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffc107;
  color: #212529;
  font-size: 18px;
}

.achievement-badge.locked i {
  background: #e9ecef;
  color: #adb5bd;
}

.achievement-badge small {
  font-size: 10px;
}
