/* ===========================================================
   FILE: css/komponen-modal-dan-notifikasi.css
   ISI   : Pop-up (detail & form), avatar dosen di pop-up, dan notifikasi kecil (toast) di bawah layar.
   JS    : js/komponen-modal.js
   =========================================================== */

.detailmodal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #04152db8;
  display: grid;
  place-items: center;
  padding: 18px;
}

.detailbox {
  position: relative;
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 26px;
  width: min(520px, 100%);
  box-shadow: 0 25px 80px #00112b50;
}

.detailbox h3 {
  margin: 0 35px 12px 0;
  font-size: 20px;
}

.detailbox p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.modalclose {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  background: #eef3f9;
  border-radius: 9px;
  width: 34px;
  height: 34px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #071f41;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 12px;
  z-index: 150;
  transition: .25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.avatar {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #edf5ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.big {
  width: 84px;
  height: 84px;
  font-size: 24px;
  margin-bottom: 10px;
}

.detailbox {
  max-height: 90vh;
  overflow: auto;
}

.detailbox form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 5px;
}

.detailbox input:not([type=file]), .detailbox select, .detailbox textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d8e2ee;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.detailbox .err {
  color: #c62828;
  font-size: 12px;
  min-height: 16px;
  margin: 8px 0 0;
}

.fbtn, .dbtn {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dimg {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.detailbox p b {
  font-size: 11px;
  color: var(--ink);
}

@media (max-width: 560px) {
  .detailbox {
    padding: 22px;
  }
}
