/* ═══════════════════════════════════════════════════════════════════
   MIKROM HIS — Hospital Information System  ·  his.css
   Extends /css/styles.css + /css/product-shared.css
═══════════════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  --his-red:    #ef4444;
  --his-rose:   #f43f5e;
  --his-red-dk: #b91c1c;
  --his-muted:  rgba(239,68,68,.12);
  --his-glow:   rgba(239,68,68,.18);
}

/* ── Utility buttons ─────────────────────────────────────────────── */
.his-btn--primary {
  background: linear-gradient(135deg, var(--his-red), var(--his-rose));
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 20px var(--his-glow);
  transition: opacity .2s, box-shadow .2s, transform .15s;
}
.his-btn--primary:hover {
  opacity: .9;
  box-shadow: 0 6px 28px rgba(239,68,68,.35);
  transform: translateY(-1px);
}

/* ── Icon accent colours ────────────────────────────────────────── */
.his-icon--red    { background: rgba(239,68,68,.12) !important; color: #ef4444 !important; }
.his-icon--rose   { background: rgba(244,63,94,.12) !important; color: #f43f5e !important; }
.his-icon--purple { background: rgba(168,85,247,.12)!important; color: #a855f7 !important; }
.his-icon--teal   { background: rgba(20,184,166,.12) !important; color: #14b8a6 !important; }
.his-icon--orange { background: rgba(249,115,22,.12) !important; color: #f97316 !important; }
.his-icon--green  { background: rgba(34,197,94,.12)  !important; color: #22c55e !important; }
.his-icon--amber  { background: rgba(245,158,11,.12) !important; color: #f59e0b !important; }

/* ── HERO ───────────────────────────────────────────────────────── */
.his-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0f0f11 0%, #16010a 55%, #0f0f11 100%);
  padding: 120px 0 80px;
}
.his-hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(239,68,68,.07) 0%, transparent 70%);
  pointer-events: none;
}
.his-hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.his-hero__glow.g1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(239,68,68,.18) 0%, transparent 70%);
  top: -120px; right: -100px;
}
.his-hero__glow.g2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(244,63,94,.12) 0%, transparent 70%);
  bottom: -60px; left: 10%;
}
.his-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.his-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .8rem; font-weight: 600;
  color: var(--his-red); letter-spacing: .02em;
  margin-bottom: 20px;
}
.his-hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
}
.his-gradient-text {
  background: linear-gradient(135deg, var(--his-red), var(--his-rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.his-hero__sub {
  font-size: 1.08rem; line-height: 1.75;
  color: rgba(255,255,255,.72); max-width: 520px; margin-bottom: 32px;
}
.his-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.his-hero__trust   { display: flex; flex-wrap: wrap; gap: 10px; }
.his-hero__trust span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 7px 13px;
  font-size: .8rem; color: rgba(255,255,255,.75);
}
.his-hero__trust i { color: var(--his-red); font-size: .9rem; }

/* ── DASHBOARD MOCK ─────────────────────────────────────────────── */
.his-dash {
  background: #1a1225;
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(239,68,68,.1);
  width: 100%;
}

/* top bar */
.his-dash__bar {
  display: flex; align-items: center; gap: 8px;
  background: #12101a;
  border-bottom: 1px solid rgba(239,68,68,.12);
  padding: 10px 16px;
}
.his-dash__dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.his-dash__dot.r { background: #ef4444; }
.his-dash__dot.y { background: #f59e0b; }
.his-dash__dot.g { background: #22c55e; }
.his-dash__title {
  margin-left: 8px;
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.55); letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* body layout */
.his-dash__body { display: flex; min-height: 340px; }

/* sidebar */
.his-dash__sidebar {
  display: flex; flex-direction: column; gap: 6px;
  background: #100e18;
  border-right: 1px solid rgba(239,68,68,.1);
  padding: 14px 10px;
  width: 44px; flex-shrink: 0;
}
.his-dash__nav {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: rgba(255,255,255,.4);
  font-size: .9rem;
  cursor: default;
  transition: background .2s, color .2s;
}
.his-dash__nav.active {
  background: rgba(239,68,68,.2);
  color: var(--his-red);
}

/* main content */
.his-dash__main {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
  padding: 16px 16px 14px;
  overflow: hidden;
}

/* KPI row */
.his-dash__kpi-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
}
.his-dash__kpi {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.his-dash__kpi-val {
  font-size: 1.1rem; font-weight: 800;
  color: var(--his-red); line-height: 1.1;
}
.his-dash__kpi-lbl {
  font-size: .65rem; color: rgba(255,255,255,.45); white-space: nowrap;
}

/* mini bar chart */
.his-dash__chart { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.his-dash__chart-lbl {
  font-size: .67rem; color: rgba(255,255,255,.4); font-weight: 500;
}
.his-dash__bars {
  flex: 1; display: flex; align-items: flex-end; gap: 5px;
}
.his-dash__bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.his-dash__bar-col::before {
  content: '';
  display: block;
  width: 100%;
  height: var(--h, 50%);
  background: rgba(239,68,68,.35);
  border-radius: 3px 3px 0 0;
  max-height: 64px;
  transition: height .3s;
}
.his-dash__bar-col--active::before { background: var(--his-red); }
.his-dash__bar-col span {
  font-size: .58rem; color: rgba(255,255,255,.35);
}

/* activity rows */
.his-dash__rows { display: flex; flex-direction: column; gap: 6px; }
.his-dash__row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px; padding: 7px 10px;
  font-size: .7rem; color: rgba(255,255,255,.7);
}
.his-dash__row > span:nth-child(2) { flex: 1; }
.his-dash__dot-s {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.his-dash__dot-s.critical { background: #ef4444; }
.his-dash__dot-s.released { background: #22c55e; }
.his-dash__dot-s.pending  { background: #f59e0b; }
.his-dash__badge {
  font-size: .62rem; font-weight: 600; border-radius: 999px; padding: 2px 8px;
  white-space: nowrap;
}
.his-dash__badge.critical { background: rgba(239,68,68,.15); color: #ef4444; }
.his-dash__badge.released { background: rgba(34,197,94,.12);  color: #22c55e; }
.his-dash__badge.pending  { background: rgba(245,158,11,.12); color: #f59e0b; }

/* ── STATS STRIP ────────────────────────────────────────────────── */
.his-stats {
  background: #0f0f11;
  border-top:    1px solid rgba(239,68,68,.12);
  border-bottom: 1px solid rgba(239,68,68,.12);
  padding: 32px 0;
}
.his-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.his-stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  border-right: 1px solid rgba(239,68,68,.12);
  padding: 0 16px;
}
.his-stat-item:last-child { border-right: none; }
.his-stat-item__num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--his-red);
}
.his-stat-item__lbl {
  font-size: .8rem; color: rgba(255,255,255,.55);
  font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
}

/* ── PRICING featured card ──────────────────────────────────────── */
.erp-price-card--his-featured {
  border-color: var(--his-red) !important;
  background: linear-gradient(180deg, rgba(239,68,68,.07) 0%, rgba(244,63,94,.04) 100%);
  position: relative;
}
.his-price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--his-red), var(--his-rose));
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
  letter-spacing: .05em; text-transform: uppercase;
}

/* ── CTA SECTION ────────────────────────────────────────────────── */
.his-cta-section {
  background: linear-gradient(150deg, #0f0f11 0%, #1a0408 60%, #0f0f11 100%);
  padding: 96px 0;
  position: relative;
}
.his-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(239,68,68,.07) 0%, transparent 70%);
  pointer-events: none;
}
.his-cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.his-cta-section__copy h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; color: #fff; margin-bottom: 14px;
}
.his-cta-section__copy p {
  color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 28px;
}
.his-cta-section__perks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.his-cta-section__perks li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); font-size: .95rem;
}
.his-cta-section__perks i { color: var(--his-red); font-size: 1.1rem; flex-shrink: 0; }

.his-cta-section__form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.his-cta-section__form h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin-bottom: 4px;
}
.his-cta-section__form input,
.his-cta-section__form select,
.his-cta-section__form textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; color: #fff;
  font-family: inherit; font-size: .92rem;
  transition: border-color .2s;
}
.his-cta-section__form input::placeholder,
.his-cta-section__form textarea::placeholder { color: rgba(255,255,255,.35); }
.his-cta-section__form input:focus,
.his-cta-section__form select:focus,
.his-cta-section__form textarea:focus {
  outline: none; border-color: var(--his-red);
}
.his-cta-section__form select option { background: #1a1225; }
.his-cta-section__form textarea { resize: vertical; min-height: 80px; }
.his-form-note {
  font-size: .78rem; color: rgba(255,255,255,.4);
  text-align: center; margin-top: -4px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .his-stats__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .his-hero__inner        { grid-template-columns: 1fr; gap: 40px; }
  .his-hero__visual       { order: -1; }
  .his-cta-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .his-dash               { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .his-hero        { padding: 100px 0 60px; }
  .his-hero__title { font-size: 2rem; }
  .his-hero__actions { flex-direction: column; }
  .his-hero__trust   { flex-direction: column; }
  .his-stats__grid   { grid-template-columns: repeat(2,1fr); }
  .his-dash__kpi-row { grid-template-columns: repeat(2,1fr); }
  .his-cta-section__form { padding: 24px 18px; }
}
@media (max-width: 400px) {
  .his-stats__grid   { grid-template-columns: 1fr; }
  .his-stat-item     { border-right: none; border-bottom: 1px solid rgba(239,68,68,.12); padding: 12px 0; }
  .his-stat-item:last-child { border-bottom: none; }
}
