/* ===== RESET DASAR ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  margin: 0;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== CONTAINER ===== */
.center {
  text-align: center;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

/* ===== LOGO ===== */
.logo-wrap {
  margin-bottom: 10px;
}

.logo {
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* ===== SUBTITLE ===== */
.subtitle {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 24px;
}

/* ===== DROPDOWN ===== */
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 24px;
  border: 1px solid #dcdcdc;
  outline: none;
  background: #fff;
}

select:focus {
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
}



/* ===== BUTTONS ===== */
button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#btnDetail {
  background: #1a73e8;
  color: #fff;
}

#btnDetail:hover {
  background: #1558b0;
}

#btnRouter {
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #D1D5DB;
}

#btnBAST {
  background: #16A34A;
  color: #FFFFFF;

}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  .center {
    max-width: 480px;
  }

  .logo {
    max-width: 280px;
  }

  .subtitle {
    font-size: 15px;
  }
}
.router-choice {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.router-btn {
  width: 140px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
}

.router-btn img {
  width: 100%;
  height: auto;
}

.step-list {
  padding-left: 18px;
  font-size: 14px;
}

.image-slot {
  margin-top: 12px;
  padding: 20px;
  border: 2px dashed #ccc;
  text-align: center;
  color: #777;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.nav-buttons button {
  flex: 1;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #1558b0;
}
/* ===== IMAGE THUMBNAIL ===== */
.image-slot {
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.preview-img {
  width: 100%;
  max-width: 260px;        /* ukuran thumbnail seragam */
  height: 160px;           /* tinggi dikunci */
  object-fit: contain;     /* gambar tidak terpotong */
  background: #fafafa;
  border: 1px dashed #ccc;
  border-radius: 8px;
  cursor: pointer;
}

/* Desktop sedikit lebih besar */
@media (min-width: 768px) {
  .preview-img {
    max-width: 320px;
    height: 180px;
  }
}
/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* ===============================
   COPY FIELD (STEP 2)
   input + tombol copy satu baris
=============================== */

/* wadah copy item */
.copy-item {
  list-style: none;
	align-items: center;
  margin-bottom: 10px;
}

/* baris input + tombol */
.row.compact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* input password / username */
.row.compact input {
  flex: 1;
  max-width: 220px;
  padding: 6px 8px;
  font-size: 13px;
}

/* tombol copy kecil */
.btn-copy {
  width: auto;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f1f3f4;
  cursor: pointer;
  margin-top: 0; /* override global button */
}

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

/* ===============================
   MOBILE TWEAK
=============================== */
@media (max-width: 480px) {
  .row.compact input {
    max-width: 180px;
    font-size: 12px;
  }

  .btn-copy {
    font-size: 11px;
    padding: 4px 6px;
  }
}

/* ===============================
   COPY FIELD – RATA DENGAN TEKS STEP
=============================== */

/* item copy mengikuti alur <ol> */
.copy-item {
  list-style: none;
  margin-left: 0;        /* ikut indent list */
  padding-left: 0;
  margin-bottom: 10px;
}

/* baris input + copy */
.row.compact {
  display: flex;
  align-items: center;
  gap: 6px;

  /* KUNCI POSISI */
  justify-content: flex-start;
  width: fit-content;    /* 🔥 tidak melebar */
}

/* input */
.row.compact input {
  width: 180px;          /* konsisten dengan teks */
  max-width: 180px;
  padding: 6px 8px;
  font-size: 13px;
}

/* tombol copy kecil */
.btn-copy {
  width: auto;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f1f3f4;
  cursor: pointer;
  margin-top: 0;         /* override global */
}

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

/* ===============================
   MOBILE TWEAK
=============================== */
@media (max-width: 480px) {
  .row.compact input {
    width: 160px;
    max-width: 160px;
    font-size: 12px;
  }

  .btn-copy {
    font-size: 11px;
    padding: 4px 6px;
  }
}
/* center khusus untuk baris copy tertentu */
.center-row {
  justify-content: center;
}

