381 lines
9.2 KiB
CSS
381 lines
9.2 KiB
CSS
/* ─── Reset ──────────────────────────────────────────────── */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
/* ─── Tokens ─────────────────────────────────────────────── */
|
|
:root {
|
|
--bg: #f0f2f5;
|
|
--surface: #ffffff;
|
|
--surface2: #f5f7fa;
|
|
--border: #dde1ea;
|
|
--border-hi: #c8cdd8;
|
|
--text: #1a1d2e;
|
|
--text-dim: #5a6080;
|
|
--text-muted: #a0a8c0;
|
|
--accent: #3b6ff0;
|
|
--green: #1fad6a;
|
|
--green-bg: #e6f9f1;
|
|
--red: #e03c3c;
|
|
--red-bg: #fdeaea;
|
|
--yellow: #d4a000;
|
|
--radius-lg: 12px;
|
|
--radius-sm: 8px;
|
|
--gap: 12px;
|
|
}
|
|
|
|
/* ─── Base ───────────────────────────────────────────────── */
|
|
html, body {
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ─── Container ──────────────────────────────────────────── */
|
|
.container {
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
padding: 32px 16px 72px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--gap);
|
|
}
|
|
|
|
/* ─── Panel (shared card shell) ──────────────────────────── */
|
|
.panel {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ─── Header ─────────────────────────────────────────────── */
|
|
.header {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 18px 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
letter-spacing: .01em;
|
|
}
|
|
.header-icon { font-size: 22px; }
|
|
|
|
/* ─── Names panel ────────────────────────────────────────── */
|
|
.names-panel {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 0;
|
|
}
|
|
.name-group {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
padding: 16px 20px;
|
|
}
|
|
.divider-v {
|
|
width: 1px;
|
|
background: var(--border);
|
|
align-self: stretch;
|
|
}
|
|
|
|
label {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
color: var(--text-dim);
|
|
}
|
|
input[type="text"],
|
|
select {
|
|
background: var(--surface2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
padding: 8px 11px;
|
|
width: 100%;
|
|
outline: none;
|
|
transition: border-color .15s;
|
|
}
|
|
input[type="text"]::placeholder { color: var(--text-muted); }
|
|
input[type="text"]:focus,
|
|
select:focus { border-color: var(--accent); }
|
|
select { cursor: pointer; }
|
|
select option { background: var(--surface2); }
|
|
|
|
/* ─── Recording panel ────────────────────────────────────── */
|
|
.rec-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 28px 24px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Live badge */
|
|
.live-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: .1em;
|
|
color: var(--red);
|
|
opacity: 0;
|
|
transition: opacity .3s;
|
|
}
|
|
.live-badge.on { opacity: 1; }
|
|
|
|
.live-dot {
|
|
width: 9px; height: 9px;
|
|
border-radius: 50%;
|
|
background: var(--red);
|
|
animation: blink 1s ease-in-out infinite;
|
|
}
|
|
@keyframes blink { 50% { opacity: .2; } }
|
|
|
|
/* Timer */
|
|
.timer {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: .03em;
|
|
}
|
|
|
|
/* Status text */
|
|
.status-text {
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
}
|
|
.status-text.ok { color: var(--green); }
|
|
.status-text.bad { color: var(--red); }
|
|
|
|
/* Error box */
|
|
.rec-error {
|
|
width: 100%;
|
|
background: var(--red-bg);
|
|
border: 1px solid #5a1e1e;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--red);
|
|
font-size: 12.5px;
|
|
padding: 9px 14px;
|
|
text-align: left;
|
|
}
|
|
|
|
/* Rec buttons row */
|
|
.rec-btns {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ─── Buttons ────────────────────────────────────────────── */
|
|
.btn {
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: .05em;
|
|
padding: 11px 24px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: filter .15s, transform .1s;
|
|
white-space: nowrap;
|
|
}
|
|
.btn:active { transform: scale(.97); }
|
|
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
|
|
|
|
.btn-start {
|
|
background: var(--green);
|
|
color: #ffffff;
|
|
}
|
|
.btn-start:not(:disabled):hover { filter: brightness(1.1); }
|
|
|
|
.btn-stop {
|
|
background: var(--red);
|
|
color: #fff;
|
|
}
|
|
.btn-stop:not(:disabled):hover { filter: brightness(1.1); }
|
|
|
|
.btn-generate {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
padding: 13px 32px;
|
|
flex: 1;
|
|
}
|
|
.btn-generate:not(:disabled):hover { filter: brightness(1.1); }
|
|
|
|
.btn-reset {
|
|
background: transparent;
|
|
color: var(--text-dim);
|
|
border: 1px solid var(--border-hi);
|
|
padding: 13px 20px;
|
|
}
|
|
.btn-reset:hover { color: var(--text); border-color: var(--text-dim); }
|
|
|
|
/* ─── Panel heading (TRANSCRIPT / MEDICAL SUMMARY) ───────── */
|
|
.panel-heading {
|
|
background: var(--surface2);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 10px 20px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .12em;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* ─── Transcript panel ───────────────────────────────────── */
|
|
.transcript-panel { /* uses .panel */ }
|
|
|
|
.transcript-scroll {
|
|
padding: 18px 20px;
|
|
min-height: 160px;
|
|
max-height: 380px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
|
|
.placeholder-text {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Processing state */
|
|
.processing-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: var(--text-dim);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Utterance block */
|
|
.utt {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.utt-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.utt-icon { font-size: 16px; }
|
|
.utt-name {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
}
|
|
.utt-name.patient { color: var(--green); }
|
|
.utt-ts {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.utt-text {
|
|
font-size: 14.5px;
|
|
line-height: 1.7;
|
|
color: var(--text);
|
|
padding-left: 22px;
|
|
}
|
|
|
|
/* ─── Generate panel ─────────────────────────────────────── */
|
|
.generate-panel {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 16px 20px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
/* ─── Summary panel ──────────────────────────────────────── */
|
|
.summary-panel { /* uses .panel */ }
|
|
|
|
.summary-body {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.summary-row {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.summary-row:last-child { border-bottom: none; }
|
|
|
|
.s-key {
|
|
flex: 0 0 160px;
|
|
padding: 13px 20px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .06em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
background: var(--surface2);
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
.s-val {
|
|
flex: 1;
|
|
padding: 13px 20px;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
line-height: 1.65;
|
|
}
|
|
.s-val ul {
|
|
padding-left: 18px;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Loading spinner */
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 14px; height: 14px;
|
|
border: 2px solid var(--border-hi);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin .7s linear infinite;
|
|
flex-shrink: 0;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.summary-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 18px 20px;
|
|
color: var(--text-dim);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ─── Scrollbar ──────────────────────────────────────────── */
|
|
::-webkit-scrollbar { width: 4px; }
|
|
::-webkit-scrollbar-track { background: var(--surface2); }
|
|
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 99px; }
|
|
|
|
/* ─── Responsive ─────────────────────────────────────────── */
|
|
@media (max-width: 520px) {
|
|
.names-panel { flex-direction: column; }
|
|
.divider-v { width: 100%; height: 1px; align-self: auto; }
|
|
.header { font-size: 14px; }
|
|
.timer { font-size: 22px; }
|
|
.s-key { flex: 0 0 120px; }
|
|
}
|