/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #0b0f17;
  color: #ffffff;
}
/* BRAND WRAP ///////////////////////////////////////////////////*/
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-text {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* MOBILE BRAND SIZE */
@media (max-width: 600px) {
  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-text {
    font-size: 16px;
  }
}

/* ================= HEADER ================= */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 24px;
  background: #0f1624;
  border-bottom: 1px solid #1f2a3a;
  position: relative;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions input {
  font-size: 14px;
}
.search-box {
  background: #111827;
  border: 1px solid #1f2a3a;
  padding: 10px 12px;
  color: #fff;
  border-radius: 6px;
}

.search-icon {
  width: 38px;
  height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid #1f2a3a;
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-icon:hover {
  background: #0284c7;
  color: #fff;
  transform: scale(1.05);
}

/* ================= DASHBOARD ================= */
.dashboard {
  display: flex;
  min-height: calc(100vh - 120px);
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 220px;
  background: #0b1220;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid #031a3d;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
}

.side-item span {
  font-size: 18px;
}

.side-item.active,
.side-item:hover {
  background: #0284c7;
  color: #fff;
}

/* ================= MAIN CONTENT ================= */
.main-content {
  flex: 1;
  padding: 30px;
}

.page-title {
  margin-bottom: 20px;
  font-size: 24px;
}

/* ================= GRID ================= */
.content-grid {
  display: grid;
  grid-template-columns: 3fr 1.2fr;
  gap: 30px;
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: #0b1220;
  border-radius: 18px;
  border: 1px solid #1f2a3a;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card h4 {
  padding: 10px 14px 0;
  font-size: 15px;
}

.card .tag {
  padding: 0 14px;
  font-size: 12px;
  color: #94a3b8;
}

.card a {
  margin: 12px 14px 16px;
  display: block;
  padding: 8px;
  text-align: center;
  background: #0284c7;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
}

/* ================= QR BOX ================= */
.qr-box {
  background: #0b1220;
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  border: 1px solid #1f2a3a;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}

.qr-box img {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  border: 4px solid #0284c7;
}

.qr-box p {
  margin-top: 12px;
  font-weight: 600;
  color: #38bdf8;
}

/* ================= BOTTOM NAV ================= */
/* .bottom-nav {
  display: none;
} */
/* ================= TABLET ================= */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .qr-box {
    order: -1;
    margin-bottom: 16px;
  }
}

/* ================= MOBILE (ALWAYS 2 CARDS) ================= */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* ✅ FORCE 2 CARDS */
    gap: 12px;
  }

  .card {
    padding: 10px;
  }

  .card img {
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
  }

  .card h4 {
    font-size: 13px;
    line-height: 1.25;
    margin-top: 6px;
  }

  .card .tag {
    font-size: 11px;
  }

  .card a {
    font-size: 12px;
    padding: 7px 8px;
    border-radius: 8px;
  }
}

/* ================= MOBILE (FINAL & SINGLE RULE) ================= */
@media (max-width: 600px) {
  /* HEADER */
  .main-header {
    padding: 12px 16px;
  }

  .brand {
    font-size: 16px;
  }

  .search-icon {
    display: inline-flex !important;
  }

  .search-box {
    display: none;
    position: absolute;
    top: 58px;
    right: 16px;
    width: calc(100% - 32px);
    background: #0f172a;
    z-index: 9999;
  }

  /* ================= SIDEBAR ICON MODE ================= */

  .sidebar {
    width: 76px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: #0b1220;
    border-right: 1px solid #1f2a3a;
  }

  /* ITEM */
  .side-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.25s ease;
  }

  /* ICON CIRCLE */
  .side-item .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #1f2a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.25s ease;
  }

  /* LABEL */
  .side-item span {
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
  }

  /* HOVER */
  .side-item:hover .icon-circle {
    background: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    color: #fff;
  }

  .side-item:hover span {
    color: #38bdf8;
  }

  /* ACTIVE */
  .side-item.active .icon-circle {
    background: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
    color: #fff;
  }

  .side-item.active span {
    color: #ebf2f5;
  }

  /* ================= TABLET ================= */
  @media (max-width: 900px) {
    .content-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
    .qr-box {
      order: -1;
      margin-bottom: 16px;
    }
  }
  /* ================= MOBILE (ALWAYS 2 CARDS) ================= */
  @media (max-width: 600px) {
    .cards {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr)); /* ✅ FIXED */
      gap: 12px;
    }

    .card {
      padding: 10px;
    }

    .card img {
      height: 110px;
      object-fit: cover;
      border-radius: 8px;
    }

    .card h4 {
      font-size: 13px;
      line-height: 1.25;
      margin-top: 6px;
    }

    .card .tag {
      font-size: 11px;
    }

    .card a {
      font-size: 12px;
      padding: 7px 8px;
      border-radius: 8px;
    }
  }

  /* MOBILE FINE TUNE */
  @media (max-width: 600px) {
    .sidebar {
      width: 72px;
    }

    .side-item .icon-circle {
      width: 42px;
      height: 42px;
      font-size: 17px;
    }

    .side-item span {
      font-size: 10px;
      color: white;
    }
  }

  /* MAIN CONTENT */
  .main-content {
    padding: 16px;
    padding-bottom: 90px;
  }

  .page-title {
    font-size: 18px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* QR */
  .qr-box img {
    max-width: 180px;
  }

  /* BOTTOM NAV */
  /* .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #0f172a;
    border-top: 1px solid #1f2a3a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
  }

  .bottom-nav div {
    font-size: 22px;
    color: #94a3b8;
  }

  .bottom-nav div:hover {
    color: #38bdf8;
  } */
}
/* ////////////////////////////////////////////////////////////// */
/* ================= FOOTER ================= */
.main-footer {
  width: 100%;
  background: linear-gradient(180deg, #0f1624, #0b1220);
  border-top: 1px solid #1f2a3a;
  text-align: center;
  color: white;
  letter-spacing: 0.3px;
  font-size: 15px;
  padding: 16px 20px;
}

/* Highlight brand text */
.main-footer span {
  color: #38bdf8;
  font-weight: 600;
}

/* ================= MOBILE FIX (EKDUM BOTTOM) ================= */
@media (max-width: 600px) {
  .main-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0; /* 🔥 EXACT bottom */
    z-index: 100;
    font-size: 14px;
    padding: 12px 16px 20px; /* 🔥 bottom-nav space */
    color: white;
  }

  /* Content hide na ho */
  .main-content {
    padding-bottom: 15px;
  }
}
