 :root {
  --bg: #071b2e;
  --sidebar: #061525;
  --panel: #102a43;
  --panel-2: #0b2238;
  --green: #238b75;
  --mint: #66d6b5;
  --text: #f1f6fa;
  --muted: #a9bdcd;
  --border: #25435d;
  --red: #ff8d91;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; min-width: 250px; height: 100vh; position: sticky; top: 0; background: var(--sidebar); border-right: 1px solid var(--border); padding: 25px 17px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 7px; margin-bottom: 42px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: white; font-size: 25px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.5px; }
.brand em { color: var(--mint); font-style: normal; }
.brand small { display: block; color: #819aae; font-size: 9px; letter-spacing: 1.2px; margin-top: 4px; }
.menu-caption, .eyebrow { color: var(--mint); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.menu-caption { color: #7893a9; padding: 0 10px; margin-bottom: 13px; }
.side-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 11px; color: var(--muted); border-radius: 9px; font-size: 12px; transition: .2s; }
.nav-link span { width: 17px; text-align: center; font-size: 16px; }
.nav-link:hover, .nav-link.active { color: var(--mint); background: rgba(35,139,117,.17); }
.sidebar-note { margin-top: auto; padding: 15px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.note-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(102,214,181,.15); color: var(--mint); margin-bottom: 10px; font-weight: 700; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note p { color: var(--muted); font-size: 10px; line-height: 1.65; margin-top: 7px; }
.sidebar-footer { color: #8ca5b8; font-size: 10px; padding: 18px 5px 0; }
.online-dot { display: inline-block; width: 7px; height: 7px; background: #49c995; border-radius: 50%; margin-right: 6px; }
.main-content { flex: 1; min-width: 0; max-width: 1700px; margin: 0 auto; padding: 27px 34px 35px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }
.topbar h1 { font-size: 23px; margin-top: 6px; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.demo-pill { font-size: 10px; color: var(--muted); border: 1px solid var(--border); background: var(--panel); padding: 9px 12px; border-radius: 30px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 800; }
.hero { min-height: 270px; padding: 36px 40px; border: 1px solid #28665e; border-radius: 17px; background: linear-gradient(115deg,#102a43 0%,#124c50 100%); display: flex; justify-content: space-between; align-items: center; overflow: hidden; }
.hero-copy { max-width: 620px; }
.eyebrow.light { color: var(--mint); }
.hero h2 { font-size: clamp(28px,4vw,40px); line-height: 1.17; margin: 13px 0; letter-spacing: -1.2px; }
.hero h2 span { color: var(--mint); }
.hero p { color: #c2d4df; font-size: 12px; line-height: 1.8; max-width: 510px; margin-bottom: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; padding: 11px 16px; font-size: 11px; font-weight: 700; cursor: pointer; transition: .2s; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #2ba68a; transform: translateY(-1px); }
.button-secondary { background: rgba(102,214,181,.12); color: var(--mint); border: 1px solid rgba(102,214,181,.35); }
.button-secondary:hover { background: rgba(102,214,181,.2); }
.hero-art { width: 190px; height: 190px; margin-right: 55px; position: relative; display: grid; place-items: center; }
.hero-ring { width: 145px; height: 145px; border: 2px solid rgba(102,214,181,.55); border-radius: 50%; background: rgba(102,214,181,.13); display: grid; place-items: center; box-shadow: 0 0 55px rgba(102,214,181,.12); }
.hero-ring span { font-size: 74px; color: var(--mint); }
.hero-chip { position: absolute; right: -28px; bottom: 10px; background: #0b2238; color: var(--mint); border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px; font-size: 10px; }
.section-block { margin-top: 35px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2 { font-size: 19px; margin: 6px 0; }
.section-heading p { color: var(--muted); font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.stat-card, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 13px; }
.stat-card { padding: 17px; transition: .2s; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--green); }
.stat-symbol { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; font-size: 18px; margin-bottom: 13px; }
.stat-symbol.blue { color: #82c4ff; background: rgba(75,145,210,.15); }
.stat-symbol.green { color: var(--mint); background: rgba(35,139,117,.18); }
.stat-symbol.red { color: #ff9caa; background: rgba(220,90,110,.14); }
.stat-symbol.purple { color: #b8a0ff; background: rgba(151,116,230,.15); }
.stat-card p { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; font-size: 27px; margin: 6px 0 3px; }
.stat-card small { color: #7893a9; font-size: 9px; }
.panel { padding: 22px; }
.upload-layout { display: flex; align-items: flex-start; gap: 20px; }
.upload-illustration { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 13px; display: grid; place-items: center; background: rgba(35,139,117,.18); color: var(--mint); font-size: 25px; }
.upload-content { flex: 1; min-width: 0; }
.upload-content h3, .stock-panel h3 { font-size: 15px; margin: 2px 0 7px; }
.upload-content > p { color: var(--muted); font-size: 11px; line-height: 1.7; margin-bottom: 14px; }
.file-button { cursor: pointer; }
#fileInput { display: none; }
.field-hint { display: block; color: #829bad; font-size: 9px; line-height: 1.7; margin-top: 11px; }
.record-list { display: grid; gap: 8px; margin-top: 16px; }
.empty-state, .empty-cell { color: #8fa6b8; font-size: 11px; text-align: center; padding: 17px; }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; font-size: 11px; }
.record-row small { color: var(--muted); display: block; margin-top: 4px; }
.info-strip, .warning-strip { border-radius: 9px; padding: 12px 14px; font-size: 10px; line-height: 1.7; margin-top: 12px; }
.info-strip { color: #c2d4df; background: rgba(35,139,117,.1); border: 1px solid rgba(102,214,181,.2); }
.warning-strip { color: #f5d5a0; background: rgba(178,124,43,.12); border: 1px solid rgba(220,168,83,.25); margin-bottom: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; align-items: end; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field label { color: #d8e5ed; font-size: 10px; font-weight: 600; }
.form-field input, .form-field select, .chat-form input { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 8px; outline: none; background: var(--panel-2); color: var(--text); padding: 12px; font-size: 11px; }
.form-field input:focus, .form-field select:focus, .chat-form input:focus { border-color: var(--mint); }
.form-field input::placeholder, .chat-form input::placeholder { color: #7893a9; }
.form-field input[type="date"] { color-scheme: dark; }
.form-submit { min-height: 39px; justify-self: start; }
.full-width { grid-column: 1 / -1; }
.checkbox-label { display: flex !important; flex-direction: row; align-items: flex-start; gap: 9px; color: var(--muted) !important; line-height: 1.6; font-weight: 400 !important; }
.checkbox-label input { width: auto; margin-top: 2px; accent-color: var(--green); }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 590px; }
th { text-align: left; color: #8fa8bb; font-size: 9px; letter-spacing: .7px; text-transform: uppercase; padding: 12px 10px; border-bottom: 1px solid var(--border); }
td { color: #dce8ef; font-size: 10px; padding: 13px 10px; border-bottom: 1px solid rgba(37,67,93,.7); }
.status { display: inline-block; padding: 5px 8px; border-radius: 20px; font-size: 9px; }
.status.available, .status.good { color: var(--mint); background: rgba(35,139,117,.17); }
.status.low, .status.pending { color: #f4c47c; background: rgba(190,133,52,.15); }
.status.none { color: #ff9caa; background: rgba(220,90,110,.14); }
.text-button { border: 1px solid #754b50; color: #ff9b9b; background: transparent; border-radius: 6px; padding: 6px 9px; cursor: pointer; font-size: 9px; }
.demo-label { color: #f4c47c; font-size: 9px; letter-spacing: 1px; border: 1px solid rgba(244,196,124,.3); border-radius: 20px; padding: 7px 10px; white-space: nowrap; }
.blood-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.blood-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 15px; }
.blood-card .group { color: #ff9caa; font-size: 22px; font-weight: 800; }
.blood-card strong { display: block; font-size: 18px; margin: 7px 0 3px; }
.blood-card p { color: var(--muted); font-size: 9px; }
.stock-panel { margin-top: 16px; }
.compact-form { margin-top: 15px; grid-template-columns: 1fr 1fr auto; }
.chat-panel { padding: 0; overflow: hidden; }
.chat-heading { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.assistant-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--green); border-radius: 11px; font-size: 21px; }
.chat-heading strong { display: block; font-size: 12px; }
.chat-heading small { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; }
.chat-messages { min-height: 150px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.chat-bubble { max-width: 82%; padding: 12px 14px; border-radius: 10px; font-size: 11px; line-height: 1.7; }
.assistant-bubble { align-self: flex-start; background: var(--panel-2); color: #dce8ef; }
.user-bubble { align-self: flex-end; background: rgba(35,139,117,.28); color: white; }
.chat-form { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; }
.chat-note { padding: 0 18px 15px; margin-top: 0; }
.timeline-list { display: grid; gap: 0; }
.timeline-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline-row:last-child { border-bottom: 0; }
.timeline-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--mint); margin-top: 4px; }
.timeline-row strong { font-size: 11px; }
.timeline-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.government-banner { display: flex; align-items: center; gap: 15px; margin-top: 36px; padding: 20px; border-radius: 13px; border: 1px solid #28665e; background: linear-gradient(110deg,#102a43,#123d46); }
.gov-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: rgba(102,214,181,.14); font-size: 23px; }
.gov-copy { flex: 1; }
.gov-copy h3 { font-size: 14px; margin: 5px 0; }
.gov-copy p { color: var(--muted); font-size: 10px; }
.site-footer { margin-top: 28px; padding: 27px 24px 18px; background: var(--sidebar); border: 1px solid var(--border); border-radius: 13px; }
.footer-intro { max-width: 850px; margin: 0 auto 25px; text-align: center; }
.footer-intro h3 { color: var(--mint); font-size: 14px; margin-bottom: 10px; }
.footer-intro p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.footer-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 18px; padding-top: 19px; border-top: 1px solid var(--border); }
.footer-brand { text-align: left; }
.footer-brand h3 { color: var(--mint); font-size: 17px; margin-bottom: 5px; }
.footer-brand p, .footer-right p { color: var(--muted); font-size: 9px; line-height: 1.8; }
.footer-center { text-align: center; }
.footer-center h3 { color: #dce8ef; font-size: 13px; line-height: 1.8; }
.footer-right { text-align: right; }
@media (max-width: 1100px) {
  .sidebar { width: 220px; min-width: 220px; }
  .main-content { padding: 24px 22px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-art { margin-right: 25px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; min-width: 0; height: auto; padding: 15px; }
  .brand { margin-bottom: 15px; }
  .menu-caption, .sidebar-note, .sidebar-footer { display: none; }
  .side-nav { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .nav-link { white-space: nowrap; font-size: 10px; padding: 10px; }
  .main-content { padding: 19px 14px 25px; }
  .hero { padding: 27px 23px; }
  .hero-art { display: none; }
  .compact-form { grid-template-columns: 1fr 1fr; }
  .government-banner { flex-wrap: wrap; }
  .government-banner .button { margin-left: 60px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 15px; }
  .footer-brand, .footer-center, .footer-right { text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid, .blood-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topbar h1 { font-size: 19px; }
  .demo-pill { display: none; }
  .hero h2 { font-size: 29px; }
  .form-grid, .compact-form { grid-template-columns: 1fr; }
  .upload-layout { display: block; }
  .upload-illustration { margin-bottom: 14px; }
  .government-banner .button { margin-left: 0; }
  .section-heading { align-items: flex-start; }
}
