/* Anjungan Donor — premium UI layer, compatible with legacy browsers/PHP views. */
:root {
  --pmi-red: #c8102e;
  --pmi-deep: #7f1025;
  --pmi-ink: #172033;
  --pmi-muted: #697386;
  --pmi-line: #e8ebf1;
  --pmi-soft: #f5f7fb;
  --pmi-success: #138a61;
}

html { min-height: 100%; background: #eef1f6; }
html.kiosk-page {
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 78%, rgba(255,28,67,.82) 0, rgba(255,28,67,0) 34%),
    linear-gradient(125deg, #85091f 0%, #bd0c2b 43%, #ed123b 68%, #8e0a21 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
html.login-premium-page {
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 82%, rgba(255,28,67,.88) 0, rgba(255,28,67,0) 34%),
    linear-gradient(125deg, #85091f 0%, #bd0c2b 43%, #ed123b 68%, #8e0a21 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}
html.dashboard-premium-page {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 95%, rgba(255,40,77,.82) 0, rgba(255,40,77,0) 38%),
    linear-gradient(125deg, #7e081e 0%, #b80b2a 42%, #e9123b 68%, #84091f 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}
body.dashboard-page {
  min-height: 100vh;
  margin: 0;
  padding: 0 0 76px;
  background: transparent !important;
  overflow-x: hidden;
}
body.dashboard-page:before,
body.dashboard-page:after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 44vw;
  height: 44vw;
  border: 7vw solid rgba(255,255,255,.06);
  border-radius: 50%;
}
body.dashboard-page:before { top: -22vw; right: -15vw; }
body.dashboard-page:after { bottom: -25vw; left: -16vw; }
.dashboard-identity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  width: 510px;
  max-width: calc(100% - 24px);
  margin-left: auto;
  padding: 10px 16px 10px 20px;
  border-radius: 0 0 0 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 38px rgba(55,0,14,.24);
}
.dashboard-identity-text { display: flex; flex-direction: column; text-align: right; line-height: 1.35; }
.dashboard-identity-text strong { color: #7f1025; font-size: 17px; letter-spacing: .025em; text-decoration: underline; }
.dashboard-identity-text span { color: #475166; font-size: 12px; }
.dashboard-identity img { width: 120px; height: auto; }
.dashboard-shell {
  width: 1180px;
  max-width: calc(100% - 48px);
  margin: 38px auto 0;
}
.dashboard-heading {
  display: flex;
  align-items: center;
  width: 680px;
  max-width: 100%;
  margin: 0 auto 28px;
  color: #fff;
  text-align: left;
}
.dashboard-heading img {
  width: 76px;
  height: 76px;
  margin-right: 18px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(51,0,13,.3));
}
.dashboard-heading p { margin: 0 0 2px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.dashboard-heading h1 { margin: 0; color: #fff; font-size: 29px; font-weight: 800; letter-spacing: .015em; }
.dashboard-heading span { color: rgba(255,255,255,.82); font-size: 14px; }
.dashboard-services { display: flex; flex-wrap: wrap; }
.dashboard-services > div { display: flex; }
.dashboard-service-card { width: 100%; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.dashboard-service-card:hover { transform: translateY(-4px); box-shadow: 0 26px 62px rgba(54,0,14,.26) !important; }
.dashboard-service-card .card-body { display: flex; flex-direction: column; width: 100%; min-height: 360px; padding: 27px !important; text-align: left; }
.dashboard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 19px;
  border-radius: 18px;
  background: #fff1f3;
}
.dashboard-icon img { width: 42px; height: 42px; object-fit: contain; }
.dashboard-service-card h3 { margin: 0 0 9px; color: #771126; font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.dashboard-description { min-height: 66px; margin: 0 0 18px; color: #667085; line-height: 1.55; }
.dashboard-action { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: auto; text-transform: uppercase; }
.dashboard-upload { margin: -5px 0 14px; }
.dashboard-upload label { display: block; margin-bottom: 5px; color: #667085; font-size: 12px; font-weight: 700; }
.dashboard-upload input[type="file"] { width: 100%; color: #667085; font-size: 12px; }
.dashboard-upload-button { min-height: 34px; margin-top: 8px; padding: 6px 13px; color: #8a1129 !important; background: #fff0f3 !important; box-shadow: none !important; }
.dashboard-logout { margin-top: 12px; text-align: center; }
.dashboard-logout .btn { min-width: 170px; color: #7f1025 !important; }
.dashboard-notice { margin: 0 auto 20px; color: #0d6547; background: rgba(232,247,241,.96); text-align: center; }
.dashboard-page .copyright { background: rgba(68,2,16,.76) !important; }
.postdonor-page { min-height: 100vh; overflow-x: hidden; }
.postdonor-identity {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  max-width: 510px;
  padding: 10px 16px 10px 20px;
  border-radius: 0 0 0 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 38px rgba(55,0,14,.24);
}
.postdonor-identity > div { display: flex; flex-direction: column; color: #475166; font-size: 12px; line-height: 1.35; text-align: right; }
.postdonor-identity strong { color: #7f1025; font-size: 17px; letter-spacing: .025em; text-decoration: underline; }
.postdonor-identity img { width: 120px; height: auto; }
.postdonor-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 20px 70px;
}
.donor-status-card {
  width: 540px;
  max-width: 100%;
  padding: 30px 38px 34px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 28px 72px rgba(54,0,14,.3);
  text-align: center;
}
.donor-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  margin: -4px auto 15px;
  border-radius: 50%;
  background: #fff1f3;
}
.donor-status-icon img { width: 70px; height: 70px; object-fit: contain; }
.donor-status-label { margin: 0 0 5px; color: #a50d2b; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.donor-status-card h1 { margin: 0 0 18px; color: #631024; font-size: 27px; font-weight: 800; }
.donor-status-message {
  padding: 15px 18px;
  border-radius: 14px;
  color: #313b50;
  background: #f6f7fa;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.donor-status-warning .donor-status-icon { background: #fff7e8; }
.donor-status-warning .donor-status-message { color: #7d4d00; background: #fff8e9; }
.donor-status-confirm .donor-status-message { color: #78233a; background: #fff0f3; }
.donor-status-error .donor-status-message { color: #842135; background: #fff0f2; }
.donor-status-countdown { margin: 17px 0 16px; color: #7b8495; font-size: 13px; }
.donor-status-action { display: inline-flex !important; align-items: center; justify-content: center; min-width: 210px; }
.donor-form-page {
  min-height: 100vh;
  padding-bottom: 35px;
  background: transparent !important;
}
.donor-form-shell {
  width: 1480px;
  max-width: calc(100% - 30px);
  margin: 0 auto;
  padding: 18px 0 35px !important;
}
.donor-form-heading { margin: 0 0 15px; }
.donor-form-heading img {
  width: 390px !important;
  max-width: calc(100% - 30px);
  padding: 13px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 15px 38px rgba(54,0,14,.24);
}
.donor-form-page .card-tabs {
  overflow: hidden;
  border-radius: 25px !important;
  box-shadow: 0 26px 70px rgba(54,0,14,.27) !important;
}
.donor-form-page .card-tabs > .card-header {
  min-height: 8px;
  padding: 0 !important;
  border-radius: 25px 25px 0 0 !important;
}
.donor-form-page .card-tabs > .card-body { padding: 28px 30px 32px !important; }
.donor-form-page .table-responsive {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 17px;
  background: #fff;
}
.donor-form-page table { color: #2b3549; }
.donor-form-page table td { padding: 7px 9px; vertical-align: middle; }
.donor-form-page table tr:nth-child(even) { background: #f7f8fa !important; }
.donor-form-page h4 { color: #751027; font-weight: 800; }
.donor-form-page .tab-pane > .row { margin-bottom: 8px; }
.donor-form-page .btn { text-transform: uppercase; }
.form-timeout-badge {
  position: fixed;
  z-index: 9990;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 14px;
  color: #fff;
  background: rgba(73,4,19,.72);
  box-shadow: 0 10px 25px rgba(54,0,14,.22);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.form-timeout-badge strong { min-width: 38px; font-size: 14px; }
.form-timeout-badge.form-timeout-warning { color: #731027; background: rgba(255,246,225,.97); }
body.staff-login-page {
  min-height: 100vh;
  margin: 0;
  background: transparent !important;
  overflow-x: hidden;
}
body.staff-login-page:before,
body.staff-login-page:after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border: 7vw solid rgba(255,255,255,.065);
  border-radius: 50%;
}
body.staff-login-page:before { top: -20vw; right: -14vw; }
body.staff-login-page:after { bottom: -22vw; left: -13vw; }
.staff-login-shell {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 430px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -52%);
  text-align: center;
}
.staff-login-brand { margin-bottom: 18px; color: #fff; }
.staff-login-brand img {
  width: 180px;
  height: auto;
  padding: 9px 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(61,0,14,.25);
}
.staff-login-brand h1 {
  margin: 17px 0 3px;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: .025em;
  text-shadow: 0 4px 15px rgba(61,0,14,.25);
}
.staff-login-brand p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  letter-spacing: .04em;
}
.staff-login-page .login-box { width: 430px; max-width: 100%; margin: 0; }
.staff-login-page .login-card-body { padding: 28px 30px 25px !important; }
.staff-login-page .login-box-msg {
  margin-bottom: 20px;
  color: #7f1025;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}
.staff-login-page form > .input-group:first-child { display: none; }
.staff-login-page .input-group img[src*="captcha.php"] {
  width: 88px;
  height: 48px;
  margin-left: 8px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(31,42,68,.12);
}
.staff-login-page .copyright {
  background: rgba(75,3,18,.72) !important;
  border-top: 1px solid rgba(255,255,255,.14);
}
body {
  min-height: 100vh;
  color: #172033;
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body:before {
  content: "";
  position: fixed;
  z-index: -1;
  top: -120px;
  right: -100px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(200,16,46,.05);
  border-radius: 50%;
}

/* Fluid premium canvas: no image ratio, therefore nothing can be cropped. */
body.padding {
  height: auto;
  min-height: 100vh;
  margin: 0;
  background: transparent !important;
}
body.padding:after {
  content: "";
  position: fixed;
  z-index: -1;
  left: -11vw;
  bottom: -20vw;
  width: 43vw;
  height: 43vw;
  border: 7vw solid rgba(255,255,255,.07);
  border-radius: 50%;
}

body.padding:before {
  content: "";
  position: fixed;
  z-index: -1;
  top: -16vw;
  right: -12vw;
  width: 41vw;
  height: 41vw;
  border: 6vw solid rgba(255,255,255,.065);
  border-radius: 50%;
}

/* UDD identity remains visible without depending on the old background artwork. */
body.padding.donor-search-page .padd {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: auto;
  max-width: 500px;
  margin: 0;
  padding: 9px 14px 9px 18px !important;
  border: 0;
  border-radius: 0 0 0 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 38px rgba(61,0,14,.24);
  color: #3d4350;
  line-height: 1.45;
  text-align: right !important;
}
body.padding.donor-search-page .padd font {
  color: #7f1025;
  font-size: 17px !important;
  letter-spacing: .025em;
  text-shadow: none;
}
body.padding.donor-search-page .padd .pmi-long-logo {
  display: block;
  width: 125px;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.padding.donor-search-page .udd-identity {
  font-size: 12px;
}
body.padding.donor-search-page .donor-entry {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 440px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -48%);
}
body.padding.donor-search-page .donor-entry .login-box {
  width: 410px;
  max-width: 100%;
  margin: 0;
}
body.padding.donor-search-page .ayo-donor-mark {
  display: block;
  margin: 0 0 18px;
}
body.padding.donor-search-page .ayo-donor-mark img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(61,0,14,.25));
}
body.padding .login-card-body {
  box-shadow: 0 24px 62px rgba(57,0,13,.27) !important;
}

a { color: var(--pmi-red); }
a:hover { color: var(--pmi-deep); text-decoration: none; }

.card,
.login-card-body,
.info-box,
.small-box,
.modal-content,
.breadcrumb,
ol.breadcrumb {
  border: 1px solid rgba(255,255,255,.9) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 18px 50px rgba(31,42,68,.10) !important;
}

.login-box { width: 410px; max-width: calc(100vw - 32px); }
.login-box .card { overflow: hidden; }
.login-card-body { padding: 30px !important; }
.login-box-msg {
  color: #172033;
  font-size: 18px;
  letter-spacing: .02em;
}

.form-control,
select.form-control {
  min-height: 48px;
  border: 1px solid #dfe3eb !important;
  border-radius: 12px !important;
  background-color: #f9fafc !important;
  color: #172033;
  font-size: 16px;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:focus,
select.form-control:focus {
  border-color: rgba(200,16,46,.6) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(200,16,46,.10) !important;
}
.form-control[readonly] { color: #7d8594; }

.btn {
  min-height: 44px;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(31,42,68,.12) !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn-success,
.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #d7183b, #a60d29) !important;
}
.btn-danger { background: linear-gradient(135deg, #94162c, #68101f) !important; }
.btn-dark { background: linear-gradient(135deg, #27334a, #151d2e) !important; }
.btn-light { color: #253047 !important; background: #fff !important; }
.btn-block { min-height: 52px; }

/* Legacy views use fixed 100px inline widths; allow labels such as LANJUTKAN to fit. */
.card .btn[style*="width:100px"],
.card input.btn[style*="width:100px"],
.card button.btn[style*="width:100px"] {
  width: auto !important;
  min-width: 142px !important;
  height: 52px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.card-header {
  border: 0 !important;
  border-radius: 20px 20px 0 0 !important;
  background: linear-gradient(135deg, #c8102e, #861027) !important;
  color: #fff !important;
}
.card-body { padding: 24px; }

.table-responsive { border-radius: 16px; }
.table { margin-bottom: 0; background: rgba(255,255,255,.88); }
.table thead th,
.table th {
  border-top: 0 !important;
  border-bottom: 1px solid #e6e9ef !important;
  color: #535e72;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.table td { border-color: #edf0f4 !important; vertical-align: middle !important; }
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfc; }

.alert {
  border: 0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(31,42,68,.08);
}
.alert-success { color: #0d6547; background: #e8f7f1; }
.alert-danger { color: #8d172c; background: #fff0f2; }

.preloader {
  display: none;
  position: fixed !important;
  z-index: 99999 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(8px);
  opacity: 1 !important;
}
.preloader.premium-active { display: flex !important; }
.preloader:before {
  content: "";
  position: absolute;
  width: 104px;
  height: 104px;
  border: 4px solid rgba(200,16,46,.14);
  border-top-color: #c8102e;
  border-radius: 50%;
  animation: premium-spin .8s linear infinite;
}
.preloader:after {
  content: "Mohon tunggu…";
  margin-top: 28px;
  color: #7f1025;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
}
.preloader img {
  position: relative;
  z-index: 1;
  width: 62px !important;
  height: 62px !important;
  object-fit: contain;
}
@keyframes premium-spin { to { transform: rotate(360deg); } }
.copyright {
  height: 44px !important;
  line-height: 44px !important;
  border-top: 1px solid rgba(255,255,255,.2);
  background: rgba(91,4,23,.78) !important;
  box-shadow: 0 -8px 28px rgba(78,12,27,.12);
  font-size: 13px;
  letter-spacing: .03em;
}

.content-wrapper { background: transparent !important; }
/* Registration questionnaire */
.card-tabs { overflow: hidden; }
.tab-content { color: #263148; }
.onoffswitch-label { border-radius: 20px !important; }
input[type="radio"], input[type="checkbox"] { accent-color: #c8102e; }

/* Queue screen */
ol.breadcrumb { padding: 20px !important; }
ol.breadcrumb strong { color: #b50e2d; }

@media (max-width: 768px) {
  body { background-attachment: scroll !important; }
  body.padding { background-size: cover !important; background-attachment: scroll !important; }
  body.padding.donor-search-page .padd {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% - 24px);
    margin: 12px;
    padding: 12px 16px !important;
    border-radius: 16px;
    gap: 12px;
  }
  body.padding.donor-search-page .padd .pmi-long-logo { width: 105px; }
  body.padding.donor-search-page .padd font { font-size: 15px !important; }
  body.padding.donor-search-page .donor-entry {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 32px auto 90px;
    transform: none;
  }
  body.staff-login-page { overflow-y: auto; }
  body.dashboard-page { padding-bottom: 0; }
  .postdonor-identity { position: relative; width: calc(100% - 24px); margin: 12px; border-radius: 16px; }
  .postdonor-identity img { width: 100px; }
  .postdonor-identity strong { font-size: 14px; }
  .postdonor-result { min-height: auto; padding: 35px 12px 80px; }
  .donor-status-card { padding: 25px 20px 28px; border-radius: 21px; }
  .donor-status-card h1 { font-size: 23px; }
  .donor-status-message { font-size: 15px; }
  .donor-form-shell { max-width: calc(100% - 16px); padding-top: 10px !important; }
  .donor-form-heading img { width: 300px !important; }
  .donor-form-page .card-tabs > .card-body { padding: 18px 12px 24px !important; }
  .donor-form-page .table-responsive { overflow-x: auto; }
  .form-timeout-badge { position: sticky; top: 8px; width: max-content; margin: 8px 0 4px 8px; }
  .dashboard-identity { width: calc(100% - 24px); margin: 12px; border-radius: 16px; }
  .dashboard-identity img { width: 100px; }
  .dashboard-identity-text strong { font-size: 14px; }
  .dashboard-shell { max-width: calc(100% - 24px); margin-top: 28px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading img { width: 62px; height: 62px; margin-right: 13px; }
  .dashboard-heading h1 { font-size: 22px; }
  .dashboard-service-card .card-body { min-height: 0; }
  .staff-login-shell {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 28px auto 90px;
    transform: none;
  }
  .staff-login-brand img { width: 150px; }
  .staff-login-brand h1 { font-size: 22px; }
  .card-body, .login-card-body { padding: 20px !important; }
  .login-box { margin-top: 20px; }
  .form-control, select.form-control { font-size: 16px; }
  .copyright { position: static !important; margin-top: 32px; }
  .box, .box2 { height: 28px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
