/* Teljes képernyős alapbeállítások */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Nunito, sans-serif;
}

/* Yamaha Színpaletta Osztályok */
.text-yamaha {
  color: #0046AD !important;
}

.text-yamaha-light {
    color: #70B4FF !important;
}

.bg-yamaha {
  background-color: #0046AD !important;
}

.btn-yamaha {
  background-color: #0046AD !important;
  color: #ffffff !important;
  border: 1px solid #0046AD !important;
  transition: all 0.2s ease;
}

.btn-yamaha:hover {
  background-color: #003685 !important;
  color: #ffffff !important;
}

.progress-bar-yamaha {
  background-color: #0046AD !important;
}

.btn-outline-yamaha {
  background-color: transparent !important;
  color: #0046AD !important;
  border: 1px solid #0046AD !important;
  transition: all 0.2s ease;
}

.btn-outline-yamaha:hover {
  background-color: #0046AD !important;
  color: #ffffff !important;
}

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

iframe {
  border: 0;
  height: 100%;
}

/* 2. Felső Sáv (Azonos sötét stílus) */
.floating-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

/* 3. Főmenü kártyák helye */
.floating-panel {
  position: fixed;
  bottom: 85px;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

/* Egy-egy lebegő kártya: Áttetsző Glassmorphism dizájn */
.app-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

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

.custom-rounded-card {
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* 4. Alsó Navigációs Sáv (Azonos sötét stílus) */
.floating-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

/* Középső Start Gomb: Azonos méret, nem emelkedik ki, letisztult kerettel */
.nav-start-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  border: 1.5px solid rgba(255, 255, 255, .5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-start-btn i {
  font-size: 18px;
  margin-left: 2px;
}

.nav-start-btn:hover {
  background: rgba(0, 70, 173, 0.15);
  color: #E0F2FE;
  border-color: #E0F2FE;
}

/* Semleges státusz-chip sötét fejlécen */
.badge-neutral-dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Avatar körök */
.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;
}

.avatar-circle-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
}

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

/* Dőlésszög lefutás oszlopdiagram */
.lean-angle-bars {
  display: flex;
  align-items: flex-end;
  height: 46px;
  gap: 4px;
}

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

/* G-erő hőtérkép sáv */
.g-force-heatmap {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #E0F2FE, #0046AD, #111827);
}

/* Jelvények */
.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: #E0F2FE;
  color: #0046AD;
  font-size: 20px;
}

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

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

/* ----- LOGIN ----- */

/* Login oldal egyedi pozicionálása */
.login-panel-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 0 1.25rem;
}

.login-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Lekerekített beviteli mezők a Tesla/Minimal UX-hez */
.custom-input {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.input-group-text {
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}

/* Tab gombok letisztult stílusa */
.login-tabs {
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 30px;
}

.login-tabs .nav-link {
  color: #6c757d;
  border-radius: 26px !important;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.login-tabs .nav-link.active {
  background-color: #343a40 !important;
  color: #ffffff !important;
}