/* ==========================================================================
   style.css — Doctor Laptop Jogja | Aplikasi Nota Servis
   ========================================================================== */

body {
  font-family: 'Inter', sans-serif;
  background: #f3f4f6;
}

/* ---------- Navbar ---------- */
.nav-link {
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: .15s;
  display: flex;
  align-items: center;
}
.nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-link-active { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Generic UI ---------- */
.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.input-field {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: .6rem;
  padding: .55rem .8rem;
  font-size: .9rem;
  transition: .15s;
  background: #fff;
  color: #111827;
}
.input-field:focus {
  outline: none;
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}
.label-field {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .3rem;
}
.section-title {
  font-size: .95rem;
  font-weight: 700;
  color: #0e7490;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: .5rem;
}
.btn-primary {
  background: linear-gradient(90deg,#1d4ed8,#0891b2);
  color: #fff;
  padding: .6rem 1.3rem;
  border-radius: .6rem;
  font-weight: 600;
  transition: .15s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: #e5e7eb;
  color: #374151;
  padding: .6rem 1.3rem;
  border-radius: .6rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover { background: #d1d5db; }
.btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  padding: .5rem 1rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .85rem;
  border: none;
  cursor: pointer;
}
.btn-danger:hover { background: #fecaca; }
.btn-outline {
  background: #fff;
  border: 1.5px solid #0891b2;
  color: #0891b2;
  padding: .55rem 1.2rem;
  border-radius: .6rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover { background: #ecfeff; }
.btn-outline.active { background: #0891b2; color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fade-in .25s ease-out; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(17,24,39,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
}
.modal-box {
  background: #fff; border-radius: 1rem; max-width: 480px; width: 100%;
  padding: 1.75rem; box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

/* ---------- Nota Print Template ---------- */
.nota-print {
  font-family: 'Courier New', monospace;
  max-width: 800px;
  margin: 0 auto;
  color: #111;
  background: #fff;
  padding: 1.25rem;
}
.nota-print h1 { font-size: 1.3rem; margin: 0; letter-spacing: .5px; }
.nota-print h2 { font-size: 1.05rem; margin: 0; text-decoration: underline; }
.nota-print h3 { font-size: .9rem; margin: .9rem 0 .35rem; border-bottom: 1px solid #999; padding-bottom: 2px; text-transform: uppercase; }
.nota-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nota-head-right { text-align: right; }
.nota-print p { margin: .15rem 0; font-size: .85rem; }
.nota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .5rem; }
.nota-print table { font-size: .85rem; width: 100%; border-collapse: collapse; }
.nota-print table td { padding: 2px 4px; vertical-align: top; }
.two-col td:first-child { width: 160px; font-weight: 700; }
.box-text { border: 1px solid #ccc; border-radius: 6px; padding: .55rem; font-size: .85rem; min-height: 40px; white-space: pre-wrap; }
.nota-terms { margin-top: 1.1rem; font-size: .72rem; color: #333; background: #fafafa; border: 1px dashed #ccc; border-radius: 6px; padding: .6rem .8rem; }
.nota-terms ol { padding-left: 1.1rem; margin: .3rem 0 0; }
.nota-sign { display: flex; justify-content: space-between; margin-top: 2rem; text-align: center; font-size: .85rem; }
.nota-sign > div { width: 45%; }
.sign-space { height: 70px; }
.nota-divider { border: none; border-top: 2px dashed #999; margin: .6rem 0; }

@media (max-width: 640px) {
  .nota-grid { grid-template-columns: 1fr; }
}

/* ---------- Print mode ---------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .print-only-area { box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important; }
  main { padding: 0 !important; max-width: 100% !important; }
}
