/** * style.css * --------- * Modern Glassmorphism & High-Precision Clinical Design System. * Dark Mode, Vibrant Accents, Responsive Grid & Fluid Typography. */ :root { --bg-main: #0B0F19; --bg-surface: rgba(17, 24, 39, 0.75); --bg-surface-hover: rgba(31, 41, 55, 0.85); --bg-card: rgba(15, 23, 42, 0.65); --border-color: rgba(255, 255, 255, 0.08); --border-highlight: rgba(99, 102, 241, 0.35); --primary: #6366F1; --primary-hover: #4F46E5; --primary-glow: rgba(99, 102, 241, 0.25); --cyan: #06B6D4; --emerald: #10B981; --emerald-glow: rgba(16, 185, 129, 0.2); --rose: #F43F5E; --amber: #F59E0B; --violet: #8B5CF6; --text-main: #F9FAFB; --text-muted: #9CA3AF; --text-subtle: #6B7280; --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif; --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px; --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-body); background-color: var(--bg-main); color: var(--text-main); min-height: 100vh; overflow-x: hidden; line-height: 1.5; -webkit-font-smoothing: antialiased; } /* Background Ambient Glow */ .app-background { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; } .glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.22; } .orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: 10%; } .orb-2 { width: 450px; height: 450px; background: var(--cyan); bottom: -100px; right: 5%; } .orb-3 { width: 350px; height: 350px; background: var(--violet); top: 40%; right: 35%; } /* App Header */ .app-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; } .header-brand { display: flex; align-items: center; gap: 1rem; } .brand-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--cyan)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #FFF; box-shadow: 0 0 20px var(--primary-glow); } .brand-title { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.5px; background: linear-gradient(120deg, #FFFFFF 30%, var(--cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .brand-subtitle { font-size: 0.8rem; color: var(--text-muted); } .header-status-group { display: flex; align-items: center; gap: 1.5rem; } .status-badge { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); border-radius: 999px; font-size: 0.8rem; color: var(--emerald); } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); } .status-dot.pulsing { animation: pulseGlow 1.8s infinite; } @keyframes pulseGlow { 0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { transform: scale(0.9); opacity: 0.6; } } .nav-tabs { display: flex; background: rgba(255, 255, 255, 0.04); padding: 0.25rem; border-radius: var(--radius-sm); border: 1px solid var(--border-color); gap: 0.25rem; } .nav-tab { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: transparent; border: none; color: var(--text-muted); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; } .nav-tab.active, .nav-tab:hover { color: #FFF; background: rgba(255, 255, 255, 0.08); } .nav-tab.active { background: var(--primary); box-shadow: 0 0 12px var(--primary-glow); } /* Main Container & Layout */ .main-container { max-width: 1560px; margin: 1.5rem auto; padding: 0 1.5rem; } .workspace-grid { display: grid; grid-template-columns: 460px 1fr; gap: 1.5rem; align-items: start; } @media (max-width: 1100px) { .workspace-grid { grid-template-columns: 1fr; } } /* Glass Card */ .glass-card { background: var(--bg-surface); backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-glass); padding: 1.5rem; position: relative; overflow: hidden; } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border-color); } .card-title-group { display: flex; align-items: center; gap: 0.85rem; } .step-num { width: 28px; height: 28px; background: rgba(99, 102, 241, 0.15); border: 1px solid var(--border-highlight); color: var(--primary); font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; border-radius: 6px; display: flex; align-items: center; justify-content: center; } .card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: #FFF; } .card-desc { font-size: 0.8rem; color: var(--text-muted); } /* Mode Toggle */ .input-mode-toggle { display: flex; background: rgba(0, 0, 0, 0.3); padding: 0.25rem; border-radius: var(--radius-sm); border: 1px solid var(--border-color); } .mode-btn { padding: 0.35rem 0.75rem; background: transparent; border: none; color: var(--text-muted); font-size: 0.8rem; font-weight: 500; border-radius: 5px; cursor: pointer; transition: all 0.2s; } .mode-btn.active { background: rgba(255, 255, 255, 0.1); color: #FFF; } /* Voice Studio Controls */ .voice-section { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; } .voice-config-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; } .config-field { display: flex; flex-direction: column; gap: 0.35rem; } .config-field label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; } .form-select, .form-textarea { background: rgba(15, 23, 42, 0.75); border: 1px solid var(--border-color); color: #FFF; border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; font-family: var(--font-body); font-size: 0.85rem; outline: none; transition: border 0.2s, box-shadow 0.2s; } .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); } .audio-source-switch { display: flex; background: rgba(0, 0, 0, 0.3); padding: 0.2rem; border-radius: var(--radius-sm); } .submode-btn { flex: 1; padding: 0.35rem; background: transparent; border: none; color: var(--text-muted); font-size: 0.75rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; } .submode-btn.active { background: rgba(255, 255, 255, 0.1); color: #FFF; } /* Mic Recorder Box */ .mic-recorder-box { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 0.75rem; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); } .visualizer-container { width: 100%; height: 70px; background: rgba(0, 0, 0, 0.4); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); overflow: hidden; } #waveform-canvas { width: 100%; height: 100%; } .record-actions { display: flex; align-items: center; gap: 1rem; } .btn-record { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.25rem; background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.35); color: #FFF; border-radius: 999px; font-weight: 500; cursor: pointer; transition: all 0.2s; } .btn-record:hover { background: rgba(244, 63, 94, 0.25); box-shadow: 0 0 16px rgba(244, 63, 94, 0.3); } .btn-record.recording { background: var(--rose); box-shadow: 0 0 20px rgba(244, 63, 94, 0.5); animation: pulseRose 1.5s infinite; } @keyframes pulseRose { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } } .record-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); } .btn-record.recording .record-dot { background: #FFF; } .record-time { font-family: monospace; font-size: 0.95rem; color: var(--text-muted); } .audio-player { width: 100%; height: 36px; margin-top: 0.5rem; } /* File Upload Zone */ .drop-zone { border: 2px dashed var(--border-color); border-radius: var(--radius-sm); padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-muted); } .drop-zone:hover { border-color: var(--primary); background: rgba(99, 102, 241, 0.05); } .file-tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; background: rgba(255, 255, 255, 0.08); border-radius: 4px; color: var(--cyan); } .transcribe-action-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; gap: 0.75rem; } /* Textarea */ .textarea-container { margin-bottom: 1rem; } .form-textarea { width: 100%; height: 140px; resize: vertical; line-height: 1.6; } /* Sample Pills */ .sample-pills-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1.25rem; } .sample-label { font-size: 0.75rem; color: var(--text-subtle); } .pill-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.72rem; padding: 0.25rem 0.55rem; border-radius: 999px; cursor: pointer; transition: all 0.2s; } .pill-btn:hover { color: #FFF; border-color: var(--cyan); background: rgba(6, 182, 212, 0.1); } /* Extraction Footer */ .extraction-footer { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); } .footer-config { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; } .config-field.mini label { font-size: 0.7rem; } .form-select.mini { padding: 0.4rem 0.6rem; font-size: 0.78rem; } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; border-radius: var(--radius-sm); padding: 0.65rem 1.25rem; border: none; cursor: pointer; transition: all 0.2s ease; } .btn-primary { background: linear-gradient(135deg, var(--primary), #4338CA); color: #FFF; box-shadow: 0 4px 16px var(--primary-glow); } .btn-primary:hover { background: linear-gradient(135deg, #4F46E5, #3730A3); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); transform: translateY(-1px); } .btn-secondary { background: rgba(255, 255, 255, 0.08); color: #FFF; border: 1px solid var(--border-color); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.15); } .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; } .btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); } .btn-ghost:hover { color: #FFF; background: rgba(255, 255, 255, 0.05); border-color: var(--primary); } /* Progress Pipeline */ .progress-pipeline { display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.3); padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--border-color); margin-bottom: 1.25rem; } .pipeline-step { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-subtle); transition: all 0.3s; } .pipeline-step.active { color: var(--cyan); font-weight: 600; } .pipeline-step.completed { color: var(--emerald); } .step-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; } .pipeline-step.active .step-icon { background: var(--cyan); color: #000; box-shadow: 0 0 10px rgba(6, 182, 212, 0.5); } .pipeline-step.completed .step-icon { background: var(--emerald); color: #000; } .pipeline-connector { flex: 1; height: 2px; background: var(--border-color); margin: 0 0.5rem; } /* Clinical Table */ .table-responsive { width: 100%; overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.2); min-height: 280px; } .clinical-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; text-align: left; } .clinical-table th { background: rgba(15, 23, 42, 0.9); padding: 0.75rem 0.85rem; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border-color); white-space: nowrap; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.5px; } .clinical-table td { padding: 0.65rem 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; } .clinical-table tbody tr { transition: background 0.15s; } .clinical-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); } .table-input { width: 100%; background: transparent; border: 1px solid transparent; color: #FFF; font-family: inherit; font-size: inherit; padding: 0.25rem 0.4rem; border-radius: 4px; transition: all 0.2s; } .table-input:hover { border-color: rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.2); } .table-input:focus { border-color: var(--primary); background: rgba(15, 23, 42, 0.8); outline: none; } .drug-name-cell { font-weight: 600; color: #FFF; } /* Route Badge */ .route-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; } .route-oral { background: rgba(99, 102, 241, 0.15); color: #818CF8; border: 1px solid rgba(99, 102, 241, 0.3); } .route-nasal { background: rgba(6, 182, 212, 0.15); color: #22D3EE; border: 1px solid rgba(6, 182, 212, 0.3); } .route-topical { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); } .route-ophthalmic { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); } .route-inhalation { background: rgba(244, 63, 94, 0.15); color: #FB7185; border: 1px solid rgba(244, 63, 94, 0.3); } .empty-state { text-align: center; padding: 4rem 1rem !important; color: var(--text-muted); } .empty-content { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; } .actions-col { width: 60px; text-align: center; } .btn-del-row { background: transparent; border: none; color: var(--text-subtle); cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: all 0.2s; } .btn-del-row:hover { color: var(--rose); background: rgba(244, 63, 94, 0.1); } /* Metrics Bar */ .metrics-bar { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; margin-top: 0.85rem; font-size: 0.75rem; color: var(--text-muted); } .metric-item strong { color: var(--cyan); } /* Toast */ .toast { position: fixed; bottom: 2rem; right: 2rem; padding: 0.75rem 1.25rem; background: rgba(15, 23, 42, 0.95); border: 1px solid var(--border-highlight); border-radius: var(--radius-sm); color: #FFF; font-size: 0.85rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); z-index: 999; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); } .hidden { display: none !important; }