.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.auth-card{background:#fff;border-radius:16px;padding:24px;width:100%;max-width:400px;box-shadow:0 10px 30px #0000001a}.auth-logo{height:150px;width:auto;max-width:100%;object-fit:contain}.auth-card h1{font-size:1.5rem;color:#667eea;margin-top:0;margin-bottom:8px;text-align:center}.auth-subtitle{text-align:center;color:#666;margin-bottom:20px;font-size:.9rem}.auth-form{display:flex;flex-direction:column;gap:12px}.error-message{background:#f8d7da;color:#721c24;padding:10px;border-radius:8px;border:1px solid #f5c6cb;font-size:.85rem;margin-bottom:10px}.auth-button{width:100%;margin-top:5px}.auth-switch{text-align:center;margin-top:15px;color:#666;font-size:.9rem}.auth-form .form-group{margin-bottom:5px}.auth-form .form-group label{margin-bottom:4px;font-size:.85rem}.auth-form .form-input{padding:10px 14px;font-size:.95rem}.link-button{background:none;border:none;color:#667eea;cursor:pointer;font-weight:600;text-decoration:underline;font-size:inherit;padding:0}.link-button:hover{color:#764ba2}.admin-panel-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.admin-panel{background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;width:90%;max-width:1200px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}[data-theme=dark] .admin-panel{background:#1f2937;color:#f9fafb}.admin-panel-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e0e0e0}[data-theme=dark] .admin-panel-header{border-bottom-color:#374151}.admin-panel-header h2{margin:0;color:#333}[data-theme=dark] .admin-panel-header h2{color:#f9fafb}.admin-panel-tabs{display:flex;border-bottom:1px solid #e0e0e0}[data-theme=dark] .admin-panel-tabs{border-bottom-color:#374151}.tab-button{flex:1;padding:12px 20px;background:none;border:none;cursor:pointer;font-size:14px;font-weight:500;color:#666;border-bottom:2px solid transparent;transition:all .2s}.tab-button:hover{background:#f8f9fa;color:#333}[data-theme=dark] .tab-button:hover{background:#374151;color:#f9fafb}.tab-button.active{color:#667eea;border-bottom-color:#667eea}[data-theme=dark] .tab-button.active{color:#8b5cf6;border-bottom-color:#8b5cf6}.admin-panel-content{flex:1;overflow-y:auto;padding:24px}.tab-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.tab-header h3{margin:0;color:#333}[data-theme=dark] .tab-header h3{color:#f9fafb}.loading{text-align:center;padding:40px;color:#666}[data-theme=dark] .loading{color:#d1d5db}.users-list{display:flex;flex-direction:column;gap:12px}.user-item{display:flex;justify-content:space-between;align-items:center;padding:16px;border:1px solid #e0e0e0;border-radius:8px;background:#fafbfc}[data-theme=dark] .user-item{border-color:#374151;background:#374151}.user-info{flex:1}.user-name{font-weight:600;color:#333;margin-bottom:4px}[data-theme=dark] .user-name{color:#f9fafb}.user-email{color:#666;font-size:14px;margin-bottom:2px}[data-theme=dark] .user-email{color:#d1d5db}.user-role,.user-status{font-size:13px;color:#666}[data-theme=dark] .user-role,[data-theme=dark] .user-status{color:#d1d5db}.user-actions{display:flex;gap:12px;align-items:center}.role-select{padding:4px 8px;border:1px solid #d0d7de;border-radius:4px;background:#fff;color:#333;font-size:14px}[data-theme=dark] .role-select{background:#4b5563;border-color:#6b7280;color:#f9fafb}.audit-filters{display:flex;gap:12px;align-items:center}.audit-filters input,.audit-filters select{padding:6px 12px;border:1px solid #d0d7de;border-radius:4px;font-size:14px}[data-theme=dark] .audit-filters input,[data-theme=dark] .audit-filters select{background:#4b5563;border-color:#6b7280;color:#f9fafb}.audit-logs-list{display:flex;flex-direction:column;gap:8px}.audit-log-item{padding:12px;border:1px solid #e0e0e0;border-radius:6px;background:#fafbfc}[data-theme=dark] .audit-log-item{border-color:#374151;background:#374151}.audit-log-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.audit-timestamp{font-size:12px;color:#666}[data-theme=dark] .audit-timestamp{color:#d1d5db}.audit-severity{padding:2px 8px;border-radius:12px;font-size:11px;font-weight:500;text-transform:uppercase}.severity-info{background:#e3f2fd;color:#1565c0}.severity-warning{background:#fff3e0;color:#f57c00}.severity-error{background:#ffebee;color:#d32f2f}.audit-user{font-weight:500;color:#333;margin-bottom:4px}[data-theme=dark] .audit-user{color:#f9fafb}.audit-action{color:#667eea;font-weight:500;margin-bottom:4px}[data-theme=dark] .audit-action{color:#8b5cf6}.audit-details{font-family:monospace;font-size:12px;background:#f6f8fa;padding:8px;border-radius:4px;color:#333;white-space:pre-wrap;max-height:200px;overflow-y:auto}[data-theme=dark] .audit-details{background:#4b5563;color:#f9fafb}.user-form-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1001}.user-form{background:#fff;padding:24px;border-radius:8px;width:400px;max-width:90vw}[data-theme=dark] .user-form{background:#1f2937;color:#f9fafb}.user-form h3{margin-top:0;margin-bottom:20px;color:#333}[data-theme=dark] .user-form h3{color:#f9fafb}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:4px;font-weight:500;color:#333}[data-theme=dark] .form-group label{color:#f9fafb}.form-group input,.form-group select{width:100%;padding:8px 12px;border:1px solid #d0d7de;border-radius:4px;font-size:14px;background:#fff;color:#333}[data-theme=dark] .form-group input,[data-theme=dark] .form-group select{background:#4b5563;border-color:#6b7280;color:#f9fafb}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}@media(max-width:768px){.admin-panel{width:95%;max-height:95vh}.admin-panel-content{padding:16px}.user-item{flex-direction:column;align-items:flex-start;gap:12px}.user-actions{width:100%;justify-content:space-between}.audit-filters{flex-direction:column;align-items:stretch}.tab-header{flex-direction:column;align-items:flex-start;gap:12px}}.pricing-container{min-height:100vh;background:linear-gradient(135deg,#f8fafc,#e2e8f0,#f1f5f9);padding:60px 20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.pricing-header{text-align:center;margin-bottom:50px}.pricing-header h1{font-size:2.75rem;font-weight:800;color:#0f172a;margin-bottom:16px;letter-spacing:-.02em}.pricing-header p{font-size:1.25rem;color:#475569;max-width:600px;margin:0 auto;line-height:1.6}.pricing-error{background-color:#fef2f2;color:#dc2626;padding:14px 20px;border-radius:10px;margin:0 auto 24px;max-width:900px;text-align:center;border:1px solid #fecaca;font-weight:500}.pricing-login-notice{background:#fff;border:2px solid #3b82f6;border-radius:16px;padding:24px 32px;margin:0 auto 40px;max-width:600px;text-align:center;box-shadow:0 4px 20px #3b82f626}.pricing-login-notice p{margin:10px 0;color:#1e293b;font-size:1rem}.pricing-login-notice a{color:#2563eb;font-weight:700;text-decoration:none;transition:color .2s}.pricing-login-notice a:hover{color:#1d4ed8;text-decoration:underline}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:1100px;margin:0 auto 60px}.pricing-card{background:#fff;border-radius:20px;padding:36px 28px;box-shadow:0 4px 25px #00000014;border:2px solid #e2e8f0;position:relative;transition:all .3s ease;display:flex;flex-direction:column}.pricing-card:hover{transform:translateY(-8px);box-shadow:0 20px 40px #0000001f;border-color:#cbd5e1}.pricing-card.popular{border-color:#3b82f6;box-shadow:0 8px 40px #3b82f640;transform:scale(1.03);z-index:2}.pricing-card.popular:hover{transform:scale(1.03) translateY(-8px)}.popular-badge{position:absolute;top:-14px;left:50%;transform:translate(-50%);background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;padding:8px 24px;border-radius:30px;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;box-shadow:0 4px 15px #3b82f666}.plan-header{text-align:center;margin-bottom:28px;padding-bottom:24px;border-bottom:2px solid #f1f5f9}.plan-header h3{font-size:1.75rem;font-weight:700;color:#0f172a;margin-bottom:12px}.price{display:flex;align-items:baseline;justify-content:center;margin-bottom:12px}.amount{font-size:3rem;font-weight:800;color:#0f172a;line-height:1}.period{font-size:1.1rem;color:#64748b;margin-left:6px;font-weight:500}.description{color:#475569;font-size:1rem;line-height:1.5}.features{list-style:none;padding:0;margin:0 0 28px;flex-grow:1}.features li{padding:12px 0;color:#334155;font-size:.95rem;display:flex;align-items:center;border-bottom:1px solid #f1f5f9}.features li:last-child{border-bottom:none}.features li .check-icon{width:20px;height:20px;color:#10b981;margin-right:12px;flex-shrink:0}.subscribe-btn{width:100%;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;padding:16px 28px;border-radius:12px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:.06em;box-shadow:0 4px 15px #3b82f64d}.pricing-card.popular .subscribe-btn{background:linear-gradient(135deg,#3b82f6,#1d4ed8);box-shadow:0 4px 20px #3b82f666}.subscribe-btn:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-2px);box-shadow:0 8px 25px #3b82f666}.subscribe-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.enterprise-btn{background:linear-gradient(135deg,#1e293b,#0f172a)!important;box-shadow:0 4px 15px #0f172a4d!important}.enterprise-btn:hover:not(:disabled){background:linear-gradient(135deg,#334155,#1e293b)!important;box-shadow:0 8px 25px #0f172a66!important}.pricing-footer{text-align:center;max-width:600px;margin:0 auto}.guarantee-badge{display:inline-flex;align-items:center;gap:10px;background:#fff;border:2px solid #10b981;color:#047857;padding:12px 24px;border-radius:30px;font-size:.95rem;font-weight:700;margin-bottom:20px;box-shadow:0 4px 15px #10b98126}.guarantee-badge svg{width:22px;height:22px;stroke:#10b981}.pricing-footer p{margin:10px 0;color:#475569;font-size:1rem}.pricing-footer a{color:#2563eb;text-decoration:none;font-weight:600}.pricing-footer a:hover{text-decoration:underline}@media(max-width:900px){.pricing-grid{grid-template-columns:1fr;max-width:400px;gap:24px}.pricing-card.popular{transform:none;order:-1}.pricing-card.popular:hover{transform:translateY(-8px)}}@media(max-width:600px){.pricing-container{padding:40px 16px}.pricing-header h1{font-size:2rem}.pricing-header p{font-size:1.1rem}.pricing-card{padding:28px 20px}.amount{font-size:2.5rem}.plan-header h3{font-size:1.5rem}.pricing-login-notice{padding:20px}}.success-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#0f172a,#1e293b,#0f172a);position:relative;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.success-page:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:radial-gradient(circle at 25% 25%,rgba(59,130,246,.1) 0%,transparent 50%),radial-gradient(circle at 75% 75%,rgba(139,92,246,.1) 0%,transparent 50%);pointer-events:none}.success-page.error-page{background:linear-gradient(135deg,#1e1e2e,#2d1f1f)}.confetti-container{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;overflow:hidden;z-index:1000}.confetti-piece{position:absolute;width:10px;height:10px;top:-10px;border-radius:2px;animation:confetti-fall 4s ease-out forwards}@keyframes confetti-fall{0%{transform:translateY(0) rotate(0);opacity:1}to{transform:translateY(100vh) rotate(720deg);opacity:0}}.success-card{background:#fffffffa;border-radius:24px;padding:48px;box-shadow:0 25px 50px -12px #0006,0 0 0 1px #ffffff1a;text-align:center;max-width:580px;width:100%;position:relative;z-index:1;animation:card-appear .6s ease-out}@keyframes card-appear{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.success-card.verifying{max-width:400px}.loading-ring{width:80px;height:80px;margin:0 auto 32px;position:relative}.ring-segment{position:absolute;width:100%;height:100%;border:4px solid transparent;border-top-color:#3b82f6;border-radius:50%;animation:ring-spin 1.2s cubic-bezier(.5,0,.5,1) infinite}.ring-segment:nth-child(2){animation-delay:-.4s;border-top-color:#8b5cf6}.ring-segment:nth-child(3){animation-delay:-.8s;border-top-color:#059669}@keyframes ring-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.success-checkmark{width:100px;height:100px;margin:0 auto 24px}.success-checkmark svg{width:100%;height:100%}.checkmark-circle{stroke:var(--plan-color, #059669);stroke-width:2;stroke-dasharray:166;stroke-dashoffset:166;animation:stroke-draw .6s cubic-bezier(.65,0,.45,1) forwards}.checkmark-check{stroke:var(--plan-color, #059669);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:48;stroke-dashoffset:48;animation:stroke-draw .3s cubic-bezier(.65,0,.45,1) .6s forwards}@keyframes stroke-draw{to{stroke-dashoffset:0}}.welcome-section{margin-bottom:32px}.welcome-section h1{font-size:2rem;font-weight:700;color:#0f172a;margin:0 0 16px;letter-spacing:-.02em}.plan-badge{display:inline-block;color:#fff;padding:8px 20px;border-radius:100px;font-size:.9rem;font-weight:600;margin-bottom:8px;animation:badge-pop .4s ease-out .8s both}@keyframes badge-pop{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.welcome-name{color:#64748b;font-size:1.1rem;margin:12px 0 0}.features-grid{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-radius:16px;padding:24px;margin-bottom:24px;text-align:left}.features-grid h3{margin:0 0 16px;color:#334155;font-size:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.features-grid ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}.features-grid li{display:flex;align-items:center;color:#475569;font-size:.95rem;animation:feature-slide .4s ease-out both}@keyframes feature-slide{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.feature-check{font-weight:700;margin-right:12px;font-size:1.1rem}.trust-badge{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 24px;background:linear-gradient(135deg,#ecfdf5,#d1fae5);border-radius:12px;margin-bottom:32px;border:1px solid #a7f3d0}.badge-icon{width:40px;height:40px;background:#059669;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.badge-icon svg{width:22px;height:22px;stroke:#fff}.badge-text{text-align:left}.badge-text strong{display:block;color:#065f46;font-size:.95rem;font-weight:600}.badge-text span{color:#047857;font-size:.85rem}.next-steps{text-align:left;margin-bottom:32px}.next-steps h3{margin:0 0 20px;color:#334155;font-size:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.steps-list{display:flex;flex-direction:column;gap:16px}.step{display:flex;align-items:flex-start;gap:16px}.step-number{width:32px;height:32px;background:linear-gradient(135deg,#3b82f6,#8b5cf6);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;flex-shrink:0}.step-content{flex:1}.step-content strong{display:block;color:#1e293b;font-size:.95rem;margin-bottom:2px}.step-content p{margin:0;color:#64748b;font-size:.85rem;line-height:1.4}.cta-section{margin-top:8px}.btn-start{display:inline-flex;align-items:center;gap:10px;color:#fff;border:none;padding:16px 32px;border-radius:12px;font-size:1.05rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 14px #00000026}.btn-start:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0003}.btn-start svg{width:20px;height:20px;transition:transform .2s ease}.btn-start:hover svg{transform:translate(4px)}.support-note{margin-top:20px;font-size:.9rem;color:#94a3b8}.support-note a{color:#3b82f6;text-decoration:none;font-weight:500}.support-note a:hover{text-decoration:underline}.error-icon{width:80px;height:80px;margin:0 auto 24px;background:#fef2f2;border-radius:50%;display:flex;align-items:center;justify-content:center}.error-icon svg{width:40px;height:40px;stroke:#ef4444}.error-actions{display:flex;gap:12px;justify-content:center;margin-top:24px;flex-wrap:wrap}.btn-secondary{padding:12px 24px;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;text-decoration:none}.btn-secondary:hover{background:#e2e8f0}.btn-primary{padding:12px 24px;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease;background:#3b82f6;color:#fff;border:none;text-decoration:none}.btn-primary:hover{background:#2563eb}@media(max-width:640px){.success-page{padding:16px}.success-card{padding:32px 24px;border-radius:20px}.welcome-section h1{font-size:1.6rem}.success-checkmark{width:80px;height:80px}.features-grid{padding:20px}.trust-badge{flex-direction:column;text-align:center;gap:8px}.badge-text{text-align:center}.step{flex-direction:column;align-items:center;text-align:center}.step-content{text-align:center}.btn-start{width:100%;justify-content:center}.error-actions{flex-direction:column}.btn-secondary,.btn-primary{width:100%;text-align:center}}:root{--bg-primary: #ffffff;--bg-secondary: #f8f9fa;--text-primary: #333333;--text-secondary: #666666;--border-color: #e0e0e0;--accent-color: #667eea;--shadow: rgba(0, 0, 0, .1)}[data-theme=dark]{--bg-primary: #1f2937;--bg-secondary: #374151;--text-primary: #f9fafb;--text-secondary: #d1d5db;--border-color: #4b5563;--accent-color: #8b5cf6;--shadow: rgba(0, 0, 0, .3)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;color:#333}body.dark-theme{background:radial-gradient(circle at 10% 20%,#1f2937,#0f172a 45%,#0b1020);color:#e5e7eb}.app-container{max-width:1200px;margin:0 auto;padding:20px;min-height:100vh}.app-header{background:#fff;border-radius:16px;padding:18px 22px;margin-bottom:20px;box-shadow:0 10px 30px #0000001a;text-align:center}body.dark-theme .app-header{background:#111827;box-shadow:0 10px 30px #0006}.logo-image{height:180px;width:auto;object-fit:contain}.logo-text{font-size:2.8rem;background:linear-gradient(135deg,#1e3a8a,#3b82f6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:10px;font-weight:700}.app-header h1{font-size:2.8rem;color:#667eea;margin-bottom:10px;font-weight:700}body.dark-theme .app-header h1{color:#a5b4fc}.app-header .subtitle{color:#666;font-size:1.3rem}.patient-bar{background:#fff;border-radius:12px;padding:14px 18px;margin-bottom:18px;box-shadow:0 8px 20px #00000014}body.dark-theme .patient-bar{background:#111827;box-shadow:0 8px 20px #00000059}.patient-bar-content{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between}.patient-bar-label{display:flex;flex-direction:column;gap:2px;min-width:200px}.patient-bar-label label{font-weight:500;text-transform:capitalize;color:#1f2937}.patient-bar-helper{font-size:.9rem;color:#6b7280}.patient-bar-input{flex:1;min-width:260px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;font-size:1rem;transition:border-color .2s,box-shadow .2s}.patient-bar-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea40}body.dark-theme .patient-bar-label label{color:#e5e7eb}body.dark-theme .patient-bar-helper{color:#9ca3af}body.dark-theme .patient-bar-input{background:#0f172a;color:#e5e7eb;border-color:#1f2937}body.dark-theme .patient-bar-input:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf640}.user-menu{position:relative}.user-avatar-btn{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#eef2ff;border:1px solid #e5e7eb;border-radius:999px;color:#1f2937;cursor:pointer;transition:background-color .2s,border-color .2s}.user-avatar-btn:hover{background:#e0e7ff;border-color:#c7d2fe}.user-avatar{height:32px;width:32px;border-radius:50%;background:#3b82f6;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem}.user-name{font-weight:600}.caret{font-size:.9rem;color:#4b5563}.user-menu-dropdown{position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid #e5e7eb;box-shadow:0 12px 30px #0000001f;border-radius:12px;min-width:220px;z-index:10;overflow:hidden}.user-menu-item{width:100%;text-align:left;padding:12px 14px;border:none;background:#fff;color:#1f2937;font-size:.95rem;cursor:pointer;transition:background-color .15s}.user-menu-item:hover{background:#f3f4f6}.user-menu-greeting{cursor:default;font-weight:600;color:#111827}.user-menu-action{border-top:1px solid #e5e7eb}body.dark-theme .user-avatar-btn{background:#1f2937;border-color:#374151;color:#e5e7eb}body.dark-theme .user-avatar-btn:hover{background:#111827;border-color:#4b5563}body.dark-theme .user-menu-dropdown{background:#0f172a;border-color:#1f2937;box-shadow:0 12px 30px #00000059}body.dark-theme .user-menu-item{background:#0f172a;color:#e5e7eb}body.dark-theme .user-menu-item:hover{background:#111827}body.dark-theme .user-menu-greeting{color:#f9fafb}body.dark-theme .user-menu-action{border-top-color:#1f2937}.status-badge{display:inline-block;padding:8px 16px;border-radius:20px;font-size:.9rem;font-weight:500;margin-top:15px}.status-connected{background:#d4edda;color:#155724;border:1px solid #c3e6cb}body.dark-theme .status-connected{background:#123524;color:#34d399;border-color:#14532d}.status-disconnected{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}body.dark-theme .status-disconnected{background:#3b0f15;color:#fca5a5;border-color:#7f1d1d}.status-checking{background:#fff3cd;color:#856404;border:1px solid #ffeaa7}body.dark-theme .status-checking{background:#3b2f0f;color:#fcd34d;border-color:#a16207}.main-content{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;margin-bottom:20px}@media(max-width:1024px){.main-content{grid-template-columns:1fr 1fr}}@media(max-width:768px){.main-content{grid-template-columns:1fr}}.soap-template-horizontal{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:15px;margin-top:20px}@media(max-width:1200px){.soap-template-horizontal{grid-template-columns:1fr 1fr;grid-template-rows:auto auto}}@media(max-width:768px){.soap-template-horizontal{grid-template-columns:1fr}}.card{background:#fff;border-radius:16px;padding:30px;border:1px solid #e7e9f3;box-shadow:0 8px 24px #11182714;transition:transform .2s,box-shadow .2s,border-color .2s}.card:hover{transform:translateY(-2px);box-shadow:0 14px 36px #1118271f;border-color:#d8dcf0}body.dark-theme .card,body.dark-theme .notes-section{background:#0f172a;border-color:#1f2937;box-shadow:0 10px 30px #00000080}body.dark-theme .card:hover{border-color:#2e3a55;box-shadow:0 14px 36px #0009}.card h2{font-size:1rem;font-weight:500;color:#333;margin-bottom:20px;display:flex;align-items:center;gap:10px}.card h2:before{content:"";width:4px;height:24px;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:2px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;color:#555;font-weight:500;font-size:.95rem}.form-input{width:100%;padding:12px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:border-color .2s;font-family:inherit}.form-input:focus{outline:none;border-color:#667eea}.btn{padding:12px 24px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit;display:inline-flex;align-items:center;gap:8px;text-transform:none}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.btn-primary:active{transform:translateY(0)}.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-primary:disabled:hover{transform:none;box-shadow:none}.btn-secondary{background:#f3f4f6;color:#374151;border:1px solid #e5e7eb}.btn-secondary:hover{background:#e5e7eb;transform:translateY(-2px);box-shadow:0 5px 12px #00000014}.btn-compact{padding:8px 14px;font-size:.9rem}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover{background:#c0392b;transform:translateY(-2px);box-shadow:0 5px 15px #e74c3c66}.btn-success{background:#27ae60;color:#fff}.btn-success:hover{background:#229954;transform:translateY(-2px);box-shadow:0 5px 15px #27ae6066}.btn:disabled{opacity:.6;cursor:not-allowed;transform:none!important}.recording-controls{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.recording-button{padding:12px 20px;font-size:1rem;position:relative;overflow:hidden}.recording-button.recording{animation:pulse 2s infinite}@keyframes pulse{0%,to{box-shadow:0 0 #e74c3cb3}50%{box-shadow:0 0 0 10px #e74c3c00}}.recording-indicator{display:inline-block;width:12px;height:12px;background:#e74c3c;border-radius:50%;margin-right:8px;animation:blink 1s infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:.3}}.transcription-box{background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;padding:20px;margin-top:20px;min-height:150px}.transcription-box h3{color:#555;margin-bottom:15px;font-size:1.1rem}.transcription-text{color:#333;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}.notes-section{background:#fff;border-radius:16px;padding:30px;box-shadow:0 10px 30px #0000001a}.notes-list{list-style:none;display:flex;flex-direction:column;gap:20px}.note-item{background:#f8f9fa;border-left:4px solid #667eea;border-radius:8px;padding:20px;border:1px solid #e5e7eb;transition:transform .2s,box-shadow .2s,border-color .2s}.note-item:hover{transform:translate(5px);box-shadow:0 6px 18px #00000014;border-color:#d8dcf0}body.dark-theme .note-item{background:#0b1221;border-color:#1f2937;box-shadow:0 6px 18px #0006}body.dark-theme .note-item:hover{border-color:#2e3a55;box-shadow:0 8px 20px #0000008c}.note-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:10px}.note-patient-name{font-size:1.2rem;font-weight:600;color:#667eea}body.dark-theme .note-patient-name{color:#a5b4fc}.note-timestamp{color:#888;font-size:.9rem}body.dark-theme .note-timestamp{color:#9ca3af}.note-content{color:#555;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}body.dark-theme .note-content{color:#e5e7eb}.note-content.collapsed{max-height:140px;overflow:hidden;position:relative}.note-content.collapsed:after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;background:linear-gradient(180deg,#f8f9fa00,#f8f9fa)}body.dark-theme .note-content.collapsed:after{background:linear-gradient(180deg,#0f172a00,#0f172a)}.note-actions{margin-top:10px}.note-summary{margin-top:8px;padding:10px;background:#eef2ff;border-radius:6px;color:#333;line-height:1.5}body.dark-theme .note-summary{background:#1f2937;color:#e5e7eb}.empty-state{text-align:center;padding:60px 20px;color:#888}.empty-state-icon{font-size:4rem;margin-bottom:20px;opacity:.5}.empty-state-text{font-size:1.1rem}@media(max-width:768px){.app-header h1{font-size:2.4rem}.card{padding:20px}.recording-controls{flex-direction:column}.recording-button{width:100%;justify-content:center}.soap-template-horizontal{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:10px}.soap-template-horizontal .soap-input{min-height:100px}.template-composer,.template-fields-grid{grid-template-columns:1fr}.template-form-header{flex-direction:column;align-items:flex-start}}.mic-status-indicator{display:flex;align-items:center;cursor:help}.mic-status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.2)}.mic-status-dot.available{background-color:#27ae60;box-shadow:0 0 4px #27ae6066}.mic-status-dot.unavailable{background-color:#e74c3c;box-shadow:0 0 4px #e74c3c66}.transcription-textarea{width:100%;border:1px solid var(--border-color);border-radius:6px;padding:12px;font-family:inherit;font-size:.95rem;line-height:1.6;resize:vertical;background:var(--bg-primary);color:var(--text-primary);min-height:120px}.transcription-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.edit-icon{font-size:.9rem;opacity:.6;cursor:help}.audio-quality-indicator{display:flex;align-items:center;gap:10px;font-size:.9rem}.ambient-noise-status{font-size:.85rem;font-weight:500}.status-checking{color:var(--accent-color)}.status-quiet{color:#27ae60}.status-noisy{color:#e67e22}.status-neutral{color:var(--text-secondary)}.vu-meter-container{display:flex;flex-direction:column;align-items:center;gap:4px}.vu-meter{display:flex;gap:2px;height:16px;align-items:end}.vu-segment{width:6px;background-color:#e0e0e0;border-radius:1px;transition:background-color .1s ease}.vu-segment.level-low{background-color:#e74c3c;box-shadow:0 0 4px #e74c3c99}.vu-segment.level-good{background-color:#27ae60;box-shadow:0 0 4px #27ae6099}.vu-segment.level-high{background-color:#f39c12;box-shadow:0 0 4px #f39c1299}.vu-status{font-size:.75rem;font-weight:500;text-align:center;color:var(--text-secondary);max-width:120px}body.dark-theme .vu-segment{background-color:#4b5563}body.dark-theme .vu-segment.level-low{background-color:#ef4444}body.dark-theme .vu-segment.level-good{background-color:#10b981}body.dark-theme .vu-segment.level-high{background-color:#f59e0b}.loading{opacity:.6;pointer-events:none}.column{display:flex;flex-direction:column;gap:20px}.transcription-display,.summary-display{max-height:300px;overflow-y:auto;padding:15px;background:var(--bg-secondary);border-radius:8px;border:1px solid var(--border-color)}.transcription-text,.summary-text{line-height:1.6;white-space:pre-wrap;word-wrap:break-word;color:var(--text-primary)}.copy-actions{text-align:center}.soap-template{display:flex;flex-direction:column;gap:15px}.soap-template-card{margin-top:20px}.soap-template-card h2{margin-bottom:15px}.template-composer{display:grid;grid-template-columns:260px 1fr;gap:16px}.template-list-panel{border:1px solid var(--border-color);border-radius:10px;background:var(--bg-secondary);padding:12px}.template-list-panel h4{margin:4px 0 10px;color:var(--text-primary)}.template-list{display:flex;flex-direction:column;gap:8px}.template-search-input{width:100%;margin-bottom:10px;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-primary);color:var(--text-primary);padding:8px 10px;font-size:.9rem}.template-search-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.template-category-group{border-top:1px solid var(--border-color);padding-top:8px;margin-top:4px}.template-category-group:first-child{border-top:none;padding-top:0;margin-top:0}.template-category-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);font-weight:700}.template-category-header{width:100%;display:flex;align-items:center;justify-content:space-between;background:transparent;border:none;padding:2px 2px 6px;cursor:pointer}.template-category-chevron{color:var(--text-secondary);font-size:.85rem;transition:transform .15s ease}.template-category-chevron.collapsed{transform:rotate(-90deg)}.template-empty-state{color:var(--text-secondary);font-size:.9rem;padding:8px 2px}.template-item{border:1px solid var(--border-color);border-radius:8px;background:var(--bg-primary);color:var(--text-primary);text-align:left;padding:10px 12px;cursor:pointer;font-weight:500}.template-item:hover{border-color:#667eea}.template-item.active{border-color:#667eea;background:#667eea1f}.template-form-panel{border:1px solid var(--border-color);border-radius:10px;background:var(--bg-secondary);padding:12px}.template-form-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.template-form-header h4{margin:0;color:var(--text-primary)}.template-hint{color:var(--text-secondary);font-size:.85rem}.template-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.template-field{display:flex;flex-direction:column;gap:6px}.template-field label{color:var(--text-primary);font-size:.9rem;font-weight:600}.soap-section{border:1px solid var(--border-color);border-radius:6px;padding:12px;background:var(--bg-secondary)}.soap-section h4{margin:0 0 8px;color:var(--text-primary);font-size:1rem;font-weight:600}.soap-input{width:100%;border:1px solid var(--border-color);border-radius:4px;padding:8px;font-family:inherit;font-size:.9rem;line-height:1.4;resize:vertical;background:var(--bg-primary);color:var(--text-primary)}.soap-input:focus{outline:none;border-color:#667eea}.patient-notes-section{margin-top:40px;padding:30px 0;border-top:2px solid var(--border-color)}.patient-groups{display:flex;flex-direction:column;gap:30px}.patient-group{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:12px;padding:25px;box-shadow:0 4px 12px #00000014}.patient-group-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid var(--border-color)}.patient-group-header h3{margin:0;color:var(--text-primary);font-size:1.3rem}.note-count{background:var(--accent-color);color:#fff;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:500}.patient-notes{display:flex;flex-direction:column;gap:15px}.search-controls{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:12px;padding:20px;margin-bottom:30px;box-shadow:0 2px 8px #0000000d}.search-row{display:grid;grid-template-columns:2fr 1.5fr 1fr 1fr auto;gap:12px;align-items:center;margin-bottom:15px}@media(max-width:1024px){.search-row{grid-template-columns:1fr 1fr}}@media(max-width:768px){.search-row{grid-template-columns:1fr}}.search-input-group{flex:1}.search-input{width:100%}.filter-group{min-width:150px}.filter-select{width:100%}.date-group{display:flex;align-items:center;gap:8px}.date-input{flex:1;min-width:120px}.search-actions{display:flex;gap:8px}.search-results-info{color:var(--text-secondary);font-size:.9rem;margin-top:10px;padding-top:10px;border-top:1px solid var(--border-color)}.expand-controls{display:flex;gap:10px;margin-top:15px;padding-top:15px;border-top:1px solid var(--border-color)}.patient-group-header{transition:background-color .2s}.patient-group-header:hover{background-color:var(--bg-secondary)}.patient-group-header h3{display:flex;align-items:center;margin:0;-webkit-user-select:none;user-select:none}.patient-notes{animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;max-height:0}to{opacity:1;max-height:2000px}}.clinical-highlight{background-color:#fff3cd;padding:2px 4px;border-radius:3px;font-weight:500;transition:background-color .2s}.clinical-finding{background-color:#d1ecf1}.clinical-diagnosis{background-color:#d4edda}.clinical-treatment{background-color:#f8d7da}.clinical-medication{background-color:#e2e3e5}.clinical-instruction{background-color:#fff3cd}[data-theme=dark] .clinical-highlight{background-color:#664d03;color:#fff3cd}[data-theme=dark] .clinical-finding{background-color:#084298;color:#cfe2ff}[data-theme=dark] .clinical-diagnosis{background-color:#0f5132;color:#d1e7dd}[data-theme=dark] .clinical-treatment{background-color:#842029;color:#f8d7da}[data-theme=dark] .clinical-medication{background-color:#41464b;color:#e2e3e5}[data-theme=dark] .clinical-instruction{background-color:#664d03;color:#fff3cd}
