@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";
:root{--color-primary:#063aa4;--color-primary-hover:#052d7d;--color-accent:#0b63f3;--color-text-heading:#111;--color-text-body:#333;--color-text-muted:#444;--color-text-light:#666;--color-bg-white:#fff;--color-bg-light:#f5f7fb;--color-bg-alt:#f9faff;--color-bg-card:#f9f9f9;--font-h1:42px;--font-h2:32px;--font-h3:24px;--font-body:16px;--font-small:14px;--font-xs:12px;--section-padding-lg:96px;--section-padding-md:64px;--section-padding-sm:48px;--container-max:1200px;--container-padding-desktop:64px;--container-padding-mobile:24px;--radius-pill:9999px;--radius-card:12px;--radius-button:9999px;--shadow-card:0 8px 24px #0000000a;--shadow-hover:0 12px 32px #00000014}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--color-bg-white);color:var(--color-text-body);min-height:100vh;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.6;font-size:var(--font-body);font-weight:400}h1{font-size:var(--font-h1);color:var(--color-primary);font-weight:600;line-height:1.2}h2{font-size:var(--font-h2);color:var(--color-text-heading);font-weight:600;line-height:1.3}h3{font-size:var(--font-h3);color:var(--color-text-heading);font-weight:600;line-height:1.4}p{font-size:var(--font-body);color:var(--color-text-body);font-weight:400;line-height:1.7}.btn-primary{color:#fff;background:var(--color-primary);border-radius:var(--radius-pill);cursor:pointer;border:none;justify-content:center;align-items:center;padding:14px 24px;font-family:Inter,sans-serif;font-size:15px;font-weight:500;text-decoration:none;transition:all .2s;display:inline-flex}.btn-primary:hover{background:var(--color-primary-hover);transform:translateY(-1px)}.btn-secondary{color:var(--color-primary);border:1.5px solid var(--color-primary);border-radius:var(--radius-pill);cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:14px 24px;font-family:Inter,sans-serif;font-size:15px;font-weight:500;text-decoration:none;transition:all .2s;display:inline-flex}.btn-secondary:hover{background:#063aa40d}.container{max-width:var(--container-max);padding-left:var(--container-padding-desktop);padding-right:var(--container-padding-desktop);margin:0 auto}@media (max-width:768px){.container{padding-left:var(--container-padding-mobile);padding-right:var(--container-padding-mobile)}h1{font-size:32px}h2{font-size:26px}h3{font-size:20px}}.card{background:var(--color-bg-white);border-radius:var(--radius-card);box-shadow:var(--shadow-card);border:1px solid #f0f0f0;padding:32px}.card:hover{box-shadow:var(--shadow-hover)}.no-select,.protected-content,.dashboard-typography,.workstation-content,.fhir-output,.ocr-result{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.protected-content{pointer-events:auto}input,textarea,[contenteditable=true]{-webkit-user-select:text!important;user-select:text!important}.protected-content img,.dashboard-typography img,.workstation-content img{-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;user-drag:none}body img,body video,body audio,body a[download]{pointer-events:auto}img,video,audio,canvas,picture,source,embed,object{-webkit-user-select:none;user-select:none}a[download]{pointer-events:none;cursor:not-allowed;opacity:.5}*{-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none}input[type=file],.draggable{-webkit-user-drag:auto}h1,h2,h3,h4,h5,h6,.page-title,.card-title,.modal-title,.section-label,.stat-label,.mode-title{font-family:Inter,sans-serif;font-weight:600}.dashboard-typography h1,.dashboard-typography h2,.dashboard-typography h3,.dashboard-typography h4,.dashboard-typography h5,.dashboard-typography h6,.dashboard-typography .dashboard-title,.dashboard-typography .section-title,.dashboard-typography .card-header{font-family:Inter,sans-serif!important;font-weight:600!important}.dashboard-typography p,.dashboard-typography span,.dashboard-typography div,.dashboard-typography label,.dashboard-typography input,.dashboard-typography button,.dashboard-typography a{font-family:Inter,sans-serif;font-weight:400}.dashboard-container{min-height:100vh;display:flex}.sidebar{background:#fff;border-right:1px solid #e5e7eb;width:240px;height:100vh;padding:20px 12px;position:fixed;overflow-y:auto}.sidebar-header{margin-bottom:32px;padding:12px}.sidebar-logo{color:#063aa4;align-items:center;gap:8px;font-size:20px;font-weight:700;display:flex}.sidebar-logo-icon{color:#fff;background:linear-gradient(135deg,#063aa4 0% 100%);border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-weight:700;display:flex}.sidebar-nav{list-style:none}.sidebar-nav li{margin-bottom:4px}.sidebar-nav a,.sidebar-nav button{color:#64748b;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:12px;width:100%;padding:10px 12px;font-size:14px;font-weight:500;text-decoration:none;transition:all .2s;display:flex}.sidebar-nav a:hover,.sidebar-nav button:hover,.sidebar-nav a.active{color:#063aa4;background:#f3f4f6}.sidebar-nav a.active{font-weight:600}.main-content{flex:1;width:calc(100% - 240px);max-width:1400px;margin-left:240px;padding:32px 40px}.page-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.page-title{color:#111827;letter-spacing:-.02em;margin-bottom:8px;font-size:28px;font-weight:600}.page-breadcrumb{color:#64748b;align-items:center;gap:8px;font-size:14px;display:flex}.user-info{background:#fff;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:12px;padding:8px 12px;display:flex}.card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:20px;padding:24px;box-shadow:0 1px 2px #0000000d}.card-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;display:flex}.card-title{color:#1e293b;align-items:center;gap:8px;font-size:18px;font-weight:600;display:flex}.card-subtitle{color:#64748b;margin-top:4px;font-size:14px}.card-badge{border-radius:6px;padding:4px 12px;font-size:12px;font-weight:600;display:inline-block}.badge-primary{color:#1e40af;background:#e5e7eb}.badge-success{color:#065f46;background:#e8eef9}.badge-warning{color:#92400e;background:#fef3c7}.badge-info{color:#3730a3;background:#e0e7ff}.grid{gap:24px;display:grid}.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}@media (max-width:1024px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.sidebar{display:none}.main-content{width:100%;margin-left:0}}.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px 24px;transition:all .2s;box-shadow:0 1px 2px #0000000d}.stat-card:hover{border-color:#d1d5db;box-shadow:0 4px 6px #00000012}.stat-label{color:#6b7280;text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px;font-size:13px;font-weight:500}.stat-value{color:#111827;letter-spacing:-.02em;margin-bottom:6px;font-size:32px;font-weight:600}.stat-change{font-size:13px;font-weight:500}.stat-change.positive{color:#063aa4}.stat-change.negative{color:#dc2626}.form-label{color:#374151;margin-bottom:8px;font-size:14px;font-weight:500;display:block}.form-input{border:1px solid #d1d5db;border-radius:8px;width:100%;padding:10px 14px;font-family:Inter,sans-serif;font-size:14px;transition:all .2s}.form-input:focus{border-color:#063aa4;outline:none;box-shadow:0 0 0 3px #2563eb1a}.file-upload-area{text-align:center;cursor:pointer;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:12px;padding:32px;transition:all .3s}.file-upload-area:hover,.file-upload-area.active{background:#f3f4f6;border-color:#063aa4}.file-upload-icon{color:#fff;background:linear-gradient(135deg,#063aa4 0% 100%);border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;margin:0 auto 16px;font-size:24px;display:flex}.file-upload-text{color:#64748b;margin-bottom:8px;font-size:14px}.file-upload-text strong{color:#1e293b;font-weight:600}.file-upload-hint{color:#94a3b8;font-size:12px}.file-selected{background:#f1f5f9;border-radius:8px;align-items:center;gap:12px;margin-top:12px;padding:12px 16px;display:flex}.file-selected-icon{color:#063aa4;background:#fff;border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.file-selected-info{flex:1}.file-selected-name{color:#1e293b;font-size:14px;font-weight:500}.file-selected-size{color:#64748b;font-size:12px}.btn{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:10px 20px;font-family:Inter,sans-serif;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex}.btn:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(.3);transform:scale(.98)}.btn:not(:disabled){animation:.3s ease-out buttonEnable}@keyframes buttonEnable{0%{opacity:.4;transform:scale(.98)}to{opacity:1;transform:scale(1)}}.btn-primary{color:#fff;background:#063aa4}.btn-primary:hover:not(:disabled){background:#063aa4;box-shadow:0 2px 4px #2563eb33}.btn-secondary{color:#475569;background:#f1f5f9}.btn-secondary:hover:not(:disabled){background:#e2e8f0}.btn-success{color:#fff;background:#063aa4}.btn-success:hover:not(:disabled){background:#052d7d;box-shadow:0 2px 4px #05966933}.btn-warning{color:#fff;background:#f59e0b}.btn-warning:hover:not(:disabled){background:#d97706;box-shadow:0 2px 4px #d9770633}.btn-danger:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #dc26264d}.btn-group{gap:12px;margin-top:16px;display:flex}.alert{border:1px solid;border-radius:10px;align-items:flex-start;gap:12px;margin-bottom:20px;padding:16px 20px;font-size:14px;display:flex}.alert-icon{flex-shrink:0;width:20px;height:20px}.alert-info{color:#1e40af;background:#f3f4f6;border-color:#d1d5db}.alert-success{color:#065f46;background:#e8eef9;border-color:#6ee7b7}.alert-warning{color:#92400e;background:#fef3c7;border-color:#fde68a}.alert-error{color:#991b1b;background:#fee2e2;border-color:#fecaca}.progress-bar{background:#e2e8f0;border-radius:4px;width:100%;height:8px;margin:12px 0;overflow:hidden}.status-steps{flex-direction:column;gap:12px;margin:16px 0;display:flex}.status-step{background:#f8fafc;border-radius:8px;align-items:center;gap:12px;padding:12px;font-size:14px;display:flex}.status-step.active{color:#1e40af;background:#f3f4f6;font-weight:500}.status-step-icon{color:#fff;background:#cbd5e1;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:12px;font-weight:600;display:flex}.status-step.active .status-step-icon{background:#063aa4}.status-step.completed .status-step-icon{background:#052d7d}.results-container{grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;display:grid}@media (max-width:1024px){.results-container{grid-template-columns:1fr}}.result-panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.result-panel-header{color:#1e293b;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:16px 20px;font-size:14px;font-weight:600}.result-panel-body{max-height:500px;padding:20px;overflow-y:auto}.result-panel pre{white-space:pre-wrap;word-wrap:break-word;color:#334155;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:13px;line-height:1.6}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#00000080;justify-content:center;align-items:center;width:100%;height:100%;padding:20px;display:flex;position:fixed;top:0;left:0}.modal-header{border-bottom:1px solid #e2e8f0;padding:24px 24px 16px}.modal-title{color:#1e293b;font-size:20px;font-weight:700}.modal-footer{background:#f8fafc;border-top:1px solid #e2e8f0;justify-content:flex-end;gap:12px;padding:16px 24px;display:flex}.consent-text{color:#475569;background:#f8fafc;border-radius:8px;max-height:300px;padding:16px;font-size:14px;line-height:1.8;overflow-y:auto}.consent-text p{margin-bottom:12px}.consent-text ul{margin:12px 0 12px 20px}.consent-text li{margin-bottom:8px}.consent-text strong{color:#1e293b;font-weight:600}.consent-checkbox{align-items:flex-start;gap:12px;margin:16px 0;display:flex}.consent-checkbox input[type=checkbox]{cursor:pointer;accent-color:#063aa4;width:20px;height:20px;margin-top:4px;transition:all .2s}.consent-checkbox input[type=checkbox]:checked{animation:.3s checkboxPulse}@keyframes checkboxPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.consent-checkbox label{color:#475569;cursor:pointer;font-size:14px;line-height:1.6}.info-panel{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:20px;padding:16px 20px}.info-panel-title{color:#1e40af;align-items:center;gap:8px;margin-bottom:8px;font-size:14px;font-weight:600;display:flex}.info-panel-content{color:#1e40af;font-size:14px;line-height:1.6}.info-panel ul{margin:12px 0 0 20px}.info-panel li{margin-bottom:8px}.compliance-badge{color:#065f46;background:#e8eef9;border:1px solid #6ee7b7;border-radius:8px;align-items:center;gap:8px;padding:8px 16px;font-size:13px;font-weight:600;display:inline-flex}.page-footer{color:#64748b;border-top:1px solid #e2e8f0;margin-top:40px;padding-top:24px;font-size:13px;line-height:1.6}.page-footer a{color:#063aa4;font-weight:500;text-decoration:none}.page-footer a:hover{text-decoration:underline}.converter-workspace{max-width:1000px}.workspace-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:20px;padding:20px}.section-label{color:#374151;margin-bottom:12px;font-size:14px;font-weight:600;display:block}.input-group{margin-bottom:12px}.input-with-icon{align-items:center;gap:8px;display:flex}.input-icon{flex-shrink:0;font-size:18px}.text-input{color:#374151;background:#f9fafb;border:1px solid #d1d5db;border-radius:6px;flex:1;padding:10px 14px;font-family:Inter,sans-serif;font-size:14px;transition:all .2s}.text-input:focus{background:#fff;border-color:#063aa4;outline:none}.text-input::placeholder{color:#9ca3af}.file-info{color:#6b7280;align-items:center;gap:12px;padding:8px 0;font-size:13px;display:flex}.file-type-badge{color:#1e40af;text-transform:uppercase;background:#e5e7eb;border-radius:4px;padding:4px 10px;font-size:11px;font-weight:600}.file-size{color:#9ca3af}.mode-selector{flex-direction:column;gap:12px;display:flex}.mode-option{position:relative}.mode-option input[type=radio]{opacity:0;position:absolute}.mode-option label{cursor:pointer;border:2px solid #e5e7eb;border-radius:8px;align-items:center;gap:12px;padding:14px 16px;transition:all .2s;display:flex}.mode-option input[type=radio]:checked+label{background:#f3f4f6;border-color:#063aa4}.mode-option label:hover{border-color:#e8eef9}.mode-icon{flex-shrink:0;font-size:24px}.mode-title{color:#111827;font-size:14px;font-weight:600}.mode-description{color:#6b7280;margin-top:2px;font-size:12px}.action-buttons{gap:12px;margin-bottom:20px;display:flex}.header-actions{gap:8px;display:flex}.status-section{background:#f3f4f6;border:1px solid #d1d5db;border-radius:8px;margin-bottom:20px;padding:16px}.status-header{color:#1e40af;align-items:center;gap:8px;margin-bottom:12px;font-size:14px;font-weight:600;display:flex}.status-message{color:#1e40af;margin-bottom:12px;font-size:13px}.progress-bar{background:#e5e7eb;border-radius:3px;width:100%;height:6px;overflow:hidden}.progress-fill{background:#063aa4;height:100%;transition:width .3s}.progress-fill.animate{animation:2s ease-in-out infinite progress-animation}@keyframes progress-animation{0%{width:0%}50%{width:70%}to{width:100%}}.success-badge{color:#065f46;background:#e8eef9;border:1px solid #6ee7b7;border-radius:8px;align-items:flex-start;gap:12px;margin-bottom:16px;padding:14px 16px;font-size:14px;display:flex}.success-badge span:first-child{font-size:20px}.code-tabs{border-bottom:2px solid #e5e7eb;align-items:center;gap:4px;margin-bottom:0;display:flex}.tab{color:#6b7280;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-2px;padding:10px 16px;font-size:13px;font-weight:500;transition:all .2s;display:flex}.tab:hover{color:#111827;background:#f9fafb}.tab.active{color:#063aa4;border-bottom-color:#063aa4;font-weight:600}.tab-action{cursor:pointer;background:0 0;border:none;border-radius:4px;margin-left:auto;padding:8px 12px;font-size:16px;transition:all .2s}.tab-action:hover{background:#f3f4f6}.code-block{background:#1e293b;border-radius:0 0 8px 8px;max-height:500px;margin:0;padding:0;overflow:auto}.code-block pre{color:#e2e8f0;margin:0;padding:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:13px;line-height:1.6;overflow-x:auto}.code-block code{color:#e2e8f0;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif}.collapsible-header{cursor:pointer;color:#374151;background:#f9fafb;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:0;padding:14px 16px;font-size:14px;font-weight:600;transition:all .2s;display:flex}.collapsible-header:hover{background:#f3f4f6}.response-details{background:#f9fafb;border-radius:0 0 8px 8px;margin-top:-8px;padding:16px}.response-item{border-bottom:1px solid #e5e7eb;justify-content:space-between;padding:10px 0;font-size:13px;display:flex}.response-item:last-child{border-bottom:none}.response-label{color:#6b7280;font-weight:500}.response-value{color:#111827;font-weight:600}.sidebar-footer{border-top:1px solid #e5e7eb;margin-top:auto;padding-top:20px}.usage-indicator{margin-bottom:16px}.usage-bar{background:#e5e7eb;border-radius:2px;width:100%;height:4px;overflow:hidden}.usage-fill{background:#063aa4;height:100%;transition:width .3s}.sidebar-footer-links{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.sidebar-footer-links a{color:#6b7280;border-radius:4px;padding:6px 8px;font-size:12px;text-decoration:none;transition:all .2s}.sidebar-footer-links a:hover{color:#111827;background:#f3f4f6}.sidebar-footer-info{color:#94a3b8;text-align:center;padding:8px 0;font-size:11px}.alert{border-radius:8px;align-items:flex-start;gap:12px;margin-bottom:16px;padding:14px 16px;font-size:14px;display:flex}.alert span:first-child{flex-shrink:0;font-size:18px}.alert-error{color:#991b1b;background:#fee2e2;border:1px solid #fca5a5}.alert-warning{color:#92400e;background:#fef3c7;border:1px solid #fde047}.alert-info{color:#1e40af;background:#e5e7eb;border:1px solid #e8eef9}.alert-success{color:#065f46;background:#e8eef9;border:1px solid #6ee7b7}@media (max-width:768px){.sidebar{border-bottom:1px solid #e5e7eb;border-right:none;width:100%;height:auto;position:relative}.main-content{width:100%;margin-left:0;padding:20px}.action-buttons{flex-direction:column}.section-header-with-actions{flex-direction:column;align-items:flex-start;gap:12px}}.login-container{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{background:#fff;border-radius:16px;width:100%;max-width:420px;padding:40px;box-shadow:0 20px 60px #0000004d}.login-header{text-align:center;margin-bottom:32px}.login-logo{justify-content:center;align-items:center;gap:12px;margin-bottom:8px;display:flex}.login-logo-icon{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;font-size:24px;font-weight:700;display:flex}.login-logo h1{color:#111827;margin:0;font-size:28px;font-weight:700}.login-subtitle{color:#6b7280;font-size:14px}.login-form{margin-bottom:24px}.form-group{margin-bottom:20px}.form-group label{color:#374151;margin-bottom:8px;font-size:14px;font-weight:600;display:block}.form-group input,.form-group select{border:1px solid #d1d5db;border-radius:8px;width:100%;padding:12px 14px;font-family:Inter,sans-serif;font-size:14px;transition:all .2s}.form-group input:focus,.form-group select:focus{border-color:#667eea;outline:none;box-shadow:0 0 0 3px #667eea1a}.form-group input:disabled{cursor:not-allowed;background:#f3f4f6}.btn-block{width:100%;padding:14px;font-size:15px;font-weight:600}.login-footer{color:#6b7280;text-align:center;background:#f9fafb;border-radius:8px;padding:16px;font-size:12px}.login-footer p{margin:4px 0}.sidebar-user-info{background:#f9fafb;border-radius:8px;gap:12px;margin-bottom:20px;padding:16px;display:flex}.role-badge{text-transform:uppercase;border-radius:4px;margin-top:4px;padding:4px 10px;font-size:11px;font-weight:700;display:inline-block}.role-superadmin{color:#92400e;background:#fef3c7}.role-admin{color:#1e40af;background:#e5e7eb}.role-manager{color:#065f46;background:#e8eef9}.role-supervisor{color:#3730a3;background:#e0e7ff}.role-user{color:#374151;background:#e5e7eb}.status-badge{border-radius:4px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.status-badge.active{color:#065f46;background:#e8eef9}.status-badge.inactive{color:#991b1b;background:#fee2e2}.table-container{border:1px solid #e5e7eb;border-radius:8px;overflow-x:auto}.data-table{border-collapse:collapse;background:#fff;width:100%}.data-table thead{background:#f9fafb}.data-table th{text-align:left;color:#374151;text-transform:uppercase;letter-spacing:.03em;border-bottom:2px solid #e5e7eb;padding:12px 16px;font-size:13px;font-weight:600}.data-table td{color:#111827;border-bottom:1px solid #e5e7eb;padding:14px 16px;font-size:14px}.data-table tbody tr:hover{background:#f9fafb}.modal-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border-radius:12px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.modal-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.modal-header h3{color:#111827;margin:0;font-size:18px;font-weight:600}.modal-close{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;font-size:28px;transition:all .2s;display:flex}.modal-close:hover{color:#111827;background:#f3f4f6}.modal-body{padding:24px}.modal-actions{gap:12px;margin-top:24px;display:flex}.permission-matrix{margin-top:24px}.matrix-module{margin-bottom:32px}.matrix-module-title{color:#111827;background:#f3f4f6;border-radius:6px;margin-bottom:16px;padding:8px 12px;font-size:16px;font-weight:600}.matrix-table-wrapper{border:1px solid #e5e7eb;border-radius:8px;overflow-x:auto}.matrix-table{border-collapse:collapse;background:#fff;width:100%}.matrix-table thead{background:#f9fafb}.matrix-table th{text-align:center;color:#374151;text-transform:uppercase;border-bottom:2px solid #e5e7eb;padding:12px 16px;font-size:13px;font-weight:600}.matrix-table .feature-name{text-align:left;text-transform:capitalize;font-weight:500}.matrix-table td{text-align:center;border-bottom:1px solid #e5e7eb;padding:12px 16px}.role-header{text-transform:capitalize!important}.permission-cell{background:#fafafa}.permission-badge{border-radius:4px;padding:4px 10px;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:12px;font-weight:700;display:inline-block}.permission-badge.has-permission{color:#065f46;background:#e8eef9}.permission-badge.no-permission{color:#9ca3af;background:#f3f4f6}.matrix-legend{background:#f9fafb;border-radius:8px;margin-top:24px;padding:16px}.matrix-legend h4{color:#111827;margin-bottom:12px;font-size:14px;font-weight:600}.legend-items{flex-wrap:wrap;gap:20px;display:flex}.legend-items span{color:#6b7280;font-size:13px}.section-title{color:#111827;letter-spacing:-.02em;margin-bottom:8px;font-size:24px;font-weight:600}.section-description{color:#6b7280;margin-bottom:20px;font-size:14px}.loading-state{text-align:center;color:#6b7280;padding:40px;font-size:14px}@media (max-width:768px){.login-card{padding:24px}.sidebar-user-info{flex-direction:column}.matrix-table{font-size:12px}.matrix-table th,.matrix-table td{padding:8px}}.dashboard-container{height:100vh;display:flex;overflow:hidden}.sidebar-nav ul{margin:0;padding:0;list-style:none}.sidebar-nav button,.sidebar-nav a{color:#374151;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:12px;width:100%;padding:12px 16px;font-size:14px;text-decoration:none;transition:all .2s;display:flex}.sidebar-nav button:hover,.sidebar-nav a:hover,.sidebar-nav button.active{color:#111827;background:#f3f4f6}.sidebar-nav button.active{color:#4f46e5;background:#e0e7ff;font-weight:600}.main-content{background:#fafafa;flex:1;padding:24px;overflow-y:auto}.section-header-with-actions{justify-content:space-between;align-items:flex-start;margin-bottom:24px;display:flex}.user-avatar{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:16px;font-weight:700;display:flex}.btn-sm{padding:8px 14px;font-size:13px}.btn-danger{color:#fff;background:#ef4444}.btn-danger:hover{background:#dc2626}.login-tabs{background:#f3f4f6;border-radius:8px;gap:8px;margin-bottom:24px;padding:4px;display:flex}.login-tabs button{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:6px;flex:1;padding:10px 16px;font-size:14px;font-weight:600;transition:all .2s}.login-tabs button:hover{color:#111827}.login-tabs button.active{color:#667eea;background:#fff;box-shadow:0 1px 3px #0000001a}.alert-success{color:#065f46;background:#e8eef9;border-radius:8px;align-items:center;gap:8px;margin-bottom:16px;padding:12px 16px;font-size:14px;display:flex}.alert-success span{font-weight:700}@media (max-width:900px){.pricing-cards-grid{grid-template-columns:1fr!important;gap:20px!important}}
:root{--tesla-black:#000;--tesla-dark-gray:#181818;--tesla-gray:#393c41;--tesla-light-gray:#5c5e62;--tesla-white:#fff;--tesla-red:#063aa4;--tesla-red-hover:#15803d;--bg-primary:var(--tesla-black);--bg-secondary:var(--tesla-dark-gray);--bg-tertiary:var(--tesla-gray);--text-primary:var(--tesla-white);--text-secondary:var(--tesla-light-gray);--accent:var(--tesla-red);--accent-hover:var(--tesla-red-hover);--status-success:#063aa4;--status-warning:#f59e0b;--status-error:var(--tesla-red);--status-info:#063aa4;--risk-low:#063aa4;--risk-medium:#f59e0b;--risk-high:#f97316;--risk-critical:var(--tesla-red);--space-xs:4px;--space-sm:8px;--space-md:16px;--space-lg:24px;--space-xl:32px;--space-2xl:48px;--radius-sm:4px;--radius-md:8px;--radius-lg:12px;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a;--shadow-glow:0 0 20px #16a34a4d;--font-sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background:var(--bg-primary);color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:14px;line-height:1.5}.tesla-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-lg);border:1px solid #ffffff1a;transition:all .2s cubic-bezier(.4,0,.2,1)}.tesla-card:hover{box-shadow:var(--shadow-lg);border-color:#fff3;transform:translateY(-2px)}.tesla-btn{border-radius:var(--radius-sm);cursor:pointer;font-size:14px;font-weight:600;font-family:var(--font-sans);border:none;padding:12px 24px;transition:all .2s cubic-bezier(.4,0,.2,1)}.tesla-btn-primary{background:var(--accent);color:var(--tesla-white)}.tesla-btn-primary:hover{background:var(--accent-hover);box-shadow:var(--shadow-glow);transform:translateY(-1px)}.tesla-btn-secondary{background:var(--bg-tertiary);color:var(--text-primary)}.tesla-btn-secondary:hover{background:var(--tesla-light-gray)}.tesla-btn-ghost{color:var(--text-primary);background:0 0;border:1px solid #fff3}.tesla-btn-ghost:hover{background:#ffffff0d;border-color:#fff6}.tesla-input{background:var(--bg-tertiary);border-radius:var(--radius-sm);color:var(--text-primary);font-size:14px;font-family:var(--font-sans);border:1px solid #ffffff1a;width:100%;padding:12px 16px;transition:all .2s cubic-bezier(.4,0,.2,1)}.tesla-input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #16a34a1a}.tesla-input::placeholder{color:var(--text-secondary)}.tesla-badge{text-transform:uppercase;letter-spacing:.5px;border-radius:999px;align-items:center;padding:4px 12px;font-size:12px;font-weight:600;display:inline-flex}.tesla-badge-superadmin{color:var(--tesla-red);border:1px solid var(--tesla-red);background:#16a34a1a}.tesla-badge-admin{color:#a78bfa;background:#8b5cf61a;border:1px solid #8b5cf6}.tesla-badge-manager{color:#063aa4;background:#3b82f61a;border:1px solid #063aa4}.tesla-badge-supervisor{color:#34d399;background:#10b9811a;border:1px solid #063aa4}.tesla-badge-user{color:var(--text-secondary);background:#ffffff0d;border:1px solid #fff3}.tesla-status{border-radius:999px;align-items:center;gap:6px;padding:4px 12px;font-size:12px;font-weight:600;display:inline-flex}.tesla-status-success{color:var(--status-success);background:#10b9811a}.tesla-status-warning{color:var(--status-warning);background:#f59e0b1a}.tesla-status-error{color:var(--tesla-red);background:#16a34a1a}.tesla-status-info{color:var(--status-info);background:#3b82f61a}.status-dot{border-radius:50%;width:8px;height:8px;display:inline-block}.status-dot-active{background:var(--status-success);box-shadow:0 0 8px var(--status-success)}.status-dot-inactive{background:var(--text-secondary)}.status-dot-suspended{background:var(--tesla-red);box-shadow:0 0 8px var(--tesla-red)}.risk-indicator{align-items:center;gap:6px;font-size:12px;font-weight:600;display:inline-flex}.risk-low{color:var(--risk-low)}.risk-medium{color:var(--risk-medium)}.risk-high{color:var(--risk-high)}.risk-critical{color:var(--risk-critical)}.tesla-table{border-collapse:separate;border-spacing:0;width:100%}.tesla-table thead{background:var(--bg-secondary)}.tesla-table th{text-align:left;text-transform:uppercase;letter-spacing:.5px;color:var(--text-secondary);border-bottom:1px solid #ffffff1a;padding:16px;font-size:12px;font-weight:600}.tesla-table td{border-bottom:1px solid #ffffff0d;padding:16px}.tesla-table tbody tr{transition:all .2s cubic-bezier(.4,0,.2,1)}.tesla-table tbody tr:hover{background:#ffffff05}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--tesla-gray);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--tesla-light-gray)}.text-primary{color:var(--text-primary)}.text-secondary{color:var(--text-secondary)}.text-accent{color:var(--accent)}.bg-primary{background:var(--bg-primary)}.bg-secondary{background:var(--bg-secondary)}.bg-tertiary{background:var(--bg-tertiary)}
