:root {
  --brand-primary: #0d6efd;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.token-badge {
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 3.2rem;
  display: inline-block;
  text-align: center;
}

.table-opd tbody tr.seen {
  opacity: 0.55;
}

.table-opd tbody tr td {
  vertical-align: middle;
}

.stat-card {
  border-radius: 0.75rem;
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.stat-card i {
  font-size: 2rem;
  opacity: 0.85;
}

.bg-grad-blue   { background: linear-gradient(135deg,#0d6efd,#3b82f6); }
.bg-grad-green  { background: linear-gradient(135deg,#198754,#22c55e); }
.bg-grad-orange { background: linear-gradient(135deg,#fd7e14,#f97316); }
.bg-grad-purple { background: linear-gradient(135deg,#6f42c1,#8b5cf6); }

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#0d6efd 0%, #6f42c1 100%);
}

.login-card {
  max-width: 420px;
  width: 100%;
}

.report-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #f1f3f5;
}

/* =====================================================================
   Video consultation (doctor OPD page, clinic call screen, incoming card)
   ===================================================================== */
.vc-bar { border-left: 4px solid var(--brand-primary); }

/* Call video area */
.vc-stage-wrap {
  position: relative;
  background: #0b1220;
  border-radius: 0.75rem;
  overflow: hidden;
}
.vc-stage, .vc-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.vc-stage-clinic { height: 72vh; min-height: 420px; }

/* Doctor page: while in a call, the video sits beside the notes */
body.vc-active .vc-layout {
  display: grid;
  grid-template-columns: minmax(360px, 45%) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.vc-panel {
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
  min-height: 420px;
}
body.vc-active #opdMain .col-lg-4,
body.vc-active #opdMain .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
@media (max-width: 991.98px) {
  body.vc-active .vc-layout { grid-template-columns: 1fr; }
  .vc-panel { position: relative; top: 0; height: 60vh; }
}

/* Clinic call screen overlay (left the call / ended / error) */
.vc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.vc-overlay-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  max-width: 340px;
  width: 100%;
}

/* Incoming call card, bottom-right on every clinic page */
.vc-incoming {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 330px;
  max-width: calc(100vw - 2.5rem);
  z-index: 1090;
  display: none;
  border: 2px solid #198754 !important;
  box-shadow: 0 10px 30px rgba(25, 135, 84, 0.3);
}
.vc-incoming.show { display: block; }
.vc-incoming-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #d1e7dd; color: #198754;
}
@media (prefers-reduced-motion: no-preference) {
  .vc-incoming.show { animation: vc-ring 1.6s ease-in-out infinite; }
  @keyframes vc-ring { 50% { box-shadow: 0 10px 40px rgba(25, 135, 84, 0.6); } }
}
