/* ============================= */
/* RESET & GLOBAL */
/* ============================= */
/* ===== STICKY FOOTER SYSTEM ===== */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Wrapper utama konten */
.main-wrapper {
  flex: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary: #4facfe;
  --secondary: #c471ed;
  --bg: #1e2248;
  --card: #2a2f63;
  --text: #ffffff;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: var(--card);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-left ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-left ul li {
  cursor: pointer;
}

.nav-center input {
  width: 400px;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
}

.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ============================= */
/* CART */
/* ============================= */

.cart-wrapper {
  display: flex;
  align-items: center;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.cart-link svg {
  width: 26px;
  height: 26px;
}

.cart-sup {
  position: absolute;
  top: 3px;
  right: -1px;
  font-size: 11px;
  font-weight: 600;
  color: #ff3b3b;
}
.cart-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.notification-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.notification-trigger:hover {
  transform: scale(1.08);
}

.notification-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.notification-sup {
  position: absolute;
  top: 3px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  right: -88px;
  top: 48px;
  width: min(430px, calc(100vw - 24px));
  max-height: 560px;
  overflow: hidden;
  z-index: 4000;
  border: 1px solid rgba(125, 137, 255, 0.26);
  border-radius: 14px;
  background: #151936;
  color: #fff;
  box-shadow: 0 26px 72px rgba(4, 6, 22, 0.56);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  background: #1e2451;
}

.notification-panel-head strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.notification-panel-head span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.notification-mark-all {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(91, 108, 255, 0.2);
  color: #fff;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.notification-mark-all:hover {
  background: rgba(91, 108, 255, 0.34);
}

.notification-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: #1e2451;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-tabs button {
  min-width: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  padding: 10px 6px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.notification-tabs button.is-active {
  border-bottom-color: #5b6cff;
  color: #ffffff;
}

.notification-list {
  max-height: 455px;
  overflow-y: auto;
  padding: 8px;
  background: #10142f;
}

.notification-item {
  position: relative;
  padding: 12px 12px 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.notification-item + .notification-item {
  margin-top: 8px;
}

.notification-item:hover {
  border-color: rgba(125, 137, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.notification-item.is-unread {
  border-color: rgba(91, 108, 255, 0.28);
  background: rgba(91, 108, 255, 0.13);
}

.notification-item.is-unread::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff4757;
}

.notification-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notification-item-top strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.notification-item-top span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  line-height: 1.4;
}

.notification-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-top: 7px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}

.notification-chip-payment {
  background: rgba(255, 76, 96, 0.16);
  color: #ff9ca7;
}

.notification-chip-access {
  background: rgba(87, 214, 141, 0.14);
  color: #91f4b7;
}

.notification-chip-account,
.notification-chip-support,
.notification-chip-voucher {
  background: rgba(91, 108, 255, 0.16);
  color: #aeb9ff;
}

.notification-item p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.notification-action {
  display: inline-flex;
  margin-top: 8px;
  color: #8ea2ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.notification-empty {
  padding: 26px 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  text-align: center;
}
/* ============================= */
/* PROFILE DROPDOWN */
/* ============================= */

.profile-dropdown {
  position: relative;
}

.profile-trigger {
  cursor: pointer;
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: 50px;
  width: 220px;
  background: white;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  display: none;
  z-index: 999;
}

.profile-menu a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.profile-menu a:hover {
  background: #f2f2f2;
}

.profile-menu hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 8px 0;
}

/* ============================= */
/* MOBILE SIDEBAR */
/* ============================= */

.hamburger {
  font-size: 24px;
  cursor: pointer;
  display: none;
  margin-right: 15px;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: var(--card);
  z-index: 2000;
  padding: 20px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.side-content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.side-content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.side-card {
  background: #3a3f80;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.side-user {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kelas-mobile,
.logout-mobile {
  display: block;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
}

.kelas-mobile {
  background: #3a3f80;
  color: white;
}

.logout-mobile {
  background: #f5f5f5;
  color: #e74c3c;
}

/* ============================= */
/* OVERLAY */
/* ============================= */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 1500;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  margin-top: auto;
  padding: 24px 24px 26px;
  background: linear-gradient(180deg, #2a2f63 0%, #222754 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(100%, 1300px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.footer-public-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-public-links span {
  display: none;
}

.footer-public-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.footer-public-links a:hover {
  border-color: rgba(95, 129, 255, 0.72);
  background: rgba(95, 129, 255, 0.18);
  color: #ffffff;
}

@media (max-width: 640px) {
  .footer {
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-copy {
    max-width: 270px;
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-public-links {
    gap: 6px;
    max-width: 320px;
  }

  .footer-public-links a {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1280px) {
  .desktop-menu,
  .desktop-only {
    display: none !important;
  }

  .hamburger {
    display: block;
  }

  .nav-center {
    flex: 1;
    margin-left: 10px;
  }

  .nav-center input {
    width: 100%;
  }
}

/* =========================
   NAVBAR HOVER EFFECT
========================= */

/* MENU TEXT */
.menu li {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu li:hover {
  color: #4facfe;
}

/* underline animasi */
.menu li::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #4facfe;
  transition: 0.3s;
}

.menu li:hover::after {
  width: 100%;
}

/* LOGO */
.logo-trigger {
  transition: all 0.3s ease;
}

.logo-trigger:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* SEARCH BOX */
.search div {
  transition: all 0.3s ease;
}

.search div:hover {
  box-shadow: 0 5px 20px rgba(79, 172, 254, 0.3);
  transform: translateY(-1px);
}

/* CART ICON */
.cart-link {
  position: relative;
  display: inline-block;
  transition: 0.3s;
}

.cart-link:hover {
  transform: scale(1.1);
}

.cart-link:hover .cart-icon {
  filter: brightness(1.2);
}

/* KELAS ICON */
.kelas-link {
  transition: 0.3s;
}

.kelas-link:hover {
  transform: scale(1.1);
}

/* PROFILE */
.profile-trigger {
  cursor: pointer;
  transition: 0.3s;
}

.profile-trigger:hover {
  transform: scale(1.08);
}

/* DROPDOWN PROFILE ITEM */
.profile-menu a {
  display: block;
  padding: 10px 15px;
  transition: 0.2s;
}

.profile-menu a:hover {
  background: #f5f7ff;
  color: #4facfe;
}

/* SEARCH DROPDOWN ITEM (biar konsisten sama JS lo) */
#searchDropdown div {
  transition: 0.2s;
}

#searchDropdown div:hover {
  background: #f1f1f1;
  padding-left: 18px;
}

/* SIDEBAR ITEM (optional biar konsisten) */
.side-content a {
  transition: 0.2s;
}

.side-content a:hover {
  color: #4facfe;
  transform: translateX(3px);
}
