/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: #010a17;
  color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #021225;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar ul {
  list-style: none;
  margin-top: 20px;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.sidebar ul li:hover,
.sidebar ul li.active {
  background: #00ff8f;
  color: #000;
}

.sidebar .logo {
  font-size: 22px;
  font-weight: bold;
  color: #00ff8f;
}

.sidebar .logo span {
  color: #fff;
}

.close-btn {
  font-size: 22px;
  cursor: pointer;
  display: none;
  color: #fff;
  float: right;
  padding: 10px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 60px;
  background: #021225;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 999;
}

.header .left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .left i {
  cursor: pointer;
  font-size: 20px;
}

.header img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* ===== MAIN CONTENT ===== */
.content {
  margin-left: 240px;
  padding: 90px 20px 80px;
  transition: margin-left 0.3s;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  background: #021225;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
}

.card h3 {
  color: #00ff8f;
  margin-bottom: 8px;
}

/* ===== CHART BOX ===== */
.chart-box {
  margin-top: 30px;
  background: #021225;
  padding: 20px;
  border-radius: 16px;
}

/* ===== TABLE BOX ===== */
.table-box {
  margin-top: 30px;
  background: #021225;
  padding: 20px;
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: center;
}

.live {
  color: #00ff8f;
}

.ended {
  color: #ff4d4d;
}

/* ===== FOOTER ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
  height: 50px;
  background: #021225;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0.8;
}

/* ===== LIGHT MODE ===== */
body.light {
  background: #f5f5f5;
  color: #000;
}

body.light .sidebar,
body.light .header,
body.light .footer,
body.light .card,
body.light .chart-box,
body.light .table-box {
  background: #fff;
  color: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }

  .header {
    left: 0;
  }

  .content {
    margin-left: 0;
  }

  .footer {
    left: 0;
  }

  .close-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .header h2 {
    font-size: 16px;
  }

  .header img {
    width: 32px;
    height: 32px;
  }

  .icon-btn {
    font-size: 16px;
  }
}

