body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f0f0f;
  color: white;
}

.sidebar {
  position: fixed;
  width: 220px;
  height: 100%;
  background: #141414;
  padding: 20px;
}

.sidebar h2 {
  color: #00f2ff;
}

.sidebar a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  margin: 5px 0;
  border-radius: 5px;
  transition: 0.3s;
}

.sidebar a:hover {
  background: #00f2ff;
  color: black;
}

.main {
  margin-left: 240px;
  padding: 20px;
}

.banner {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 20px;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  background: #1c1c1c;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

button {
  background: #00f2ff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #00bcd4;
}

input,
select {
  padding: 8px;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
}

.car-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .main {
    margin-left: 0;
  }
}
.header-banner {
  width: 100%;
  overflow: hidden;
}

.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ===== CAR SHOWCASE ===== */

.car-showcase {
  background: linear-gradient(180deg, #1a1a1a, #111);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.15);
}

.car-showcase img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
}

.car-info h3 {
  margin-top: 10px;
  font-size: 22px;
  color: #00f2ff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.stats-grid div {
  background: #1f1f1f;
  padding: 10px;
  border-radius: 10px;
}

.stats-grid span {
  float: right;
  color: #00f2ff;
  font-weight: bold;
}
/* ===== HUD STYLE ===== */

.hud-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.hud-car {
  background: radial-gradient(circle at center, #1a1a1a, #0f0f0f);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 35px rgba(0, 242, 255, 0.2);
}

.hud-car img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
}

.hud-stats h3 {
  color: #00f2ff;
  margin-bottom: 20px;
}

.stat {
  margin-bottom: 15px;
}

.stat label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: #aaa;
}

.bar {
  width: 100%;
  height: 12px;
  background: #1f1f1f;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, #00f2ff, #00bcd4);
  transition: 0.5s;
}

.bar.fuel div {
  background: linear-gradient(90deg, #ff9800, #ff5722);
}

.bar.condition div {
  background: linear-gradient(90deg, #4caf50, #2e7d32);
}

.bar.tires div {
  background: linear-gradient(90deg, #9c27b0, #673ab7);
}

.stat span {
  font-size: 12px;
  float: right;
  color: #00f2ff;
}

@media (max-width: 900px) {
  .hud-container {
    grid-template-columns: 1fr;
  }
}
/* ===== RACE HUD ===== */

.race-hud {
  margin-top: 20px;
}

.race-track {
  position: relative;
  height: 120px;
  background: linear-gradient(90deg, #111, #222);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
}

.race-car {
  position: absolute;
  top: 40px;
  width: 60px;
  height: 30px;
  border-radius: 5px;
}

.player-car {
  background: #00f2ff;
  left: 10px;
}

.npc-car {
  background: #ff5722;
  left: 10px;
}

.race-track::after {
  content: "FINISH";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 12px;
  color: white;
}
/* ===== LIVE RACE ===== */

.race-track {
  position: relative;
  height: 120px;
  background: linear-gradient(90deg, #111, #222);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
}

.race-car {
  position: absolute;
  top: 45px;
  width: 50px;
  height: 25px;
  border-radius: 5px;
}

.player-car {
  background: #00f2ff;
}

.npc-car {
  background: #ff5722;
}

.race-track::after {
  content: "🏁";
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 20px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.dashboard-car img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.dashboard-ranking,
.dashboard-last,
.dashboard-info,
.dashboard-car {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 15px;
}
.driver-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: #1a1a1a;
  border-radius: 10px;
  margin: 5px 0 15px 0;
}

.skill-bar div {
  height: 100%;
  background: linear-gradient(90deg, #00f2ff, #00bcd4);
  border-radius: 10px;
}

.training-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .driver-grid {
    grid-template-columns: 1fr;
  }
}
.race-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.race-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid #333;
  color: #00e6e6;
}

.race-table td {
  padding: 10px;
  border-bottom: 1px solid #222;
}

.race-table tr:hover {
  background: #111;
}

.pos {
  font-weight: bold;
  color: #00e6e6;
}

.money {
  color: #2ecc71;
  font-weight: 600;
}

.xp {
  color: #f1c40f;
  font-weight: 600;
}

.btn {
  background: #00e6e6;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
