Files
Doctor_Patient_Summary/public/style.css
T

1520 lines
31 KiB
CSS

/* ══════════════════════════════════════════════════════════════════
AI CLINICAL ASSISTANT — MODERN CLINICAL DESIGN SYSTEM
══════════════════════════════════════════════════════════════════ */
:root {
/* Color Palette */
--sidebar-bg: #0b1329;
--sidebar-card: #131d3b;
--sidebar-hover: #17244a;
--sidebar-border: #1e2d56;
--sidebar-text: #94a3b8;
--sidebar-text-active: #ffffff;
--primary-blue: #2563eb;
--primary-blue-hover: #1d4ed8;
--primary-glow: rgba(37, 99, 235, 0.25);
--green-rec: #10b981;
--green-rec-hover: #059669;
--red-stop: #f87171;
--red-stop-hover: #ef4444;
--amber-upload: #f59e0b;
--amber-upload-hover: #d97706;
--bg-app: #f1f5f9;
--card-bg: #ffffff;
--card-border: #e2e8f0;
--card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
--card-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
--text-main: #1e293b;
--text-muted: #64748b;
--text-light: #94a3b8;
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-full: 9999px;
--font-sans: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
background-color: var(--bg-app);
color: var(--text-main);
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/* ══════════════════════════════════════════════════════════════════
LAYOUT
══════════════════════════════════════════════════════════════════ */
.layout-container {
display: flex;
min-height: 100vh;
width: 100%;
}
/* ══════════════════════════════════════════════════════════════════
SIDEBAR
══════════════════════════════════════════════════════════════════ */
.sidebar {
width: 250px;
min-width: 250px;
background-color: var(--sidebar-bg);
color: var(--sidebar-text);
display: flex;
flex-direction: column;
border-right: 1px solid var(--sidebar-border);
position: sticky;
top: 0;
height: 100vh;
z-index: 100;
transition: transform 0.25s ease, width 0.25s ease;
}
.sidebar-brand {
padding: 22px 18px 20px;
display: flex;
align-items: center;
gap: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand-icon-box {
width: 44px;
height: 44px;
background: #ffffff;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
flex-shrink: 0;
overflow: hidden;
}
.brand-logo-img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
}
.brand-title {
font-size: 15px;
font-weight: 700;
color: #ffffff;
letter-spacing: -0.01em;
line-height: 1.2;
}
.brand-subtitle {
font-size: 11px;
color: #60a5fa;
font-weight: 500;
display: block;
margin-top: 2px;
}
/* Navigation Links */
.sidebar-nav {
padding: 16px 12px;
display: flex;
flex-direction: column;
gap: 5px;
flex: 1;
overflow-y: auto;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
border-radius: var(--radius-md);
color: #94a3b8;
text-decoration: none;
font-size: 13.5px;
font-weight: 500;
transition: all 0.18s ease;
position: relative;
}
.nav-item:hover {
background-color: var(--sidebar-hover);
color: #f1f5f9;
}
.nav-item.active {
background: linear-gradient(90deg, #2563eb, #1d4ed8);
color: #ffffff;
font-weight: 600;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.nav-icon {
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
width: 20px;
}
.nav-label {
flex: 1;
}
/* Sidebar Footer / Online Status */
.sidebar-footer {
padding: 14px 12px 18px;
}
.system-status-card {
background: var(--sidebar-card);
border: 1px solid var(--sidebar-border);
border-radius: var(--radius-md);
padding: 12px 14px;
}
.status-indicator-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.status-pulse-dot {
width: 8px;
height: 8px;
background-color: #10b981;
border-radius: 50%;
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
animation: pulse-green 2s infinite ease-in-out;
}
@keyframes pulse-green {
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.status-title {
font-size: 12px;
font-weight: 700;
color: #ffffff;
}
.status-meta {
font-size: 11px;
color: #94a3b8;
}
.status-tag {
font-size: 10px;
color: #38bdf8;
font-weight: 600;
margin-top: 2px;
}
/* ══════════════════════════════════════════════════════════════════
MAIN WRAPPER & TOP HEADER
══════════════════════════════════════════════════════════════════ */
.main-wrapper {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.top-header {
height: 64px;
background-color: #ffffff;
border-bottom: 1px solid var(--card-border);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24px;
position: sticky;
top: 0;
z-index: 90;
}
.header-left {
display: flex;
align-items: center;
gap: 14px;
}
.header-logo-badge {
display: flex;
align-items: center;
gap: 8px;
background: #ffffff;
border: 1px solid #e2e8f0;
padding: 4px 10px 4px 6px;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.header-logo-img {
height: 28px;
width: auto;
max-width: 42px;
object-fit: contain;
display: block;
}
.header-hospital-name {
font-size: 13px;
font-weight: 800;
color: #dc2626;
letter-spacing: 0.05em;
line-height: 1;
}
.header-divider-v {
width: 1px;
height: 22px;
background-color: #e2e8f0;
}
.menu-toggle-btn {
display: none;
background: transparent;
border: none;
color: var(--text-muted);
cursor: pointer;
padding: 6px;
border-radius: var(--radius-sm);
}
.menu-toggle-btn:hover {
background-color: #f1f5f9;
color: var(--text-main);
}
.page-title {
font-size: 17px;
font-weight: 700;
color: #0f172a;
letter-spacing: -0.01em;
}
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
/* Language Dropdown */
.lang-selector-wrapper {
position: relative;
display: flex;
align-items: center;
background: #f8fafc;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md);
padding: 0 10px 0 10px;
height: 36px;
cursor: pointer;
transition: border-color 0.15s;
}
.lang-selector-wrapper:hover {
border-color: #94a3b8;
}
.lang-globe-icon {
font-size: 14px;
margin-right: 6px;
}
.lang-dropdown {
appearance: none;
background: transparent;
border: none;
outline: none;
font-family: inherit;
font-size: 12.5px;
font-weight: 600;
color: #334155;
cursor: pointer;
padding-right: 18px;
}
.dropdown-arrow {
position: absolute;
right: 10px;
font-size: 11px;
color: #64748b;
pointer-events: none;
}
/* Notification Button */
.notif-btn {
position: relative;
width: 36px;
height: 36px;
background: #f8fafc;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.15s;
}
.notif-btn:hover {
background: #f1f5f9;
}
.notif-icon {
font-size: 16px;
}
.notif-badge {
position: absolute;
top: -4px;
right: -4px;
background: #ef4444;
color: #ffffff;
font-size: 10px;
font-weight: 700;
width: 17px;
height: 17px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #ffffff;
}
/* Doctor Profile */
.doctor-profile-card {
display: flex;
align-items: center;
gap: 10px;
padding-left: 8px;
border-left: 1px solid #e2e8f0;
}
.doctor-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #dbeafe;
}
.doctor-meta {
display: flex;
flex-direction: column;
}
.doctor-name {
font-size: 13px;
font-weight: 700;
color: #0f172a;
line-height: 1.2;
}
.doctor-spec {
font-size: 11px;
color: #64748b;
font-weight: 500;
}
/* ══════════════════════════════════════════════════════════════════
CONTENT AREA & CARDS
══════════════════════════════════════════════════════════════════ */
.content-area {
padding: 24px;
max-width: 1400px;
width: 100%;
margin: 0 auto;
}
.tab-view {
display: none;
flex-direction: column;
gap: 18px;
}
.tab-view.active {
display: flex;
}
/* Base Card */
.card {
background-color: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius-lg);
padding: 20px 22px;
box-shadow: var(--card-shadow);
transition: box-shadow 0.2s;
}
.card:hover {
box-shadow: var(--card-shadow-hover);
}
.card-header-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.card-title-group {
display: flex;
align-items: center;
gap: 8px;
}
.card-header-icon {
font-size: 16px;
}
.card-title {
font-size: 14.5px;
font-weight: 700;
color: #0f172a;
letter-spacing: -0.01em;
}
.card-title-section {
font-size: 12px;
font-weight: 800;
color: #475569;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.btn-link-action {
background: transparent;
border: none;
color: var(--primary-blue);
font-family: inherit;
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: color 0.15s;
}
.btn-link-action:hover {
color: var(--primary-blue-hover);
text-decoration: underline;
}
/* ══════════════════════════════════════════════════════════════════
CARD 1: CONSULTATION DETAILS FORM
══════════════════════════════════════════════════════════════════ */
.details-form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-label {
font-size: 11.5px;
font-weight: 600;
color: #64748b;
}
.input-icon-box {
position: relative;
display: flex;
align-items: center;
background: #f8fafc;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md);
padding: 0 12px;
height: 42px;
transition: border-color 0.15s, box-shadow 0.15s;
}
.input-icon-box:focus-within {
border-color: var(--primary-blue);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
background: #ffffff;
}
.input-icon {
font-size: 14px;
margin-right: 8px;
opacity: 0.7;
}
.input-icon-box input,
.input-icon-box select {
width: 100%;
border: none;
outline: none;
background: transparent;
font-family: inherit;
font-size: 13.5px;
color: #0f172a;
font-weight: 500;
}
.input-icon-box input::placeholder {
color: #94a3b8;
font-weight: 400;
}
.select-box select {
appearance: none;
cursor: pointer;
padding-right: 18px;
}
.select-chevron {
position: absolute;
right: 12px;
font-size: 11px;
color: #64748b;
pointer-events: none;
}
/* ══════════════════════════════════════════════════════════════════
CARD 2: LIVE RECORDING & CONTROLS
══════════════════════════════════════════════════════════════════ */
.recording-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 28px 24px;
text-align: center;
}
.rec-status-line {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-bottom: 6px;
}
.rec-pulse-bubble {
width: 12px;
height: 12px;
background-color: #cbd5e1;
border-radius: 50%;
transition: all 0.2s;
}
.recording-card.is-recording .rec-pulse-bubble {
background-color: #ef4444;
box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
animation: pulse-red 1.2s infinite ease-in-out;
}
@keyframes pulse-red {
0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.timer-display {
font-family: var(--font-mono);
font-size: 34px;
font-weight: 700;
color: #0f172a;
letter-spacing: -0.02em;
}
.rec-substatus {
font-size: 13px;
color: #64748b;
font-weight: 500;
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 14px;
}
.recording-card.is-recording .rec-substatus {
color: #2563eb;
font-weight: 600;
}
.mic-glyph {
font-size: 14px;
}
/* Audio Waveform Canvas */
.visualizer-container {
width: 100%;
max-width: 520px;
height: 38px;
margin: 0 auto 20px;
display: flex;
align-items: center;
justify-content: center;
opacity: 0.25;
transition: opacity 0.3s;
}
.recording-card.is-recording .visualizer-container {
opacity: 1;
}
#waveformCanvas {
width: 100%;
height: 100%;
}
.rec-error-banner {
background: #fef2f2;
border: 1px solid #fecaca;
color: #b91c1c;
padding: 8px 16px;
border-radius: var(--radius-md);
font-size: 12.5px;
margin-bottom: 16px;
font-weight: 500;
}
/* Action Buttons Bar */
.action-buttons-row {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
}
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 11px 22px;
border-radius: var(--radius-full);
font-family: inherit;
font-size: 13px;
font-weight: 700;
border: none;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
transform: none !important;
box-shadow: none !important;
}
/* Start Button */
.btn-record {
background: linear-gradient(135deg, #10b981, #059669);
color: #ffffff;
}
.btn-record:not(:disabled):hover {
background: linear-gradient(135deg, #059669, #047857);
box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
transform: translateY(-1px);
}
/* Stop Button */
.btn-stop {
background: linear-gradient(135deg, #f87171, #ef4444);
color: #ffffff;
}
.btn-stop:not(:disabled):hover {
background: linear-gradient(135deg, #ef4444, #dc2626);
box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
transform: translateY(-1px);
}
/* Upload Audio Button */
.btn-upload {
background: #ffffff;
border: 1px solid #fcd34d;
color: #b45309;
}
.btn-upload:hover {
background: #fffbeb;
border-color: #f59e0b;
}
/* Demo Button */
.btn-demo {
background: #ffffff;
border: 1px solid #cbd5e1;
color: #475569;
}
.btn-demo:hover {
background: #f8fafc;
border-color: #94a3b8;
color: #0f172a;
}
.btn-icon {
font-size: 13px;
}
/* ══════════════════════════════════════════════════════════════════
CARD 3: TRANSCRIPT
══════════════════════════════════════════════════════════════════ */
.header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.btn-sm-action {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: var(--radius-sm);
padding: 5px 10px;
font-size: 12px;
font-weight: 600;
color: #475569;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 4px;
transition: all 0.15s;
}
.btn-sm-action:hover {
background: #f1f5f9;
color: #0f172a;
}
/* Real-time Live Badge */
.live-realtime-badge {
display: inline-flex;
align-items: center;
gap: 5px;
background: #ecfdf5;
color: #059669;
border: 1px solid #a7f3d0;
font-size: 11px;
font-weight: 700;
padding: 2px 8px;
border-radius: var(--radius-full);
}
.live-blink-dot {
width: 6px;
height: 6px;
background-color: #10b981;
border-radius: 50%;
animation: pulse-green 1s infinite;
}
/* Transcript Search */
.transcript-search-box {
display: flex;
align-items: center;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: var(--radius-sm);
padding: 0 8px;
height: 28px;
}
.transcript-search-box .search-icon {
font-size: 11px;
opacity: 0.6;
margin-right: 4px;
}
.transcript-search-box input {
border: none;
outline: none;
font-size: 12px;
font-family: inherit;
width: 130px;
background: transparent;
color: #0f172a;
}
/* Audio Playback & Sync Control Bar */
.audio-playback-bar {
display: flex;
align-items: center;
gap: 12px;
background: #f1f5f9;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md);
padding: 10px 14px;
margin-bottom: 12px;
}
.btn-play-pause {
width: 38px;
height: 38px;
border-radius: 50%;
background: linear-gradient(135deg, #2563eb, #1d4ed8);
color: #ffffff;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
transition: transform 0.15s, background 0.15s;
flex-shrink: 0;
}
.btn-play-pause:hover {
transform: scale(1.05);
background: #1d4ed8;
}
.audio-progress-container {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.audio-scrubber {
width: 100%;
height: 6px;
accent-color: #2563eb;
cursor: pointer;
}
.audio-time-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 11px;
font-family: var(--font-mono);
color: #64748b;
}
.sync-hint {
font-family: var(--font-sans);
font-size: 11px;
color: #3b82f6;
font-weight: 600;
}
/* Filter Bar */
.transcript-filter-bar {
display: flex;
gap: 6px;
margin-bottom: 12px;
}
.filter-pill {
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: var(--radius-full);
padding: 4px 12px;
font-size: 11.5px;
font-weight: 600;
color: #475569;
cursor: pointer;
transition: all 0.15s;
}
.filter-pill:hover {
background: #f8fafc;
color: #0f172a;
}
.filter-pill.active {
background: #2563eb;
color: #ffffff;
border-color: #2563eb;
}
/* Transcript Scroll Viewport */
.transcript-viewport {
min-height: 180px;
max-height: 440px;
overflow-y: auto;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: var(--radius-md);
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
scroll-behavior: smooth;
}
.transcript-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 28px 16px;
text-align: center;
color: #94a3b8;
margin: auto;
}
.placeholder-icon {
font-size: 26px;
margin-bottom: 8px;
opacity: 0.6;
}
.transcript-placeholder p {
font-size: 13.5px;
font-weight: 600;
color: #64748b;
}
.placeholder-sub {
font-size: 12px;
color: #94a3b8;
margin-top: 4px;
max-width: 480px;
}
/* Dialogue Utterances */
.utterance-item {
display: flex;
gap: 12px;
padding: 12px 14px;
border-radius: var(--radius-md);
background: #ffffff;
border: 1px solid #e2e8f0;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
cursor: pointer;
transition: all 0.2s ease;
}
.utterance-item:hover {
border-color: #93c5fd;
box-shadow: 0 3px 8px rgba(37, 99, 235, 0.08);
}
.utterance-item.doctor {
border-left: 4px solid #2563eb;
}
.utterance-item.patient {
border-left: 4px solid #10b981;
}
.utterance-item.relative {
border-left: 4px solid #8b5cf6;
}
.utterance-item.nurse {
border-left: 4px solid #f59e0b;
}
/* Active Playing Karaoke Glow */
.utterance-item.active-playing {
background: #eff6ff !important;
border-color: #3b82f6 !important;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(37, 99, 235, 0.15) !important;
transform: translateX(4px);
}
.utterance-avatar {
font-size: 20px;
margin-top: 2px;
}
.utterance-content {
flex: 1;
}
.utterance-meta {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.utterance-speaker {
font-size: 12.5px;
font-weight: 700;
color: #0f172a;
}
.utterance-speaker.doctor-color { color: #2563eb; }
.utterance-speaker.patient-color { color: #059669; }
.utterance-speaker.relative-color { color: #7c3aed; }
.utterance-speaker.nurse-color { color: #d97706; }
.utterance-time {
font-size: 11px;
font-family: var(--font-mono);
color: #94a3b8;
background: #f1f5f9;
padding: 1px 6px;
border-radius: 4px;
}
.utterance-lang-badge {
font-size: 10px;
background: #eff6ff;
color: #2563eb;
padding: 2px 6px;
border-radius: 4px;
font-weight: 600;
}
.utterance-text {
font-size: 13.5px;
color: #1e293b;
line-height: 1.6;
}
/* Live Interim Text Stream */
.utterance-item.live-streaming {
opacity: 0.9;
border-style: dashed;
}
/* ══════════════════════════════════════════════════════════════════
CARD 4: AI CLINICAL SUMMARY
══════════════════════════════════════════════════════════════════ */
.summary-content-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
}
.summary-col-card {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: var(--radius-md);
padding: 14px 16px;
display: flex;
flex-direction: column;
}
.summary-col-card.full-span {
grid-column: 1 / -1;
}
.summary-col-card.highlight-plan {
background: #f0fdf4;
border-color: #bbf7d0;
}
.col-card-header {
font-size: 11px;
font-weight: 800;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 8px;
border-bottom: 1px solid #e2e8f0;
padding-bottom: 6px;
}
.highlight-plan .col-card-header {
color: #15803d;
border-bottom-color: #bbf7d0;
}
.col-card-body {
font-size: 13.5px;
color: #1e293b;
line-height: 1.6;
}
.empty-field {
color: #94a3b8;
font-style: italic;
}
/* Symptoms Tags List */
.symptom-tag-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.symptom-tag {
background: #fee2e2;
color: #b91c1c;
font-size: 12px;
font-weight: 600;
padding: 4px 10px;
border-radius: var(--radius-full);
display: inline-flex;
align-items: center;
gap: 4px;
}
.plan-item-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
}
.plan-item-list li {
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 13.5px;
}
.plan-item-list li::before {
content: '✓';
color: #16a34a;
font-weight: 800;
margin-top: 1px;
}
/* ══════════════════════════════════════════════════════════════════
DASHBOARD & OTHER VIEWS
══════════════════════════════════════════════════════════════════ */
.dash-stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.dash-stat-card {
background: #ffffff;
border: 1px solid var(--card-border);
border-radius: var(--radius-lg);
padding: 18px 20px;
display: flex;
align-items: center;
gap: 14px;
box-shadow: var(--card-shadow);
}
.stat-icon-wrap {
width: 44px;
height: 44px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.stat-icon-wrap.blue { background: #dbeafe; color: #2563eb; }
.stat-icon-wrap.green { background: #dcfce7; color: #16a34a; }
.stat-icon-wrap.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon-wrap.amber { background: #fef3c7; color: #d97706; }
.stat-info {
display: flex;
flex-direction: column;
}
.stat-num {
font-size: 20px;
font-weight: 800;
color: #0f172a;
}
.stat-name {
font-size: 12px;
color: #64748b;
font-weight: 500;
}
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
/* Data Tables */
.recent-table-wrap {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
.data-table th {
background: #f8fafc;
padding: 10px 14px;
font-size: 11.5px;
font-weight: 700;
color: #64748b;
border-bottom: 1px solid #e2e8f0;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.data-table td {
padding: 12px 14px;
border-bottom: 1px solid #f1f5f9;
font-size: 13px;
color: #334155;
}
.badge-lang {
background: #eff6ff;
color: #2563eb;
padding: 3px 8px;
border-radius: 4px;
font-size: 11.5px;
font-weight: 600;
}
.table-btn {
background: #eff6ff;
color: #2563eb;
border: 1px solid #bfdbfe;
padding: 4px 10px;
border-radius: var(--radius-sm);
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.table-btn:hover {
background: #2563eb;
color: #ffffff;
}
/* Doctors Grid */
.doctors-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.doctor-card-box {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: var(--radius-md);
padding: 18px;
text-align: center;
}
.doc-badge-avatar {
font-size: 32px;
margin-bottom: 8px;
}
.doctor-card-box h4 {
font-size: 15px;
color: #0f172a;
margin-bottom: 2px;
}
.doc-spec {
font-size: 12px;
color: #2563eb;
font-weight: 600;
}
.doc-dep {
font-size: 11px;
color: #64748b;
display: block;
margin-top: 4px;
}
/* ══════════════════════════════════════════════════════════════════
MODAL & TOAST
══════════════════════════════════════════════════════════════════ */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(4px);
display: none;
align-items: center;
justify-content: center;
z-index: 200;
}
.modal-overlay.open {
display: flex;
}
.modal-card {
background: #ffffff;
border-radius: var(--radius-lg);
width: 90%;
max-width: 480px;
padding: 24px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
padding-bottom: 12px;
border-bottom: 1px solid #e2e8f0;
}
.modal-header h3 {
font-size: 16px;
font-weight: 700;
color: #0f172a;
}
.modal-close-btn {
background: transparent;
border: none;
font-size: 20px;
color: #64748b;
cursor: pointer;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 20px;
padding-top: 14px;
border-top: 1px solid #e2e8f0;
}
.btn-cancel {
background: #f1f5f9;
border: none;
padding: 8px 16px;
border-radius: var(--radius-md);
color: #475569;
font-weight: 600;
cursor: pointer;
}
.btn-save-patient {
background: #2563eb;
border: none;
padding: 8px 18px;
border-radius: var(--radius-md);
color: #ffffff;
font-weight: 700;
cursor: pointer;
}
.btn-primary-sm {
background: #2563eb;
color: #ffffff;
border: none;
padding: 6px 14px;
border-radius: var(--radius-md);
font-weight: 600;
font-size: 12.5px;
cursor: pointer;
}
.input-row-flex {
display: flex;
gap: 10px;
}
.input-row-flex input,
.input-row-flex select,
.modal-body input,
.modal-body select {
background: #f8fafc;
border: 1px solid #cbd5e1;
border-radius: var(--radius-md);
padding: 9px 12px;
font-family: inherit;
font-size: 13px;
color: #0f172a;
outline: none;
}
.modal-body input:focus,
.modal-body select:focus {
border-color: #2563eb;
}
/* Toast */
.toast-notification {
position: fixed;
bottom: 24px;
right: 24px;
background: #0f172a;
color: #ffffff;
padding: 12px 20px;
border-radius: var(--radius-md);
font-size: 13px;
font-weight: 600;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
transform: translateY(100px);
opacity: 0;
transition: all 0.3s ease;
z-index: 300;
}
.toast-notification.show {
transform: translateY(0);
opacity: 1;
}
/* ══════════════════════════════════════════════════════════════════
RESPONSIVE DESIGN
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
.details-form-grid {
grid-template-columns: repeat(2, 1fr);
}
.summary-content-grid {
grid-template-columns: repeat(2, 1fr);
}
.dash-stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.doctors-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.menu-toggle-btn {
display: block;
}
.sidebar {
position: fixed;
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
.details-form-grid {
grid-template-columns: 1fr;
}
.summary-content-grid {
grid-template-columns: 1fr;
}
.dash-stats-grid {
grid-template-columns: 1fr;
}
.doctor-profile-card .doctor-meta {
display: none;
}
}