@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

:root {
  --radius: 14px;
  --white: #ffffff;
  --cyan: #00bfff;
  --black: #000;
  --slate: #555;
  /* teks default */
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  position: relative;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.profile {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2.5px solid #fff;
}

.header {
  padding: 15px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
  background: var(--cyan);
  color: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-content {
  position: relative;
  /* penting untuk absolute child */
  display: flex;
  flex-direction: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Foto profil tetap di tengah header */
.header-content .profile {
  position: absolute;
  right: 5%;
  transform: translateY(-15%);
}

.header-content .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  text-align: center;
}

.nav-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  text-align: center;
}

.nav-wrapper::-webkit-scrollbar {
  display: none;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  white-space: nowrap;
}

.navbar ul li {
  margin: 10px 15px;
}

.navbar a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  transition: opacity 0.3s ease;
}

/* Garis muncul saat hover */
.navbar a:hover::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  margin: 5px auto 0;
  border-radius: 5px;
}

/* Garis muncul saat link aktif */
.navbar a.active::after {
  content: '';
  display: block;
  width: 80%;
  height: 2px;
  background: var(--black);
  margin: 5px auto 0;
  border-radius: 5px;
}

@media (min-width: 769px) {
  .nav-wrapper {
    overflow-x: visible;
  }
}

.main-content {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.2rem;
  color: var(--cyan);
  margin-bottom: 2rem;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--black);
  margin: 8px auto 0;
  border-radius: 5px;
}

.card {
  background: var(--white);
  border: 1px solid var(--cyan);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}

.card-login {
  background: var(--white);
  border: 1px solid var(--cyan);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--white);
  border: none;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #009acd;
}

.btn:disabled {
  display: none;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hero {
  text-align: center;
  padding: 6rem 0;
}

.subtitle {
  text-align: center;
  display: block;
  width: 100%;
  font-size: 1.5rem;
  color: var(--cyan);
  margin: 1rem 0 2rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: bold;
}

main {
  flex: 1;
  /* konten utama mengisi ruang kosong */
}

.footer {
  text-align: center;
  padding: 1rem;
  background: var(--cyan);
  color: #fff;
  font-size: 14.5px;
}

.footer p {
  color: var(--white);
  margin: 10px auto;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.product-card h3 {
  color: var(--cyan);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.product-card .price {
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-card .desc {
  white-space: pre-line;
  color: var(--slate);
  font-weight: bold;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.product-image-container img {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.7);
}

.product-info h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.product-info .price {
  color: var(--cyan);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-info .description {
  line-height: 1.7;
}

.testimonial-card {
  border-left: 4px solid var(--cyan);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--slate);
}

.testimonial-card .author {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--white);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
}

.hamburger-menu {
  display: none;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 60px;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  min-width: 160px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  border-radius: 5px;
  padding: 10px 0;
}

.dropdown-content a {
  color: var(--cyan);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.2s, color 0.2s;
}

.show {
  display: block;
}

.toast-notification {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--cyan);
  color: var(--white);
  text-align: center;
  border-radius: 5px;
  border: 1px solid var(--white);
  padding: 16px;
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s, visibility 0.5s;
}

.toast-notification.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.auth-container {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--cyan);
  border-radius: 5px;
  color: var(--black);
  box-sizing: border-box;
}

.error-message {
  color: var(--cyan);
  margin-bottom: 1rem;
  display: none;
}

.auth-link {
  margin-top: 1rem;
}

.auth-link a {
  color: var(--cyan);
  text-decoration: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 40px;
  width: 80%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--cyan);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
  width: 90%;
  max-width: 450px;
  text-align: center;
}

.modal-box h3 {
  color: var(--cyan);
  margin-top: 0;
  font-size: 1.5rem;
}

.modal-box p {
  color: var(--slate);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-buttons .btn {
  margin-top: 0;
}

.modal-buttons .btn-danger {
  background-color: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
  transition: background-color 0.3s ease;
}

.modal-buttons .btn-danger:hover {
  background-color: #009acd;
}

pre {
  background: var(--white);
  color: var(--black);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  flex: 1;
}

.wrap {
  max-width: 900px;
  margin: auto;
}

.card {
  background: rgba(255, 255, 255, .04);
  padding: 18px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.title {
  font-size: 16px;
  font-weight: 600;
}

.get-btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.get-btn:hover {
  background-color: #009acd;
}

.codeblock {
  margin: 16px 0px;
  margin-top: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--cyan);
  background: var(--cyan);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.codeblock.active {
  opacity: 1;
  max-height: 100%;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
}

.lang {
  font-size: 12px;
  color: var(--black);
  font-weight: bold;
}

.copy-btn {
  display: inline-block;
  background: var(--white);
  color: var(--cyan);
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background: #fff;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  background-color: #fff !important;
}

button,
a,
img,
div {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

input:focus {
  outline-color: #00BFFF;
}

textarea {
  height: 250px;
  font-family: "Courier New", Courier, monospace;
  resize: vertical;
}

.cusli {
  background: var(--white);
  border: 1px solid var(--cyan);
  padding: 6px 12px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--slate);
}

.card-title {
  font-size: 0.9rem;
  color: var(--black);
  margin: 0 0 8px 0;
  align-items: center;
  font-weight: 500;
}

.card-title span {
  margin-right: 8px;
  font-size: 1.1rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--cyan);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}

.info-card h3 {
  color: var(--black);
  font-size: 1.2rem;
  margin: 0.5rem 0;
  font-weight: bold;
}

.status-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#toast-notification {
  visibility: hidden;
  min-width: 200px;
  max-width: 320px;
  background: var(--cyan);
  color: var(--white);
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  font-size: 15px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s ease, bottom 0.4s ease;
}

#toast-notification.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

.comment-body {
  max-height: 100px;
  /* tinggi awal */
  overflow: hidden;
  position: relative;
  word-wrap: break-word;
  /* biar kata panjang pecah */
  overflow-wrap: break-word;
  /* standar modern */
  white-space: pre-wrap;
  /* enter & spasi tetap */
}

.comment-body.expanded {
  max-height: none;
  /* tampil full */
}

.read-more {
  color: var(--cyan);
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  margin-top: 5px;
}

.touch-effect {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  animation: touchAnim 0.5s ease-out forwards;
}

@keyframes touchAnim {
  from {
    transform: scale(0.3);
    opacity: 0.9;
  }

  to {
    transform: scale(1.3);
    opacity: 0;
  }
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  width: 95%;
  margin: 8px auto;
  color: #fff;
  font-weight: bold;
  /* bikin teks tebal */
  font-size: 1rem;
  /* boleh atur sesuai selera */
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 3px;
  /* tebal garis */
  background: linear-gradient(to right, transparent, #fff, #fff);
  /* kiri memudar */
}

.divider::after {
  background: linear-gradient(to left, transparent, #fff, #fff);
  /* kanan memudar */
}

.divider:not(:empty)::before {
  margin-right: 1em;
}

.divider:not(:empty)::after {
  margin-left: 1em;
}

.views {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0.5rem;
}

.search-wrapper {
  text-align: center;
  margin: 10px 0;
}

#searchInput {
  width: 65%;
  max-width: 300px;
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  outline: none;
}

#searchBtn {
  padding: 8px 14px;
  margin-left: 5px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  background-color: var(--cyan);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#searchBtn:hover {
  background-color: #009acd;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
  /* ruang untuk icon */
  box-sizing: border-box;
  font-size: 0.8rem;
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-100%);
  cursor: pointer;
  color: var(--cyan);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}