:root{
  --sidebar-bg:#f5d7dc;   /* pink */
  --topbar-bg:#f5d7dc;    /* hijau */
  --active:#a7b092;       /* hijau tua */
  --text:#111;
  --white:#fff;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Times New Roman", Times, serif;
  color:var(--text);
  background:#eee;
  overflow: hidden;
}

.app{
  display:flex;
  min-height:100vh;
}

/* SIDEBAR */
.sidebar{
  width:200px;
  background:var(--sidebar-bg);
  padding:24px 18px;
}

/* BRAND / LOGO */
.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-bottom:28px;   /* jarak ke menu */
  padding:8px 0;
}

.logo{
  width:80px;
  height:80px;
  border-radius:50%;
  background:#fff;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:1px;
  font-size:13px;
}

.brand .name{
  font-weight:800;
  font-size:14px;      /* tulisan NEKKO lebih kecil */
  letter-spacing:1px;
}

/* MENU */
.menu{
  display:flex;
  flex-direction:column;
  gap:8px;             /* menu lebih rapat */
  margin-top:10px;
}

.menu a{
  display:block;
  padding:8px 10px;    /* lebih kecil */
  font-size:15px;      /* KECILKAN TEKS MENU */
  border-radius:0;
  text-decoration:none;
  color:#000;
  font-weight:600;
}

.menu a:hover{background:rgba(0,0,0,.04)}
.menu a.active{
  background:var(--active);
}

.hr{
  height:1px;
  background:rgba(0,0,0,.12);
  margin:18px 0;
}

.logout{
  margin-top:6px;
}

/* MAIN */
.main{
  flex:1;
  display:flex;
  flex-direction:column;
  background:#e9e9e9;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 55px;              /* sesuaikan */
  background: #c9d3b6;       /* warna topbar kamu */
  background:var(--topbar-bg);
}

.content{
  flex:1;
  background:#fff;
  margin:0;
  padding:20px 28px;
}

.page-title{
  font-family:"Times New Roman";
  text-align:center;
  font-size:32px;
  margin:0 0 20px;
  font-weight:700;
  margin-bottom: 6px;
}

.frame-wrap{
  height:calc(100vh - 78px - 34px - 34px - 40px - 20px);
  min-height:520px;
  border:0;
}

iframe{
  width:100%;
  height:100%;
  border:0;
}

/* Upload card */
.card{
  max-width:760px;
  margin:0 auto;
  border:1px solid rgba(0,0,0,.08);
  padding:18px;
  background:#fff;
}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

input[type="file"]{
  width:100%;
  padding:10px;
  border:1px solid rgba(0,0,0,.2);
}

button{
  padding:10px 14px;
  border:0;
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.btn-link{
  display:inline-block;
  padding:10px 14px;
  border:1px solid rgba(0,0,0,.2);
  text-decoration:none;
  color:#111;
  font-weight:700;
  background:#fafafa;
}

.notice{
  padding:10px 12px;
  background:#f3f3f3;
  border:1px solid rgba(0,0,0,.12);
  margin:12px 0 0;
}

/* LOGIN PAGE (tetap) */
.auth-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  background: #f4f4f4;
}
.auth-card{
  width:100%;
  max-width:380px;
  background:#fff;
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:22px;
  border:1px solid rgba(0,0,0,0.06);
}
.auth-logo{
  width:58px;
  height:58px;
  border-radius:50%;
  background: var(--sidebar);
  display:grid;
  place-items:center;
  font-weight:800;
  margin:0 auto 10px;
}
.auth-title{ text-align:center; margin:0; }
.auth-sub{
  text-align:center;
  margin:6px 0 16px;
  color:#777;
  font-size:13px;
}
.auth-error{
  background:#ffe5e5;
  border:1px solid #ffb5b5;
  padding:10px;
  border-radius:10px;
  margin-bottom:12px;
  font-size:13px;
}
.auth-form{ display:grid; gap:8px; }
.auth-form label{ font-size:12px; color:#555; }
.auth-form input{
  padding:12px;
  border-radius:10px;
  border:1px solid var(--line);
  outline:none;
}
.btn-primary{
  font-family: 'Times New Roman', Times, serif;
  height:40px;
  border-radius:16px;
  background: #b7c2a5;
  color:#111111;
  font-size:15px;
  font-weight:800;
  border:none;
}

.btn-primary:hover{ filter: brightness(0.98); }
.auth-hint{
  margin-top:12px;
  font-size:12px;
  color:#777;
  text-align:center;
}

/* =========================
   LOGIN - FANCY STYLE (FIXED)
========================= */
.auth-fancy{
  background: radial-gradient(1200px 600px at 15% 10%, rgba(183,194,166,.55), transparent 60%),
              radial-gradient(900px 500px at 85% 15%, rgba(243,215,215,.70), transparent 60%),
              linear-gradient(180deg, #f7f7f7, #ffffff);
  position: relative;
  overflow: hidden;
}

/* ⬇️ FIX: benar-benar center layar */
.auth-wrap{
  width: 100%;
  min-height: 100vh;           /* penting */
  display: flex;               /* ganti grid → flex */
  align-items: center;         /* center vertikal */
  justify-content: center;     /* center horizontal */
  padding: 0 16px;             /* hilangkan dorongan ke bawah */
  position: relative;
  z-index: 2;
}

.auth-bg{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}

.blob{
  position:absolute;
  filter: blur(30px);
  opacity:.75;
  border-radius: 999px;
}
.blob-1{
  width: 420px;
  height: 420px;
  left: -140px;
  top: -120px;
  background: rgba(183,194,166,.65);
}
.blob-2{
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -220px;
  background: rgba(243,215,215,.75);
}

/* Card */
.auth-card-fancy{
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  padding: 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}

/* Header logo + brand */
.auth-badge{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: center;   /* ⬅️ center */
  margin-bottom: 14px;
  text-align: center;
}

.auth-brand{
  text-align: center;
}

.auth-brand-title{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
.auth-brand-sub{
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

/* Judul */
.auth-title{
  text-align: center;
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.auth-sub{
  text-align: center;
  margin: 0 0 18px;
  font-size: 13px;
  color: #666;
}

/* Form */
.auth-form-fancy .field{
  display:grid;
  gap: 6px;
}

.auth-form-fancy input{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 12px 12px;
  transition: .15s ease;
}

.auth-form-fancy input:focus{
  outline: none;
  border-color: rgba(183,194,166,1);
  box-shadow: 0 0 0 4px rgba(183,194,166,.25);
}

/* Button */
.btn-fancy{
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0,0,0,.10);
  transition: transform .12s ease, filter .12s ease;
}

.btn-fancy:hover{
  transform: translateY(-1px);
  filter: brightness(.98);
}

.page-subtitle {
  font-size: 14px;
  color: #777;
  margin-top: 4px;
  margin-bottom: 0px;
  text-align: center;;
}

/* =========================
   UPLOAD PAGE – FINAL FIX (SAFE)
   ========================= */

/* NOTE:
   - Semua style di-scope khusus ke .upload-page dan elemen upload saja
   - Tidak mengganggu sidebar/menu
*/

.upload-page{
  --pink-main: #f5d7dc;
  --pink-soft: #ffe6f2;
  --pink-bg: #fff5fa;
  --pink-btn: #ff6fb1;
  --text-dark: #3a3a3a;
}

/* =========================
   HILANGKAN GARIS DI KONTEN UPLOAD SAJA
   (tidak mengubah sidebar .hr)
   ========================= */
.upload-page .content .hr{
  display: none;
}

.upload-page .content{
  border-bottom: 0 !important;
}

.upload-page .content::after,
.upload-page .content::before{
  display: none !important;
}

/* container utama upload */
.upload-page .upload-shell{
  padding: 20px;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
}

/* teks pembuka */
.upload-page .upload-lead{
  margin: 0 0 8px;
  color: var(--text-dark);
  opacity: .85;
}

/* grid 2 kolom */
.upload-page .upload-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(380px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 16px auto 0;
}

/* CARD per platform */
.upload-page .u-card{
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  overflow: hidden;
  border: none;
}

/* header */
.upload-page .u-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, var(--pink-main), #ffb3da);
}

/* meta kiri */
.upload-page .u-meta{
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

/* HILANGKAN NOMOR */
.upload-page .u-number{
  display: none;
}

/* judul 1 baris */
.upload-page .u-title{
  font-size: 17px;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  line-height: 1.2;
}

/* subjudul 1 baris (kalau kepanjangan jadi ...) */
.upload-page .u-sub{
  font-size: 13px;
  color: #333;
  margin-top: 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* tombol download */
.upload-page .u-download{
  padding: 10px 20px;
  min-width: 140px;
  text-align: center;
  flex-shrink: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #ff4f9a;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}

/* body */
.upload-page .u-card-body{
  padding: 18px;
  background: var(--pink-bg);
}

/* form */
.upload-page .u-form{
  display: grid;
  gap: 14px;
}

/* file input box */
.upload-page .u-file{
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.upload-page .u-file span{
  font-size: 12px;
  color: var(--text-dark);
  opacity: .7;
}

/* tombol upload */
.upload-page .u-action{
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--pink-btn), #ff4f9a);
  box-shadow: 0 8px 18px rgba(255,79,154,.35);
}

.upload-page .u-action:hover{
  filter: brightness(1.05);
}

/* notifikasi */
.upload-page .u-notice{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.upload-page .u-notice.ok{
  background: #eafff3;
}

.upload-page .u-notice.err{
  background: #fff0f0;
}

/* footnote */
.upload-page .upload-footnote{
  margin-top: 6px;
  color: var(--text-dark);
  opacity: .75;
}

/* responsive */
@media (max-width: 900px){
  .upload-page .upload-grid{
    grid-template-columns: 1fr;
  }
  .upload-page .u-title{
    white-space: normal;
  }
}

/* ===== Cetak Laporan UI ===== */
.report-card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:16px;
  margin-top:14px;
}
.report-card__title{
  font-weight:700;
  font-size:18px;
  margin-bottom:10px;
}
.report-form{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.rf-field label{
  display:block;
  font-size:12px;
  color:#666;
  margin-bottom:6px;
}
.rf-field input,
.rf-field select{
  height:40px;
  padding:0 12px;
  border:1px solid #ddd;
  border-radius:10px;
  outline:none;
  min-width:160px;
}
.btn{
  height:40px;
  padding:0 14px;
  border:1px solid #bbb;
  background:#f7f7f7;
  border-radius:10px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#111;
}
.btn-dark{
  background:#111;
  border-color:#111;
  color:#fff;
}
.report-note{
  margin-top:10px;
  font-size:12px;
  color:#666;
}

.print-header,
.header-mini,
.top-mini { display:none !important; }

/* ===== Cetak Laporan - Center + Lebih Menarik ===== */
.report-card{
  width:min(980px, 92vw);
  margin: 0 auto;           /* ✅ jangan pakai margin-top lagi (biar gap yang atur) */
  background:#fff;
  border:1px solid #ececec;
  border-radius:18px;
  padding: 28px 26px 20px;  /* ✅ bikin lebih lega */
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.report-card__title{
  font-size:20px;
  font-weight:800;
  margin:0 0 18px 0;        /* ✅ jarak title card ke form */
  letter-spacing:.2px;
}

.report-form{
  display:flex;
  flex-wrap:wrap;
  gap: 20px;                /* ✅ jarak antar input & tombol */
  align-items:flex-end;
  justify-content:center;
}

.rf-field{
  min-width: 220px;         /* ✅ biar ga rapat */
}

.rf-field label{
  font-size:12px;
  color:#666;
  margin:0 0 8px 2px;       /* ✅ jarak label ke input */
  display:block;
}

.rf-field input,
.rf-field select{
  width:100%;
  height:44px;
  padding:0 14px;
  border:1px solid #dedede;
  border-radius:14px;
  outline:none;
  background:#fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.btn{
  height:44px;
  padding:0 22px;           /* ✅ tombol lebih “mewah” */
  border-radius:14px;
  border:1px solid #cfcfcf;
  background:#f5d7dc;
  cursor:pointer;
  font-weight:700;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.btn + .btn{                /* ✅ jarak antar tombol kalau berdampingan */
  margin-left: 6px;
}

.report-note{
  margin-top: 16px;         /* ✅ jarak form ke catatan */
  font-size:12px;
  color:#666;
  text-align:center;
  line-height:1.5;
}

@media (max-width: 720px){
  .content{ padding: 10px 0; }
  .report-card{ padding:18px; }
  .rf-field{ min-width: 100%; }
  .btn{ width:100%; }
  .btn + .btn{ margin-left: 0; }
}

/* ===== Download PDF (btn-dark diperkuat) ===== */
.btn.btn-dark{
  background: linear-gradient(135deg, #111, #000);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0 26px;
  height: 44px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.btn.btn-dark:hover{
  background: linear-gradient(135deg, #000, #222);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

.btn.btn-dark:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* ===== Khusus halaman Cetak Laporan ===== */
.content-cetak .page-subtitle{
  margin-bottom: 28px;   /* jarak subtitle ke card */
}

.content-cetak .report-card{
  margin-top: 0;         /* reset margin atas card */
}
