/* ═══════════════════════════════════════════════════════════ OT Note Builder — Design System ═══════════════════════════════════════════════════════════ */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); /* ── CSS Custom Properties (Design Tokens) ── */ :root { /* Green accent palette */ --accent-50: #ecfdf5; --accent-100: #d1fae5; --accent-200: #a7f3d0; --accent-300: #6ee7b7; --accent-400: #34d399; --accent-500: #10b981; --accent-600: #059669; --accent-700: #047857; --accent-800: #065f46; --accent-900: #064e3b; /* Neutrals */ --neutral-50: #f9fafb; --neutral-100: #f3f4f6; --neutral-200: #e5e7eb; --neutral-300: #d1d5db; --neutral-400: #9ca3af; --neutral-500: #6b7280; --neutral-600: #4b5563; --neutral-700: #374151; --neutral-800: #1f2937; --neutral-900: #111827; --neutral-950: #030712; /* Semantic */ --danger: #ef4444; --warning: #f59e0b; --info: #3b82f6; /* Typography */ --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-xs: 0.75rem; --font-sm: 0.8125rem; --font-base: 0.875rem; --font-md: 1rem; --font-lg: 1.125rem; --font-xl: 1.25rem; --font-2xl: 1.5rem; --font-3xl: 1.875rem; /* Spacing */ --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; /* Radius */ --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-full: 9999px; /* Shadows */ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* Transitions */ --transition-fast: 150ms ease; --transition-base: 200ms ease; --transition-slow: 300ms ease; /* Layout */ --sidebar-width: 280px; --navbar-height: 64px; } /* ── Theme Transition ── Applied briefly via JS to create a single smooth crossfade. Without this class, theme swaps are instant (no jank). */ .theme-transitioning, .theme-transitioning *, .theme-transitioning *::before, .theme-transitioning *::after { transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, box-shadow 400ms ease, fill 400ms ease, stroke 400ms ease !important; } /* ── Light Theme (default) ── */ [data-theme="light"] { color-scheme: light; --bg-primary: #ffffff; --bg-secondary: var(--neutral-50); --bg-tertiary: var(--neutral-100); --bg-elevated: #ffffff; --bg-overlay: rgba(0, 0, 0, 0.5); --text-primary: var(--neutral-900); --text-secondary: var(--neutral-600); --text-tertiary: var(--neutral-400); --text-inverse: #ffffff; --border-primary: var(--neutral-200); --border-secondary: var(--neutral-100); --border-focus: var(--accent-500); --surface-card: #ffffff; --surface-card-hover: var(--neutral-50); --surface-input: #ffffff; --glass-bg: rgba(255, 255, 255, 0.8); --glass-border: rgba(255, 255, 255, 0.3); --option-bg: var(--neutral-100); --option-hover: var(--neutral-200); --option-selected-bg: var(--accent-50); --option-selected-border: var(--accent-500); --option-selected-text: var(--accent-700); --checkbox-bg: var(--neutral-100); --checkbox-checked-bg: var(--accent-500); --scrollbar-track: var(--neutral-100); --scrollbar-thumb: var(--neutral-300); --sidebar-bg: var(--neutral-50); --navbar-bg: #ffffff; --navbar-border: var(--neutral-200); } /* ── Dark Theme ── */ [data-theme="dark"] { color-scheme: dark; --bg-primary: #0a0f1a; --bg-secondary: #0f1629; --bg-tertiary: #151d35; --bg-elevated: #1a2340; --bg-overlay: rgba(0, 0, 0, 0.7); --text-primary: #e8ecf4; --text-secondary: #94a3b8; --text-tertiary: #64748b; --text-inverse: #0a0f1a; --border-primary: #1e2d4a; --border-secondary: #162036; --border-focus: var(--accent-400); --surface-card: #111a30; --surface-card-hover: #162040; --surface-input: #0f1629; --glass-bg: rgba(17, 26, 48, 0.85); --glass-border: rgba(30, 45, 74, 0.5); --option-bg: #151d35; --option-hover: #1a2545; --option-selected-bg: rgba(16, 185, 129, 0.12); --option-selected-border: var(--accent-500); --option-selected-text: var(--accent-400); --checkbox-bg: #1a2340; --checkbox-checked-bg: var(--accent-500); --scrollbar-track: #0f1629; --scrollbar-thumb: #1e2d4a; --sidebar-bg: #0c1220; --navbar-bg: #0c1220; --navbar-border: #1e2d4a; } /* ── Global Reset ── */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: var(--font-family); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; } #root { min-height: 100vh; } /* ── Instant theme swap — disables ALL transitions during toggle ── */ .theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; animation-duration: 0s !important; } /* ── Scrollbar ── */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--scrollbar-track); } ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: var(--radius-full); } ::-webkit-scrollbar-thumb:hover { background: var(--accent-500); } /* ═══════════════════════════════════════════════════════════ Layout ═══════════════════════════════════════════════════════════ */ .app-layout { display: flex; min-height: 100vh; } /* ── Navbar ── */ .navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--navbar-height); background: var(--navbar-bg); border-bottom: 1px solid var(--navbar-border); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-6); z-index: 100; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); } /* Hamburger — hidden on desktop */ .navbar__hamburger { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: var(--surface-card); color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0; } .navbar__hamburger:hover { border-color: var(--accent-500); color: var(--accent-500); } /* Sidebar backdrop overlay — mobile only */ .sidebar-backdrop { display: none; } .navbar__brand { display: flex; align-items: center; gap: var(--space-3); } .navbar__icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent-500), var(--accent-700)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; } .navbar__title { font-size: var(--font-lg); font-weight: 700; letter-spacing: -0.025em; } .navbar__title-accent { color: var(--accent-500); } .navbar__actions { display: flex; align-items: center; gap: var(--space-3); } .navbar__btn { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: var(--surface-card); color: var(--text-primary); font-size: var(--font-sm); font-weight: 500; cursor: pointer; transition: all var(--transition-fast); font-family: var(--font-family); } .navbar__btn:hover { border-color: var(--accent-500); color: var(--accent-500); } .navbar__btn--primary { background: linear-gradient(135deg, var(--accent-500), var(--accent-600)); color: white; border-color: transparent; } .navbar__btn--primary:hover { background: linear-gradient(135deg, var(--accent-600), var(--accent-700)); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .theme-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: var(--surface-card); color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); } .theme-toggle:hover { border-color: var(--accent-500); color: var(--accent-500); } /* ── Sidebar ── */ .sidebar { position: fixed; top: var(--navbar-height); left: 0; width: var(--sidebar-width); height: calc(100vh - var(--navbar-height)); background: var(--sidebar-bg); border-right: 1px solid var(--border-primary); overflow-y: auto; padding: var(--space-4) 0; z-index: 50; } .sidebar__section-title { font-size: var(--font-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); padding: var(--space-3) var(--space-5); margin-top: var(--space-2); } .sidebar__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); cursor: pointer; transition: all var(--transition-fast); border-left: 3px solid transparent; color: var(--text-secondary); font-size: var(--font-sm); font-weight: 500; position: relative; } .sidebar__item:hover { background: var(--surface-card-hover); color: var(--text-primary); } .sidebar__item--active { background: var(--option-selected-bg); border-left-color: var(--accent-500); color: var(--accent-500); } .sidebar__item-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .sidebar__item-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar__item-badge { margin-left: auto; background: var(--accent-500); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); min-width: 20px; text-align: center; } .sidebar__toggle-section { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-5); } /* ── Main Content ── */ .main-content { margin-left: var(--sidebar-width); margin-top: var(--navbar-height); flex: 1; padding: var(--space-8); min-height: calc(100vh - var(--navbar-height)); max-width: 960px; } /* ═══════════════════════════════════════════════════════════ Section & Subsection Cards ═══════════════════════════════════════════════════════════ */ .section { margin-bottom: var(--space-8); animation: fadeInUp 0.4s ease; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } .section__header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 2px solid var(--accent-500); } .section__header-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent-500), var(--accent-700)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; } .section__title { font-size: var(--font-xl); font-weight: 700; letter-spacing: -0.025em; } .section__cpt { font-size: var(--font-sm); color: var(--accent-500); font-weight: 600; background: var(--option-selected-bg); padding: 2px 10px; border-radius: var(--radius-full); margin-left: auto; } .section__toggle { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); } .toggle-switch { position: relative; width: 44px; height: 24px; background: var(--neutral-300); border-radius: var(--radius-full); cursor: pointer; transition: background var(--transition-fast); } [data-theme="dark"] .toggle-switch { background: var(--neutral-700); } .toggle-switch--active { background: var(--accent-500) !important; } .toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform var(--transition-fast); box-shadow: var(--shadow-sm); } .toggle-switch--active::after { transform: translateX(20px); } .subsection { background: var(--surface-card); border: 1px solid var(--border-primary); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); } .subsection:hover { border-color: var(--accent-500); border-color: color-mix(in srgb, var(--accent-500) 40%, var(--border-primary)); } .subsection__title { font-size: var(--font-base); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-2); } .subsection__title-dot { width: 6px; height: 6px; background: var(--accent-500); border-radius: 50%; flex-shrink: 0; } /* ═══════════════════════════════════════════════════════════ Field Components ═══════════════════════════════════════════════════════════ */ /* ── Fill Blank ── */ .fill-blank { margin-bottom: var(--space-5); } .fill-blank__label { font-size: var(--font-sm); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.04em; } .fill-blank__sentence { font-size: var(--font-base); color: var(--text-primary); margin-bottom: var(--space-3); line-height: 1.7; padding: var(--space-3) var(--space-4); background: var(--bg-secondary); border-radius: var(--radius-md); border-left: 3px solid var(--accent-500); } .fill-blank__blank { color: var(--accent-500); font-weight: 600; border-bottom: 2px dashed var(--accent-400); padding: 0 var(--space-1); } .fill-blank__blank--filled { color: var(--accent-400); border-bottom-style: solid; background: var(--option-selected-bg); border-radius: 2px; padding: 1px var(--space-1); } .fill-blank__options { display: flex; flex-wrap: wrap; gap: var(--space-2); } .option-btn { padding: var(--space-2) var(--space-3); border: 1px solid var(--border-primary); border-radius: var(--radius-full); background: var(--option-bg); color: var(--text-secondary); font-size: var(--font-sm); font-weight: 500; cursor: pointer; transition: all var(--transition-fast); font-family: var(--font-family); white-space: nowrap; } .option-btn:hover { background: var(--option-hover); color: var(--text-primary); border-color: var(--accent-400); } .option-btn--selected { background: var(--option-selected-bg); border-color: var(--option-selected-border); color: var(--option-selected-text); font-weight: 600; } .option-btn--selected:hover { background: var(--option-selected-bg); border-color: var(--accent-400); } /* ── Custom input inline ── */ .fill-blank__custom { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); } .fill-blank__custom-input { flex: 1; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-primary); border-radius: var(--radius-full); background: var(--surface-input); color: var(--text-primary); font-size: var(--font-sm); font-family: var(--font-family); transition: border-color var(--transition-fast); max-width: 300px; } .fill-blank__custom-input:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); } .fill-blank__custom-add { width: 32px; height: 32px; border: 1px solid var(--accent-500); border-radius: 50%; background: transparent; color: var(--accent-500); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0; } .fill-blank__custom-add:hover { background: var(--accent-500); color: white; } /* ── Checkbox Group ── */ .checkbox-group { margin-bottom: var(--space-5); } .checkbox-group__label { font-size: var(--font-sm); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.04em; } .checkbox-group__sentence { font-size: var(--font-base); color: var(--text-primary); margin-bottom: var(--space-3); line-height: 1.7; padding: var(--space-3) var(--space-4); background: var(--bg-secondary); border-radius: var(--radius-md); border-left: 3px solid var(--accent-500); } .checkbox-group__items { display: flex; flex-direction: column; gap: var(--space-2); } .checkbox-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: var(--surface-card); cursor: pointer; transition: all var(--transition-fast); } .checkbox-item:hover { border-color: var(--accent-400); background: var(--surface-card-hover); } .checkbox-item--checked { background: var(--option-selected-bg); border-color: var(--option-selected-border); } .checkbox-item__box { width: 20px; height: 20px; border: 2px solid var(--border-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition-fast); } .checkbox-item--checked .checkbox-item__box { background: var(--accent-500); border-color: var(--accent-500); color: white; } .checkbox-item__label { font-size: var(--font-sm); color: var(--text-primary); font-weight: 500; } /* ── Exercise List ── */ .exercise-list { margin-bottom: var(--space-5); } .exercise-list__label { font-size: var(--font-sm); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.04em; } .exercise-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-secondary); border-radius: var(--radius-md); margin-bottom: var(--space-2); transition: all var(--transition-fast); background: var(--surface-card); } .exercise-item--active { border-color: var(--accent-500); background: var(--option-selected-bg); } .exercise-item__toggle { width: 20px; height: 20px; border: 2px solid var(--border-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all var(--transition-fast); } .exercise-item--active .exercise-item__toggle { background: var(--accent-500); border-color: var(--accent-500); color: white; } .exercise-item__name { flex: 1; font-size: var(--font-sm); color: var(--text-primary); font-weight: 500; cursor: pointer; } .exercise-item__inputs { display: flex; align-items: center; gap: var(--space-2); } .exercise-item__input { width: 48px; padding: var(--space-1) var(--space-2); border: 1px solid var(--border-primary); border-radius: var(--radius-sm); background: var(--surface-input); color: var(--text-primary); font-size: var(--font-xs); text-align: center; font-family: var(--font-family); transition: border-color var(--transition-fast); } .exercise-item__input:focus { outline: none; border-color: var(--accent-500); } .exercise-item__separator { color: var(--text-tertiary); font-size: var(--font-xs); font-weight: 600; } .exercise-item__unit { color: var(--text-tertiary); font-size: var(--font-xs); min-width: 32px; } /* ── Text / Number Input ── */ .text-input { margin-bottom: var(--space-4); } .text-input__label { display: block; font-size: var(--font-sm); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-2); } .text-input__field { width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: var(--surface-input); color: var(--text-primary); font-size: var(--font-base); font-family: var(--font-family); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .text-input__field:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); } .text-input__field::placeholder { color: var(--text-tertiary); } .text-input__sentence { font-size: var(--font-sm); color: var(--text-tertiary); margin-top: var(--space-1); font-style: italic; } /* ── Static Text ── */ .static-text { padding: var(--space-4); background: var(--bg-secondary); border-radius: var(--radius-md); border-left: 3px solid var(--accent-500); margin-bottom: var(--space-4); } .static-text__content { font-size: var(--font-sm); color: var(--text-secondary); line-height: 1.7; } /* ═══════════════════════════════════════════════════════════ Header / Patient Info ═══════════════════════════════════════════════════════════ */ .patient-header { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-6); } .patient-header .text-input__field { background: var(--surface-card); } /* ═══════════════════════════════════════════════════════════ Abbreviation Reference ═══════════════════════════════════════════════════════════ */ .abbrev-panel { margin-bottom: var(--space-8); } .abbrev-category { margin-bottom: var(--space-4); } .abbrev-category__title { font-size: var(--font-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-500); margin-bottom: var(--space-2); padding-bottom: var(--space-1); border-bottom: 1px solid var(--border-secondary); } .abbrev-list { display: flex; flex-wrap: wrap; gap: var(--space-2); } .abbrev-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--border-primary); border-radius: var(--radius-full); font-size: var(--font-xs); background: var(--surface-card); } .abbrev-chip__abbr { font-weight: 700; color: var(--accent-500); } .abbrev-chip__meaning { color: var(--text-secondary); } /* ═══════════════════════════════════════════════════════════ Preview / Generated Note Panel ═══════════════════════════════════════════════════════════ */ .preview-overlay { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 200; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .preview-panel { width: 90%; max-width: 800px; max-height: 90vh; background: var(--bg-elevated); border: 1px solid var(--border-primary); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xl); animation: slideUp 0.3s ease; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .preview-panel__header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border-primary); } .preview-panel__title { font-size: var(--font-lg); font-weight: 700; } .preview-panel__close { width: 32px; height: 32px; border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: transparent; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); } .preview-panel__close:hover { border-color: var(--danger); color: var(--danger); } .preview-panel__body { flex: 1; overflow-y: auto; padding: var(--space-6); } .preview-panel__content { font-size: var(--font-base); line-height: 1.8; white-space: pre-wrap; color: var(--text-primary); } .preview-panel__content p { margin-bottom: var(--space-4); } .preview-panel__footer { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-primary); } .preview-panel__footer .navbar__btn { flex: 1; justify-content: center; } /* ── Loading ── */ .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-12); gap: var(--space-4); } .loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border-primary); border-top-color: var(--accent-500); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-text { font-size: var(--font-sm); color: var(--text-secondary); font-weight: 500; } /* ═══════════════════════════════════════════════════════════ Smart Phrases Panel ═══════════════════════════════════════════════════════════ */ .smart-phrases__list { display: flex; flex-direction: column; gap: var(--space-3); } .smart-phrase { padding: var(--space-3) var(--space-4); background: var(--surface-card); border: 1px solid var(--border-primary); border-radius: var(--radius-md); font-size: var(--font-sm); color: var(--text-secondary); line-height: 1.6; display: flex; gap: var(--space-3); transition: all var(--transition-fast); cursor: pointer; } .smart-phrase:hover { border-color: var(--accent-500); background: var(--option-selected-bg); } .smart-phrase__number { color: var(--accent-500); font-weight: 700; flex-shrink: 0; min-width: 24px; } .smart-phrase__copy { margin-left: auto; color: var(--text-tertiary); flex-shrink: 0; transition: color var(--transition-fast); } .smart-phrase:hover .smart-phrase__copy { color: var(--accent-500); } /* ═══════════════════════════════════════════════════════════ Custom Section Modal ═══════════════════════════════════════════════════════════ */ .modal-overlay { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 300; display: flex; align-items: center; justify-content: center; } .modal { width: 90%; max-width: 500px; background: var(--bg-elevated); border: 1px solid var(--border-primary); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-xl); } .modal__title { font-size: var(--font-lg); font-weight: 700; margin-bottom: var(--space-5); } .modal__actions { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-5); } /* ═══════════════════════════════════════════════════════════ Responsive — Tablet (max 1024px) ═══════════════════════════════════════════════════════════ */ @media (max-width: 1024px) { /* Show hamburger menu button */ .navbar__hamburger { display: flex; } /* Sidebar backdrop */ .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 85; backdrop-filter: blur(2px); } /* Sidebar -> overlay drawer */ .sidebar { transform: translateX(-100%); transition: transform var(--transition-slow); z-index: 90; box-shadow: none; } .sidebar--open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2); } /* Main content takes full width */ .main-content { margin-left: 0; padding: var(--space-6); max-width: 100%; } /* Navbar button labels can stay */ .navbar { padding: 0 var(--space-4); } .navbar__actions { gap: var(--space-2); } /* Panels fill more screen */ .preview-panel { width: 95%; max-width: 95%; max-height: 95vh; } } /* ═══════════════════════════════════════════════════════════ Responsive — Mobile (max 768px) ═══════════════════════════════════════════════════════════ */ @media (max-width: 768px) { /* Navbar compact */ .navbar { padding: 0 var(--space-2); height: 52px; overflow-x: hidden; } .navbar__brand { gap: var(--space-2); min-width: 0; } /* Hide the brand icon on mobile to save space */ .navbar__icon--desktop { display: none; } .navbar__title { font-size: var(--font-sm); white-space: nowrap; } .navbar__actions { gap: 4px; flex-shrink: 0; } /* Hide only the label text — NOT all span children */ .navbar__btn-label { display: none; } .navbar__btn { padding: 6px; min-width: 32px; min-height: 32px; justify-content: center; } /* Hide user pill on mobile */ .navbar__user { display: none; } .theme-toggle { width: 32px; height: 32px; flex-shrink: 0; } .theme-toggle svg { width: 14px; height: 14px; } .navbar__hamburger { width: 32px; height: 32px; } /* Sidebar overlay width */ .sidebar { width: 280px; } /* Main content */ .main-content { padding: var(--space-3); margin-top: 52px; } /* Section header */ .section__header { flex-wrap: wrap; gap: var(--space-2); } .section__header-icon { width: 32px; height: 32px; } .section__title { font-size: var(--font-lg); word-break: break-word; } .section__toggle { width: 100%; justify-content: flex-end; } /* Subsection cards */ .subsection { padding: var(--space-3); } /* Patient info -> single column */ .patient-header { grid-template-columns: 1fr; gap: var(--space-3); } /* Fill-blank sentence */ .fill-blank__sentence { font-size: var(--font-sm); padding: var(--space-2) var(--space-3); } /* Options buttons — wrap naturally, touch-friendly */ .option-btn { white-space: normal; text-align: left; padding: var(--space-2) var(--space-3); font-size: var(--font-xs); min-height: 36px; } .fill-blank__options { gap: var(--space-1); } /* Custom option input */ .fill-blank__custom { flex-wrap: nowrap; } .fill-blank__custom-input { max-width: none; min-width: 0; } /* Exercise items — stack on mobile */ .exercise-item { flex-wrap: wrap; gap: var(--space-2); padding: var(--space-2); } .exercise-item__name { flex-basis: calc(100% - 32px); font-size: var(--font-xs); } .exercise-item__inputs { width: 100%; padding-left: 32px; gap: var(--space-1); } .exercise-item__input { width: 40px; padding: var(--space-1); } /* Checkbox items touch-friendly */ .checkbox-item { padding: var(--space-3); } .checkbox-item__label { font-size: var(--font-xs); } /* Abbreviation chips */ .abbrev-chip { font-size: 10px; padding: 2px 6px; } /* Smart phrases */ .smart-phrase { font-size: var(--font-xs); padding: var(--space-2) var(--space-3); } /* ── Preview / AI panels — true full screen on mobile ── */ .preview-overlay { align-items: stretch; } .preview-panel { width: 100%; max-width: 100%; max-height: none; height: 100%; border-radius: 0; box-shadow: none; } .preview-panel__header { padding: var(--space-3) var(--space-4); position: sticky; top: 0; background: var(--bg-elevated); z-index: 10; } .preview-panel__body { padding: var(--space-3); flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; } .preview-panel__content { font-size: var(--font-sm); word-break: break-word; } .preview-panel__footer { padding: var(--space-3); flex-wrap: wrap; gap: var(--space-2); position: sticky; bottom: 0; background: var(--bg-elevated); z-index: 10; } .preview-panel__footer .navbar__btn { flex: 1 1 calc(50% - 4px); min-width: 0; justify-content: center; padding: var(--space-2) var(--space-3); } /* Modal */ .modal { width: 95%; padding: var(--space-4); } .modal__title { font-size: var(--font-base); } /* Login card */ .login-card { padding: var(--space-6); margin: var(--space-3); max-width: 100%; } .login-card__title { font-size: var(--font-xl); } /* Static text */ .static-text { padding: var(--space-3); font-size: var(--font-xs); } .static-text__content { font-size: var(--font-xs); line-height: 1.6; } /* Text inputs — 16px prevents iOS zoom */ .text-input__field { font-size: 16px; } .login-card__input { font-size: 16px; } } /* ═══════════════════════════════════════════════════════════ Responsive — Small phones (max 420px) ═══════════════════════════════════════════════════════════ */ @media (max-width: 420px) { .navbar__title { font-size: 12px; } .navbar__hamburger { width: 28px; height: 28px; } .navbar__btn { padding: 5px; min-width: 28px; min-height: 28px; } .theme-toggle { width: 28px; height: 28px; } .main-content { padding: var(--space-2); } .section__title { font-size: var(--font-base); } .subsection { padding: var(--space-2); border-radius: var(--radius-md); } .option-btn { font-size: 11px; padding: 6px 10px; } .fill-blank__label { font-size: 11px; } .exercise-item__inputs { padding-left: 0; } .login-card { padding: var(--space-4); border-radius: var(--radius-lg); } .login-card__icon { width: 44px; height: 44px; } } /* ═══════════════════════════════════════════════════════════ Utilities ═══════════════════════════════════════════════════════════ */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .section-disabled { opacity: 0.4; pointer-events: none; } .collapsible-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-3) 0; border: none; background: transparent; color: var(--text-primary); font-size: var(--font-base); font-weight: 600; cursor: pointer; font-family: var(--font-family); } .collapsible-trigger__icon { transition: transform var(--transition-fast); } .collapsible-trigger__icon--open { transform: rotate(180deg); } .collapsible-content { overflow: hidden; transition: max-height var(--transition-slow); } /* ═══════════════════════════════════════════════════════════ Login Page ═══════════════════════════════════════════════════════════ */ .login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); padding: var(--space-4); position: relative; overflow: hidden; } .login-page::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient( ellipse at 30% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50% ), radial-gradient( ellipse at 70% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50% ); pointer-events: none; } .login-card { width: 100%; max-width: 420px; background: var(--surface-card); border: 1px solid var(--border-primary); border-radius: var(--radius-xl); padding: var(--space-10); box-shadow: var(--shadow-xl); position: relative; z-index: 1; animation: loginFadeIn 0.5s ease; } @keyframes loginFadeIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .login-card__header { text-align: center; margin-bottom: var(--space-8); } .login-card__icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--accent-500), var(--accent-700)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: white; margin: 0 auto var(--space-4); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25); } .login-card__title { font-size: var(--font-2xl); font-weight: 800; letter-spacing: -0.03em; } .login-card__title-accent { color: var(--accent-500); } .login-card__subtitle { font-size: var(--font-sm); color: var(--text-tertiary); margin-top: var(--space-1); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; } .login-card__form { display: flex; flex-direction: column; gap: var(--space-5); } .login-card__error { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: var(--radius-md); color: #ef4444; font-size: var(--font-sm); font-weight: 500; animation: shakeError 0.4s ease; } @keyframes shakeError { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } } .login-card__field { display: flex; flex-direction: column; gap: var(--space-2); } .login-card__label { font-size: var(--font-sm); font-weight: 600; color: var(--text-secondary); } .login-card__input-wrap { display: flex; align-items: center; border: 1px solid var(--border-primary); border-radius: var(--radius-md); background: var(--surface-input); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); overflow: hidden; } .login-card__input-wrap:focus-within { border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); } .login-card__input-icon { margin-left: var(--space-3); color: var(--text-tertiary); flex-shrink: 0; } .login-card__input { flex: 1; padding: var(--space-3) var(--space-3); border: none; background: transparent; color: var(--text-primary); font-size: var(--font-base); font-family: var(--font-family); outline: none; } .login-card__input::placeholder { color: var(--text-tertiary); } .login-card__eye { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: transparent; color: var(--text-tertiary); cursor: pointer; flex-shrink: 0; transition: color var(--transition-fast); } .login-card__eye:hover { color: var(--accent-500); } .login-card__submit { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; padding: var(--space-3) var(--space-4); border: none; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--accent-500), var(--accent-600)); color: white; font-size: var(--font-md); font-weight: 600; font-family: var(--font-family); cursor: pointer; transition: all var(--transition-fast); min-height: 44px; } .login-card__submit:hover:not(:disabled) { background: linear-gradient(135deg, var(--accent-600), var(--accent-700)); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3); } .login-card__submit:disabled { opacity: 0.7; cursor: not-allowed; } .login-card__spinner { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; } .login-card__footer { text-align: center; font-size: var(--font-xs); color: var(--text-tertiary); margin-top: var(--space-6); text-transform: uppercase; letter-spacing: 0.06em; } /* ── Logged-in user pill in navbar ── */ .navbar__user { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); border: 1px solid var(--border-primary); border-radius: var(--radius-full); font-size: var(--font-xs); color: var(--text-secondary); font-weight: 500; } .navbar__user-name { color: var(--accent-500); font-weight: 600; } /* ── Loading Container ── */ .loading-container { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); } .loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border-primary); border-top-color: var(--accent-500); border-radius: 50%; animation: spin 0.8s linear infinite; } .loading-text { font-size: var(--font-sm); color: var(--text-tertiary); font-weight: 500; } @keyframes spin { to { transform: rotate(360deg); } }