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

body {
  /* background-color: #2b2b35; */
  background-color: #1c1f2b;
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-y: auto;
  padding: 40px 0;
}

.memoalloc-card {
  color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  width: 70%;
}

.memoalloc-card h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
}

.partition-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 1rem;
}

.form-control {
  background-color: #2c2c36;
  color: white;
  border: 1px solid #444;
}

.form-select,
.form-control {
  background-color: #3b3b47;
  color: #fff;
  border: none;
}

.form-select:focus,
.form-control:focus {
  background-color: #3b3b47;
  color: #fff;
  box-shadow: none;
}

.form-control::placeholder {
  color: #ccc;
  opacity: 1;
}

.btn-pink {
  /* background-color: #52616B; */
  background: #7c5cff;
  color: #ffffff;
  font-weight: 600;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
}

.btn-pink:hover,
.btn-add:hover {
  /* background-color: #F0F5F9;
  color: #2b2b35; */
  background: #9a7fff;
  box-shadow: 0 10px 25px rgba(124, 92, 255, 0.3);
}

.circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.btn-add {
  /* background-color: #52616B; */
  background: #7c5cff;
  margin-right: 0.5rem;
}

.btn-remove,
.btn-danger.rounded-circle {
  background-color: #ff5c5c !important;
  /* merah */
  width: 48px !important;
  height: 48px !important;
  font-size: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  border: none !important;
  transition: 0.3s ease;
}

.btn-remove:hover,
.btn-danger.rounded-circle:hover {
  background-color: #e14a4a !important;
}

.text-muted {
  color: white !important;
  opacity: 70%;
}

.table {
  background-color: transparent !important;
  color: #fff !important;
  border-color: white;
}

.table th,
.table td {
  background-color: transparent !important;
  /* border: none !important; */
  color: #fff !important;
}

#resultExplanation {
  color: #fff;
}

/* #resultTable td, #resultTable th {
  border: 1px solid #666 !important;
  text-align: center;
  vertical-align: middle;
}

#resultTable i {
  color: #bbb;
  font-size: 0.9em;
} */

.result-card {
  color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  width: 70%;
}

.result-card h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
}

td input.form-control-sm {
  background-color: #3b3b47 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  border-radius: 4px;
  height: 28px;
  padding: 2px 6px;
}

td input.form-control-sm:focus {
  outline: none !important;
  box-shadow: 0 0 4px #aaa;
}


/* Profil */

.about-section {
  max-width: 800px;
  margin: 100px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.about-section h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-section p {
  line-height: 1.8;
  color: #cfcfcf;
  font-size: 1rem;
}

.team-section {
  padding: 60px 20px 100px;
}

.team-section h2 {
  color: white;
  margin-bottom: 40px;
  text-align: center;
}

.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;

}

.team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.member-card {
  background: #232334;
  border-radius: 15px;
  width: 220px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-8px);
}

/*.member-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid white;
  margin-bottom: 15px;
}*/

.member-card h5 {
  color: #fff;
  margin-bottom: 5px;
}

.member-card p {
  color: #aaa;
  font-size: 0.9rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  background: linear-gradient(145deg, #e3e6eb, #c9ccd1);
  color: #333;
  font-family: 'Poppins', sans-serif;
  border: 6px solid #bfc3c9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* =========================================================
   ====== KHUSUS UNTUK HALAMAN MATERI ======
   ========================================================= */

/* ===== MAIN CARD CONTAINER ===== */
main.materi-container {
  /* background: rgba(46, 48, 55, 0.78); */
  background-color: #1c1f2b;
  border-radius: 20px;
  padding: 40px 60px;
  width: 85%;
  max-width: 1100px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  margin: 60px auto 0;
}

/* ===== SECTION STYLE ===== */
.materi-section {
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.materi-section.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

/* ===== HEADING ===== */
.materi-section h2 {
  color: #F0F5F9;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 6px solid #52616B;
  padding-left: 12px;
}

.materi-section h3 {
  color: #d0d0d0;
  font-weight: 600;
  margin-top: 20px;
}

/* ===== TEXT ===== */
.materi-section p,
.materi-section ul,
.materi-section li {
  color: #e6e6e6;
  line-height: 1.7;
  font-size: 0.98rem;
}

.materi-section ul {
  margin-left: 20px;
}

.materi-section code {
  background-color: #3b3b47;
  color: #a8dadc;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* ===== TABLE STYLE ===== */
.materi-section .table {
  background-color: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.materi-section .table th,
.materi-section .table td {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.materi-section .table th {
  font-weight: 600;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== BLOCKQUOTE / INFO BOX ===== */
.materi-section blockquote {
  background-color: rgba(82, 97, 107, 0.4);
  border-left: 5px solid #F0F5F9;
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-style: italic;
}

/* ===== CARD INNER SECTION (ESTETIK) ===== */
.materi-section .memoalloc-card {
  color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  background: rgba(59, 59, 71, 0.6);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.materi-section .memoalloc-card h2 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
  color: #F0F5F9;
}

/* ===== ANIMASI ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAV-PILLS (TAB MATERI) ===== */
.nav-pills .nav-link {
  /* background-color: rgba(255, 255, 255, 0.08); */
  background: #7c5cff;
  color: #F0F5F9;
  border-radius: 10px;
  margin: 4px;
  padding: 10px 18px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-pills {
  display: flex;
  justify-content: center;
  gap: 18px;
  /* ⬅️ Ini jarak antar tombol */
  margin-bottom: 30px;
  /* Jarak ke konten bawah */
}

.nav-pills .nav-link:hover {
  /* background-color: rgba(255, 255, 255, 0.15); */
  background: #9a7fff;
  box-shadow: 0 10px 25px rgba(124, 92, 255, 0.3);
  transform: scale(1.05);
}

.nav-pills .nav-link.active {
  /* background-color: #52616B !important; */
  background-color: #7c5cff;
  box-shadow: 0 10px 25px rgba(124, 92, 255, 0.3);
  color: #F0F5F9 !important;
  font-weight: 600;
  transform: scale(1.08);
  /* box-shadow: 0 0 8px rgba(255, 255, 255, 0.15); */
}

/* ===== TOMBOL UTAMA ===== */
.btn-primary {
  background-color: #52616B !important;
  border-color: #52616B !important;
  color: #f0f0f0 !important;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #52616B !important;
  border-color: #52616B !important;
  color: #f0f0f0 !important;
  transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  main.materi-container {
    padding: 30px 20px;
    width: 90%;
  }

  .materi-section h2 {
    font-size: 1.3rem;
  }

  .materi-section p,
  .materi-section ul,
  .materi-section li {
    font-size: 0.9rem;
  }
}

/* ===== FOOTER ===== */
footer.materi-footer {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}


.intro-video {
  margin: 25px 0 15px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #4da6ff;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #e6e6e6;
  line-height: 1.6;
}


.algoritma-video {
  margin-top: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.algoritma-video iframe {
  width: 100%;
  max-width: 1000px;
  height: 500px;
  border: none;
  border-radius: 10px;
}


/* ------KHUSUS UNTUK ICON ACE-------- */
.member-card.ripki .avatar {
  width: 75px !important;
  height: 75px !important;
  border-radius: 50%;
  background: #d9d9d9;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 600px;
}


.member-card.ripki .front,
.member-card.ripki .back {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
}

.member-card.ripki .back {
  transform: rotateY(180deg);
}

.member-card.ripki .avatar.flip {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.member-card.ripki:hover .avatar.flip {
  transform: rotateY(180deg);
}

html,
body {
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

*::-webkit-scrollbar {
  display: none;
}