.contentor {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

/* =========================
   HEADER
========================= */
#x_daftar {
  width: 100%;
  max-width: 950px;
  max-width: auto;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 55, 0.5),
    rgba(0, 8, 25, 0.95)
  );
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

.divatas {
  min-height: 40px;
  max-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 5px;
  border-radius: 5px;

  background:
    url("../img/icon/repeat-big.png") right center / contain no-repeat,
    linear-gradient(135deg, #00aef0, #0088ff);

  color: #14396a;
  font-size: 22px;
  text-shadow: 1px 1px 0px #7cabde;
  font-family: "Kondo", Verdana, Tahoma, sans-serif;
  font-weight: 800;
  font-style: normal;

  box-shadow: inset 1px 1px 2px 0px #bee3f9;
}

/* =========================
   PANEL
========================= */

.panel {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.box {
  background: rgba(0, 210, 255, 0.15);

  color: #fff;
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 0 0 5px 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

#info-daftar {
  height: 240px;
  overflow: hidden;
}

#scroll-box {
  height: 240px;
  overflow: hidden;
}

/* =========================
   TITLE
========================= */

.box-title {
  color: #333;
  overflow: hidden;
  position: relative;
  padding: 10px 15px;
  background: linear-gradient(180deg, #77d42a 10%, #5cb811 100%);
  font-family: "Becham", arial, verdana;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.1px;
  border-radius: 5px 5px 0 0;
  text-shadow: 1px 1px 0px #aade7c;
  box-shadow: inset 1px 1px 2px 0px #c9efab;
}

.box-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-25deg);
  animation: idxShine 6s infinite;
  pointer-events: none;
}

@keyframes idxShine {
  0% {
    left: -120%;
  }
  100% {
    left: 150%;
  }
}

.box-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
}

.reg-num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: aliceblue;
  display: flex;
  margin-top: 20px;
}

.reg-text {
  text-align: justify;
  display: flex;
  margin-top: 5px;
  margin-bottom: 15px;
}

.reg-text img {
  vertical-align: middle;
  padding-right: 10px;
}

.reg-text span {
  font-size: 14px;
  line-height: 1.3em;
  color: #ccc;
  font-style: normal;
}

/* =========================
   FIELD
========================= */

.field {
  position: relative;
  margin-bottom: 18px;
  width: 100%;
}

/* =========================
   INPUT ICON
========================= */

.input-icon {
  position: relative;
}

.input-icon input {
  width: 100%;
  padding: 12px 12px 12px 42px;
  border: 1px solid #64748b4d;
  border-radius: 5px;
  background: #33415580;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.input-icon input:focus {
  border-color: #00d27a;

  box-shadow: 0 0 8px rgba(0, 210, 122, 0.4);
}

.input-icon input.error {
  border: 1px solid #d9534f;
}

/* =========================
   ICON
========================= */

.logo-iconx {
  width: 18px;
  height: 18px;
  margin-right: 3px;
  vertical-align: middle;
  display: inline-block;
}

.icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  transition: 0.2s;
  user-select: none;
}

.toggle-password:hover {
  opacity: 1;
}

/* =========================
   CAPTCHA
========================= */

.captcha-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-field input {
  width: 120px;
  padding: 10px;
  border: 1px solid #64748b4d;
  border-radius: 5px;
  background: #33415580;
  color: #fff;
  text-transform: uppercase;
}

.captcha-field img {
  height: 40px;
  border-radius: 5px;
}

/* =========================
   TERMS ERROR
========================= */

.tooltip-error {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #d9534f;
  color: #fff;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: fadeSlide 0.25s ease;
}

.tooltip-error::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent #d9534f transparent;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ERROR BUBBLE ===== */
.error-bubble {
  position: absolute;
  left: 103%;
  top: 50%;
  transform: translateY(-50%);
  background: #d9534f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 9999;
  animation: slideIn 0.25s ease; /* cukup ini */
}

/* PANAH */
.error-bubble::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent #d9534f transparent transparent;
  z-index: 9999; /* 🔥 TAMBAH */
}

.bubble-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #680000;
  color: #d9534f;
  font-weight: bold;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ICON */
.error-bubble span.icon {
  font-weight: bold;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(10px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 600px) {
  .contentor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
  }

  .panel {
    min-width: 100%;
    margin: 0 auto;
  }

  .error-bubble {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-top: 14px;
    width: 100%;
    white-space: normal;
    overflow: visible;
  }

  .error-bubble::before {
    content: "";
    position: absolute;
    left: 20px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #d9534f;
    transform: rotate(45deg);
    z-index: -1;
  }

  .tabel {
    font-size: 12px;
  }
}

/* =========================
   TERMS
========================= */

.terms {
  font-size: 15px;
  color: #ddd;
  margin-bottom: 15px;
}

.terms a {
  color: #00d2ff;
  text-decoration: none;
}

/* =========================
   BUTTON
========================= */

.tombol-kuning:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   TABEL
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  color: #a7d64f;
  padding: 3px 6px;
}

th {
  background: #b5a45a;
  color: #222;
  height: 45px;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 1px 1px 0px #aade7c;
  font-weight: 700;
  position: sticky;
  top: 0;
}

th,
td {
  border-bottom: 1px solid #ccc;
}

th:first-child,
td:first-child {
  width: 50px;
  text-align: center;
}

tr {
  height: 38px;
}

th,
td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* baris normal */
#data-table tbody tr {
  transition: background 0.3s ease;
}

/* baris aktif */
#data-table tbody tr.active-row {
  background: #2b6f9c; /* biru lebih terang */
  color: #fff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

#email-box {
  width: 640px;
  height: auto;
  margin: 0 auto;
  padding: 30px 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
}

/* =========================
   MOBILE
========================= */

@media screen and (max-width: 768px) and (orientation: landscape) {
  .contentor {
    margin: 5px;
    gap: 10px;
  }

  #x_daftar {
    padding: 0;
  }

  .divatas {
    border-radius: 0;
  }

  .error-bubble {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-top: 6px;
    width: 100%;
    white-space: normal;
  }

  .error-bubble::before {
    display: none;
  }

  .divbawah {
    margin: 10px;
  }

  .reg-text span {
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  #x_daftar {
    padding: 0;
  }

  .divatas {
    border-radius: 0;
    padding-left: 10px;
    justify-content: center;
    background:
      url("../img/icon/repeat-small.png") right center / contain no-repeat,
      linear-gradient(135deg, #00aef0, #0088ff);

    color: #14396a;
    font-size: 22px;
    font-family: "Kondo", Verdana, Tahoma, sans-serif;
    font-weight: 800;
    font-style: normal;
  }

  .contentor {
    margin: 5px;
    gap: 10px;
  }
}

@media screen and (max-width: 480px) {
  #x_daftar {
    padding: 0;
    border-radius: 0;
  }

  .divatas {
    border-radius: 0;
  }

  .contentor {
    margin: 0;
    gap: 0;
  }

  .box-title {
    text-align: center;
    font-size: 20px;
    border-radius: 0;
  }

  .divbawah {
    display: none;
  }

  table {
    font-size: 12px;
  }
  .reg-text span {
    font-size: 12px;
  }
}
