/* MedCab Pro app mockup styles — embedded UI screenshots */

.mk { width: 100%; }

/* Common sidebar — used across all mockups */
.mk-side-mini { display: flex; flex-direction: column; gap: 2px; }

/* Dashboard mockup */
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.dash-section { display: flex; flex-direction: column; gap: 12px; }
.dash-card {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
}
.dash-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.dash-card h4 .more { margin-left: auto; font-size: 11px; color: var(--ink-500); font-weight: 500; }

.rdv-list { display: flex; flex-direction: column; gap: 8px; }
.rdv-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 8px; background: var(--surface-subtle);
  border: 1px solid transparent;
}
.rdv-row.current { background: var(--brand-soft); border-color: rgba(37,99,235,0.2); }
.rdv-time { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-700); }
.rdv-name { font-size: 13px; font-weight: 600; }
.rdv-sub { font-size: 11px; color: var(--ink-500); margin-top: 1px; }
.rdv-status { font-size: 10px; padding: 3px 7px; border-radius: 999px; font-weight: 600; }
.s-prog { background: var(--surface-deep); color: var(--ink-600); }
.s-here { background: var(--accent-warm-soft); color: #92400E; }
.s-now { background: var(--accent-clinical-soft); color: #047857; }
.s-done { background: var(--surface-deep); color: var(--ink-500); }

.activity-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 8px 0 4px; }
.activity-chart .bar {
  flex: 1; background: var(--brand-primary); border-radius: 4px 4px 0 0; min-height: 4px;
  position: relative;
}
.activity-chart .bar.alt { background: var(--brand-soft); }
.activity-chart .bar:nth-child(odd) { background: var(--brand-primary); }
.activity-chart .bar:nth-child(even) { background: #60A5FA; }
.activity-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-400); margin-top: 6px; }

.waiting-list { display: flex; flex-direction: column; gap: 6px; }
.waiting-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-subtle); }
.waiting-avatar {
  width: 26px; height: 26px; border-radius: 999px; flex: 0 0 26px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: white;
}
.av-1 { background: #2563EB; }
.av-2 { background: #10B981; }
.av-3 { background: #F59E0B; }
.av-4 { background: #8B5CF6; }
.av-5 { background: #EF4444; }
.av-6 { background: #06B6D4; }
.waiting-name { font-size: 12px; font-weight: 600; }
.waiting-meta { font-size: 10px; color: var(--ink-500); margin-top: 1px; }
.waiting-wait { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); }

.cam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cam-tile {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--stroke);
}
.cam-tile::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,0.04), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 5px, rgba(255,255,255,0.015) 5px, rgba(255,255,255,0.015) 6px);
}
.cam-tile .label {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; color: white; font-weight: 600;
  background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.cam-tile .live-dot { width: 5px; height: 5px; border-radius: 999px; background: #EF4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.3); }

/* ============== CONSULTATION ============== */
.cons-grid {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 16px;
  min-height: 480px;
}
.cons-panel {
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px;
}
.cons-panel h5 { font-size: 11px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }

.patient-card {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  color: white; padding: 14px; border-radius: 10px; margin-bottom: 14px;
}
.patient-card .nm { font-size: 14px; font-weight: 700; }
.patient-card .meta { font-size: 11px; opacity: 0.85; margin-top: 4px; font-family: var(--font-mono); }
.patient-card .age-pill { display: inline-block; margin-top: 8px; font-size: 10px; padding: 3px 8px; background: rgba(255,255,255,0.18); border-radius: 999px; font-weight: 600; }

.allergy-banner {
  background: var(--danger-soft); border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 14px;
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; color: #991B1B;
}
.allergy-banner .ico { color: #DC2626; flex: 0 0 14px; margin-top: 1px; }
.allergy-banner b { color: #7F1D1D; font-weight: 700; }

.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-list .t { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface-subtle); color: var(--ink-700); border: 1px solid var(--stroke); }

.cons-section-tabs {
  display: flex; gap: 16px; border-bottom: 1px solid var(--stroke);
  margin: -2px -4px 14px;
  padding: 0 4px;
}
.cons-tab { font-size: 12px; font-weight: 600; padding: 8px 4px; color: var(--ink-500); border-bottom: 2px solid transparent; }
.cons-tab.active { color: var(--brand-primary); border-color: var(--brand-primary); }

.field { margin-bottom: 12px; }
.field label { font-size: 11px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; }
.field .v {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-700);
  background: var(--surface-subtle);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.5;
}
.field .v.tall { min-height: 56px; }
.field .v.cursor::after {
  content: '|'; color: var(--brand-primary);
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.autosave {
  display: inline-flex; align-items: center; gap: 6px;
  color: #047857; font-size: 11px; font-weight: 600;
  background: var(--accent-clinical-soft); padding: 3px 8px; border-radius: 999px;
}
.autosave .dot { width: 6px; height: 6px; border-radius: 999px; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }

.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px;
  border: 1px solid var(--stroke); background: white;
  font-size: 11.5px; font-weight: 600; color: var(--ink-700);
}
.action-btn .ico { color: var(--brand-primary); }

.vitals-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.vital { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; border-bottom: 1px dashed var(--stroke); }
.vital:last-child, .vital:nth-last-child(2) { border-bottom: 0; }
.vital .l { color: var(--ink-500); }
.vital .v { font-family: var(--font-mono); font-weight: 600; color: var(--ink-800); }

/* ============== FACTURATION ============== */
.bill-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.bill-table {
  border: 1px solid var(--stroke); border-radius: 12px; overflow: hidden;
  background: white;
}
.bill-th, .bill-tr {
  display: grid; grid-template-columns: 90px 1fr 70px 90px 70px;
  align-items: center; padding: 10px 14px;
  font-size: 12px;
}
.bill-th {
  background: var(--surface-subtle);
  color: var(--ink-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 10.5px; border-bottom: 1px solid var(--stroke);
}
.bill-tr { border-bottom: 1px solid var(--stroke); }
.bill-tr:last-child { border-bottom: 0; }
.bill-tr .code { font-family: var(--font-mono); font-weight: 600; color: var(--brand-primary); }
.bill-tr .amt { font-family: var(--font-mono); font-weight: 600; text-align: right; }
.bill-tr .maj { color: var(--ink-500); font-size: 11px; }
.bill-tr .qty { color: var(--ink-500); font-size: 11px; }

.bill-totals { background: var(--surface-subtle); padding: 14px; border-top: 1px solid var(--stroke); }
.bill-totals .row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; color: var(--ink-600); }
.bill-totals .row.grand { font-size: 16px; font-weight: 800; color: var(--ink-900); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--stroke); }
.bill-totals .row .amt { font-family: var(--font-mono); }

.bill-aside { display: flex; flex-direction: column; gap: 12px; }
.bill-aside .card2 { background: white; border: 1px solid var(--stroke); border-radius: 12px; padding: 14px; }
.bill-aside h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ink-500); letter-spacing: 0.06em; margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--stroke); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-500); }
.kv .v { font-weight: 600; color: var(--ink-800); font-family: var(--font-mono); }

/* ============== IMAGERIE ============== */
.img-grid { display: grid; grid-template-columns: 200px 1fr 240px; gap: 12px; }
.dicom-tile {
  aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  background: #0B1220;
  position: relative;
  border: 1px solid var(--stroke);
}
.dicom-tile.selected { box-shadow: 0 0 0 2px var(--brand-primary); }
.dicom-tile .label { position: absolute; bottom: 4px; left: 4px; font-size: 9px; color: rgba(255,255,255,0.75); font-family: var(--font-mono); }
.dicom-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dicom-viewer {
  background: #0B1220; border-radius: 12px;
  aspect-ratio: 4/3; position: relative; overflow: hidden;
  border: 1px solid var(--stroke);
}
.dicom-viewer .overlay {
  position: absolute; inset: 0; padding: 10px;
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.7); display: flex; flex-direction: column; justify-content: space-between;
}
.dicom-viewer .overlay .top { display: flex; justify-content: space-between; }
.dicom-viewer .overlay .bot { display: flex; justify-content: space-between; }
.dicom-viewer .ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60%; height: 60%; border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), rgba(255,255,255,0.02) 60%, transparent 70%);
  filter: blur(2px);
}
.dicom-viewer .ring2 {
  position: absolute; left: 55%; top: 45%; transform: translate(-50%, -50%);
  width: 30%; height: 30%; border-radius: 50% 50% 60% 40% / 60% 40% 60% 40%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0.05) 60%, transparent 70%);
  filter: blur(1px);
}
.cr-panel { background: white; border: 1px solid var(--stroke); border-radius: 12px; padding: 14px; font-size: 12px; }
.cr-panel h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ink-500); letter-spacing: 0.06em; margin-bottom: 12px; }
.cr-section { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--stroke); }
.cr-section:last-child { border-bottom: 0; padding-bottom: 0; }
.cr-section .ttl { font-size: 11px; font-weight: 700; color: var(--ink-700); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.cr-section .txt { font-size: 11.5px; color: var(--ink-600); line-height: 1.45; }
.cr-section .conclu { background: var(--accent-clinical-soft); border-radius: 6px; padding: 8px; font-size: 11px; color: #047857; }

/* ============== AGENDA ============== */
.agenda-wrap { background: white; border-radius: 12px; border: 1px solid var(--stroke); padding: 14px; }
.agenda-head { display: flex; gap: 6px; margin-bottom: 12px; align-items: center; }
.agenda-head .day-chip { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--surface-subtle); }
.agenda-head .day-chip.today { background: var(--brand-primary); color: white; }
.agenda-grid {
  display: grid;
  grid-template-columns: 38px repeat(5, 1fr);
  gap: 4px;
}
.agenda-hour { font-family: var(--font-mono); font-size: 10px; color: var(--ink-400); padding: 4px 0; }
.agenda-slot { min-height: 28px; background: var(--surface-subtle); border-radius: 4px; position: relative; }
.agenda-event {
  position: absolute; left: 2px; right: 2px;
  padding: 4px 6px; border-radius: 4px;
  font-size: 9.5px; font-weight: 600;
  color: white;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ev-1 { background: #2563EB; }
.ev-2 { background: #10B981; }
.ev-3 { background: #F59E0B; }
.ev-4 { background: #8B5CF6; }
.ev-5 { background: #EF4444; }

/* ============== Generic visual placeholder ============== */
.viz {
  background:
    repeating-linear-gradient(135deg, var(--surface-subtle) 0px, var(--surface-subtle) 12px, var(--stroke) 12px, var(--stroke) 13px);
  border: 1px dashed var(--stroke-strong);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-500);
  padding: 32px;
  min-height: 240px;
  text-align: center;
}

/* ============== STATS MOCKUP ============== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pyramid-wrap { background: white; border: 1px solid var(--stroke); border-radius: 12px; padding: 16px; }
.pyramid { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 10px; }
.pyramid-row { display: grid; grid-template-columns: 1fr 38px 1fr; align-items: center; gap: 8px; }
.pyramid-row .age { text-align: center; color: var(--ink-500); }
.pyramid-row .bar-l, .pyramid-row .bar-r { height: 14px; border-radius: 3px; position: relative; }
.pyramid-row .bar-l { background: linear-gradient(270deg, var(--brand-primary), var(--brand-soft)); justify-self: end; }
.pyramid-row .bar-r { background: linear-gradient(90deg, #F472B6, #FCE7F3); justify-self: start; }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 80px; padding-top: 6px; }
.spark .bar { flex: 1; background: var(--brand-primary); border-radius: 3px 3px 0 0; }
