/* BODY */
body {
  background-image: url("../img/plufow.jpg");

  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html,
body {
  height: 100%;
}

/* NAVBAR */
.navbar {
  background: #004d40;
}

h2 {
  color: #000000;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0b5e3c;
  margin: 4px auto 0;
}

.text-muted {
  font-size: 14px;
  text-align: center;
  font-size: 13px;
  padding: 10px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* CARD UTAMA */
.card-custom {
  background: url("../img/ss.png");
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* HOVER */
.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* BODY */
.card-body {
  padding: 10px 10px;
}

/* ICON */
.card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* JUDUL */
.card-body h6 {
  font-size: 16px;
  font-weight: bold;
}

/* Card Link */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* FOOTER HITAM */
.card-footer-custom {
  background: #004d40;
  color: white;
  font-size: 12px;
  padding: 10px;
  min-height: 60px; /* Key disini*/
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* BUTTON */
.btn-app {
  background: #004d40;
  color: white;
  font-size: 13px;
  padding: 6px;
}

.btn-app:hover {
  background: #d1daf3;
}

/* TAB */
.nav-pills .nav-link.active {
  background-color: #004d40;
}

.nav-pills .nav-link {
  color: #004d40;
  border: 1px solid #004d40;
  margin: 0 5px;
}

.btn-secondary {
  background: #004d40;
  color: white;
  font-size: 12px;
  padding: 10px;
  min-height: 60px; /* Key disini*/
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* TOOLTIP */
.tooltip-card {
  position: relative;
}

.tooltip-text {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);

  width: 250px;
  background: white;
  color: #333;
  padding: 12px;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 99;
}

/* PANAH */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

/* HOVER */
.tooltip-card:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}
/* DESKRIPSI STYLE GLASS */
.tab-description {
  display: flex;
  justify-content: center;
}

.tab-description p {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  padding: 12px 20px;
  border-radius: 10px;

  max-width: 800px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;

  color: #333;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.segmented-control {
  display: inline-flex;
  background: #e5e7eb;
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.main-tab,
.sub-tab {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  transition: 0.3s;
}

.main-tab.active,
.sub-tab.active {
  background: #004d40;
  color: white;
}

/* COINTAINER TAB RAPI */
.tab-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* INI KUNCI */
}

/* DROPDOWN TAB UTAMA */
.info-btn {
  background: rgba(0, 77, 64, 0.1);
  padding: 4px;
  border-radius: 50%;
  margin-left: 6px;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.7;
}

.info-btn:hover {
  opacity: 1;
}

.dropdown-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  text-align: center;

  background: white;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 10px auto 0;
  transition: all 0.3s ease;
}

.dropdown-info.show {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
  padding: 10px 15px;
}

.dropdown-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 5px;
}

/* CONTENT */
.main-content {
  display: none;
  flex: 1;
  padding-top: 10px;
  padding-bottom: 60px;
}
.main-content.active {
  display: block;
  flex: 1;
}

.sub-content {
  display: none;
}
.sub-content.active {
  display: block;
}

/* ACTIVE */
.segmented-item.active {
  background: #004d40;
  color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* HOVER */
.segmented-item:hover {
  color: #004d40;
}

/* FOOTER */
footer {
  font-family: sans-serif;
  font-size: 12px;
  background: #004d40;
  color: white;
  text-align: center;
  padding: 10px;
  position: relative;
  z-index: 10;
}
