*{margin:0;padding:0;box-sizing:border-box}.landing-page{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:#1a202c;line-height:1.6;overflow-x:hidden;background:#fff}.container{max-width:1200px;margin:0 auto;padding:0 2rem}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-15px)}}@keyframes gentleFloat{0%,to{transform:translate(0)}33%{transform:translate(30px,-30px)}66%{transform:translate(-20px,20px)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.navbar{position:fixed;top:0;left:0;right:0;z-index:1000;background:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0;transition:all .3s ease}.navbar.scrolled{box-shadow:0 2px 8px #00000014;padding:.75rem 0}.navbar .container{display:flex;justify-content:space-between;align-items:center}.brand-logo{display:flex;align-items:center;gap:.75rem;text-decoration:none;transition:opacity .2s}.brand-logo:hover{opacity:.8}.logo-icon{font-size:2rem;line-height:1}.logo-text{font-size:1.25rem;font-weight:700;color:#0f172a;letter-spacing:-.02em}.nav-links{display:flex;gap:2rem;align-items:center}.nav-link{background:none;border:none;color:#64748b;font-weight:500;font-size:.9rem;cursor:pointer;transition:color .2s;text-decoration:none;padding:0}.nav-link:hover{color:#0f172a}.btn-login{display:flex;align-items:center;gap:.5rem;padding:.5rem 1.25rem;background:#3b82f6;color:#fff;border-radius:6px;font-weight:600;font-size:.9rem;text-decoration:none;transition:all .2s}.btn-login:hover{background:#2563eb;transform:translateY(-1px)}.arrow{font-size:1rem;transition:transform .2s}.btn-login:hover .arrow{transform:translate(3px)}.hero{position:relative;min-height:100vh;display:flex;align-items:center;padding:8rem 0 6rem;background:linear-gradient(135deg,#f0f9ff,#e0f2fe,#f8fafc);overflow:hidden}.hero-background{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:0}.gradient-orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.3;animation:gentleFloat 20s ease-in-out infinite}.orb-1{width:500px;height:500px;background:linear-gradient(135deg,#3b82f6,#8b5cf6);top:-200px;right:-100px;animation-delay:0s}.orb-2{width:400px;height:400px;background:linear-gradient(135deg,#06b6d4,#3b82f6);bottom:-150px;left:-100px;animation-delay:7s}.orb-3{width:350px;height:350px;background:linear-gradient(135deg,#8b5cf6,#ec4899);top:50%;left:50%;animation-delay:14s}.hero-content{position:relative;z-index:1;max-width:800px;margin:0 auto;text-align:center;animation:fadeInUp .8s ease-out}.hero-badge{display:inline-flex;align-items:center;gap:.5rem;background:#fff;padding:.5rem 1.25rem;border-radius:50px;font-size:.85rem;font-weight:600;color:#3b82f6;margin-bottom:2rem;box-shadow:0 4px 12px #00000014;animation:fadeInUp .8s ease-out .2s both}.badge-dot{width:8px;height:8px;background:#10b981;border-radius:50%;animation:pulse 2s ease-in-out infinite}.hero-title{font-size:3.5rem;font-weight:800;line-height:1.2;margin-bottom:1.5rem;color:#0f172a;letter-spacing:-.02em;animation:fadeInUp .8s ease-out .3s both}.gradient-text{background:linear-gradient(135deg,#3b82f6,#8b5cf6,#ec4899);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;display:inline-block}.hero-subtitle{font-size:1.25rem;line-height:1.8;color:#475569;margin-bottom:3rem;max-width:700px;margin-left:auto;margin-right:auto;animation:fadeInUp .8s ease-out .4s both}.hero-buttons{display:flex;gap:1rem;justify-content:center;margin-bottom:3rem;animation:fadeInUp .8s ease-out .5s both}.btn{display:flex;align-items:center;gap:.5rem;padding:1rem 2rem;font-size:1rem;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.btn:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:#ffffff4d;transform:translate(-50%,-50%);transition:width .5s,height .5s}.btn:hover:before{width:300px;height:300px}.btn-primary{background:linear-gradient(135deg,#3b82f6,#8b5cf6);color:#fff;box-shadow:0 8px 20px #3b82f64d}.btn-primary:hover{transform:translateY(-3px);box-shadow:0 12px 28px #3b82f666}.btn-secondary{background:#fff;color:#3b82f6;border:2px solid #e2e8f0;box-shadow:0 4px 12px #0000000d}.btn-secondary:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0000001a;border-color:#3b82f6}.btn-icon{font-size:1.1rem;transition:transform .3s ease}.btn:hover .btn-icon{transform:translate(4px)}.btn-large{padding:1.25rem 2.5rem;font-size:1.1rem}.hero-features{display:flex;gap:2rem;justify-content:center;flex-wrap:wrap;animation:fadeInUp .8s ease-out .6s both}.hero-feature{display:flex;align-items:center;gap:.5rem;color:#64748b;font-size:.95rem;font-weight:500}.feature-check{color:#10b981;font-weight:700;font-size:1.1rem}.hero-wave{position:absolute;bottom:-1px;left:0;width:100%;z-index:1}.hero-wave svg{width:100%;height:auto;display:block}.stats-section{padding:3rem 0;background:#fafafa}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.stat-card{text-align:center;padding:1.5rem 1rem;background:#fff;border-radius:12px;border:1px solid #e5e7eb;transition:all .2s ease}.stat-card:hover{transform:translateY(-4px);box-shadow:0 4px 12px #00000014;border-color:#3b82f6}.stat-icon{font-size:2rem;margin-bottom:.75rem}.stat-number{font-size:2rem;font-weight:700;color:#1f2937;margin:0 0 .25rem}.stat-label{font-size:.875rem;color:#6b7280;margin:0;font-weight:500}.trust-section{padding:3rem 0;background:#fff;border-bottom:1px solid #e2e8f0;animation:fadeIn .8s ease-out}.trust-text{text-align:center;color:#64748b;font-size:1rem;font-weight:600;margin-bottom:2rem;text-transform:uppercase;letter-spacing:.05em;font-size:.85rem}.trust-badges{display:flex;justify-content:center;gap:1.5rem;flex-wrap:wrap}.trust-badge{display:flex;align-items:center;gap:.75rem;background:linear-gradient(135deg,#f8fafc,#f1f5f9);padding:1rem 1.75rem;border-radius:12px;border:1px solid #e2e8f0;font-weight:600;color:#475569;font-size:.95rem;transition:all .3s cubic-bezier(.4,0,.2,1);animation:fadeInUp .6s ease-out both}.trust-badge:nth-child(1){animation-delay:.1s}.trust-badge:nth-child(2){animation-delay:.2s}.trust-badge:nth-child(3){animation-delay:.3s}.trust-badge:nth-child(4){animation-delay:.4s}.trust-badge:hover{transform:translateY(-4px);box-shadow:0 8px 20px #00000014;border-color:#3b82f6;background:#fff}.badge-icon{font-size:1.5rem}.section{padding:6rem 0;animation:fadeIn .8s ease-out}.section:nth-child(2n){background:linear-gradient(180deg,#f0f9ff,#fff)}.section-header{text-align:center;margin-bottom:2rem;animation:fadeInUp .8s ease-out}.section-badge{display:inline-flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);padding:.5rem 1.25rem;border-radius:50px;font-size:.875rem;font-weight:600;color:#3b82f6;margin-bottom:1rem;border:1px solid #bfdbfe}.section-header h2{font-size:1.5rem;font-weight:700;color:#1f2937;margin-bottom:.5rem}.section-header p{font-size:.875rem;color:#6b7280;max-width:600px;margin:0 auto;line-height:1.6}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.feature-card{background:#fff;padding:1.25rem;border-radius:10px;border:1px solid #e5e7eb;transition:all .2s ease}.feature-card:hover{transform:translateY(-3px);box-shadow:0 3px 10px #00000014;border-color:#3b82f6}.feature-icon{font-size:1.75rem;margin-bottom:.75rem;display:block}.feature-card h3{font-size:1rem;font-weight:600;color:#1f2937;margin-bottom:.4rem}.feature-card p{color:#6b7280;line-height:1.5;font-size:.8rem;margin:0}.feature-arrow{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-radius:8px;font-size:1.25rem;color:#3b82f6;transition:all .4s ease;margin-top:.5rem}.feature-card:hover .feature-arrow{background:linear-gradient(135deg,#3b82f6,#8b5cf6);color:#fff;transform:translate(4px)}.contact-container{max-width:750px;margin:0 auto}.contact-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem;margin-bottom:1.5rem}.contact-card{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);padding:.625rem;border-radius:8px;border:1px solid #bae6fd;text-align:center;transition:all .2s ease}.contact-card:hover{background:linear-gradient(135deg,#e0f2fe,#bae6fd);border-color:#3b82f6;transform:translateY(-2px)}.contact-card-icon{font-size:1.15rem;margin-bottom:.3rem}.contact-card h4{font-size:.625rem;font-weight:600;color:#0369a1;margin-bottom:.15rem;text-transform:uppercase;letter-spacing:.03em}.contact-card p{color:#0c4a6e;font-size:.7rem;margin:0;font-weight:500}.contact-form-simple{background:#fff;padding:1.25rem;border-radius:10px;border:1px solid #e5e7eb}.form-row{display:grid;grid-template-columns:repeat(2,1fr);gap:.625rem;margin-bottom:.625rem}.form-group{margin-bottom:.625rem}.form-group:last-child{margin-bottom:0}.form-group label{display:block;font-weight:500;color:#374151;margin-bottom:.35rem;font-size:.75rem}.form-group input,.form-group textarea{width:100%;padding:.5rem;border:1px solid #e5e7eb;border-radius:6px;font-size:.75rem;transition:all .2s ease;font-family:inherit;background:#fafafa}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px #3b82f61a}.form-group input::placeholder,.form-group textarea::placeholder{color:#9ca3af}.contact-form-simple .btn{width:100%;margin-top:.5rem}.testimonials-preview{background:#fff}.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:2rem}.testimonial-card{background:#fff;padding:2rem;border-radius:16px;border:1px solid #e2e8f0;box-shadow:0 4px 12px #0000000d;transition:all .3s cubic-bezier(.4,0,.2,1);animation:fadeInUp .6s ease-out both}.testimonial-card:nth-child(1){animation-delay:.1s}.testimonial-card:nth-child(2){animation-delay:.2s}.testimonial-card:nth-child(3){animation-delay:.3s}.testimonial-card:hover{transform:translateY(-8px);box-shadow:0 12px 32px #0000001f;border-color:#cbd5e1}.testimonial-stars{font-size:1.25rem;margin-bottom:1.5rem;letter-spacing:2px}.testimonial-text{color:#475569;font-size:1rem;line-height:1.7;margin-bottom:1.5rem;font-style:italic}.testimonial-author{display:flex;align-items:center;gap:1rem;padding-top:1.5rem;border-top:1px solid #e2e8f0}.author-avatar{width:48px;height:48px;background:linear-gradient(135deg,#3b82f6,#8b5cf6);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;flex-shrink:0}.testimonial-author h4{font-size:1rem;font-weight:600;color:#0f172a;margin:0 0 .25rem}.testimonial-author p{font-size:.875rem;color:#64748b;margin:0}.cta-section{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;padding:6rem 0;text-align:center;position:relative;overflow:hidden}.cta-section:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at 30% 50%,rgba(59,130,246,.1) 0%,transparent 50%),radial-gradient(circle at 70% 50%,rgba(139,92,246,.1) 0%,transparent 50%)}.cta-content{position:relative;z-index:1;max-width:800px;margin:0 auto}.cta-content h2{font-size:2.75rem;font-weight:800;margin-bottom:1.5rem;letter-spacing:-.02em;animation:fadeInUp .8s ease-out}.cta-content>p{font-size:1.25rem;margin-bottom:3rem;opacity:.9;line-height:1.7;animation:fadeInUp .8s ease-out .2s both}.cta-buttons{display:flex;gap:1rem;justify-content:center;margin-bottom:2rem;animation:fadeInUp .8s ease-out .4s both}.cta-features{display:flex;gap:1rem;justify-content:center;align-items:center;flex-wrap:wrap;color:#fffc;font-size:.95rem;animation:fadeInUp .8s ease-out .6s both}.footer{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;padding:4rem 0 2rem;position:relative}.footer:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(59,130,246,.5),transparent)}.footer-content{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:3rem;margin-bottom:3rem}.footer-brand{max-width:350px}.footer-logo{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem}.footer-logo-img{height:60px;width:auto;object-fit:contain;filter:brightness(0) invert(1);opacity:.9}.footer-logo-text{display:flex;align-items:center;gap:.75rem}.footer-logo .logo-icon{font-size:2rem}.footer-logo .logo-text{font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,#3b82f6,#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.footer-description{color:#94a3b8;line-height:1.7;font-size:.95rem}.footer-section h4{font-size:1rem;font-weight:700;margin-bottom:1.5rem;color:#fff}.footer-link{display:block;color:#94a3b8;text-decoration:none;margin-bottom:.75rem;transition:all .3s ease;font-size:.95rem;background:none;border:none;padding:0;text-align:left;cursor:pointer;font-family:inherit}.footer-link:hover{color:#fff;transform:translate(4px)}.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:2rem;border-top:1px solid rgba(255,255,255,.1);color:#94a3b8;font-size:.9rem}.footer-tagline{color:#64748b}@media (max-width: 1024px){.hero-title{font-size:3rem}.stats-grid,.footer-content,.features-grid{grid-template-columns:repeat(2,1fr)}.contact-wrapper{grid-template-columns:1fr;gap:2rem}.trust-badges{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.container{padding:0 1.5rem}.nav-links{gap:1rem}.nav-link{font-size:.875rem}.btn-login{padding:.625rem 1.25rem;font-size:.875rem}.hero{padding:6rem 0 4rem}.hero-title{font-size:2.25rem}.hero-subtitle{font-size:1.1rem}.hero-buttons{flex-direction:column}.hero-features{flex-direction:column;gap:1rem}.stats-grid,.trust-badges,.features-grid,.contact-wrapper{grid-template-columns:1fr}.contact-info-section,.contact-form-modern{padding:2rem}.contact-info-grid,.form-row{grid-template-columns:1fr}.contact-form-simple{padding:2rem}.cta-content h2{font-size:2rem}.cta-buttons{flex-direction:column}.cta-features{flex-direction:column;gap:.5rem}.cta-divider{display:none}.footer-content{grid-template-columns:1fr;gap:2rem}.footer-bottom{flex-direction:column;gap:1rem;text-align:center}.section-header h2{font-size:2rem}.trust-title{font-size:1.5rem}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem}.login-box{background:#fff;border-radius:20px;padding:3rem 2.5rem;max-width:520px;width:100%;box-shadow:0 8px 32px #0000001f;border:1px solid #e5e7eb;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:2.5rem}.login-header h1{font-size:2rem;font-weight:700;color:#0f172a;margin-bottom:.75rem;display:flex;align-items:center;justify-content:center;gap:.75rem}.hospital-slug{font-size:1rem;color:#3b82f6;font-weight:600;margin-bottom:.5rem}.login-subtitle{font-size:.95rem;color:#64748b;font-weight:500;margin:.5rem 0 0}.error-message{background:#fed7d7;color:#c53030;padding:1rem;border-radius:8px;margin-bottom:1.5rem;font-size:.9rem;border-left:4px solid #c53030}.form-group{margin-bottom:1.5rem;display:flex;flex-direction:column;gap:.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#334155;font-weight:600;font-size:.95rem}.form-group input{width:100%;padding:.875rem 1rem;border:2px solid #e2e8f0;border-radius:10px;font-size:1rem;transition:all .2s;font-family:inherit;background:#fafafa}.form-group input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group input:disabled{background-color:#f7fafc;cursor:not-allowed}.btn-primary{width:100%;background:#3b82f6;color:#fff;padding:1rem 1.5rem;font-size:1.05rem;font-weight:600;border:none;border-radius:10px;cursor:pointer;transition:all .2s;margin-top:.5rem}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 20px #667eea4d}.btn-primary:active:not(:disabled){transform:translateY(0)}.login-footer{margin-top:2rem;text-align:center;border-top:1px solid #e2e8f0;padding-top:1.5rem}.security-note{font-size:.9rem;color:#64748b;margin-bottom:.75rem}.tenant-info{font-size:.85rem;color:#94a3b8;margin:0}.tenant-info small{color:#a0aec0;font-size:.8rem}.tenant-info code{background:#f7fafc;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;color:#667eea}.login-loading,.login-error{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;text-align:center}.login-loading .spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.login-loading p,.login-error p{font-size:1rem;margin:.5rem 0}.login-error h2{font-size:1.5rem;margin:0 0 1rem}.login-error code{background:#fff3;padding:.25rem .5rem;border-radius:4px;font-size:.9rem}@media (max-width: 480px){.login-box{padding:2rem 1.5rem}.login-header h1{font-size:1.5rem}}.dashboard-container{max-width:1400px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif}.dashboard-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:1rem}.spinner{width:50px;height:50px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.dashboard-error{background:#fee;border:2px solid #fcc;border-radius:8px;padding:2rem;text-align:center;margin:2rem}.dashboard-error h2{color:#c33;margin-bottom:1rem}.dashboard-error button{margin-top:1rem;padding:.75rem 1.5rem;background:#3498db;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:1rem}.dashboard-error button:hover{background:#2980b9}.dashboard-header{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 4px 6px #0000001a}.hospital-info h1{margin:0 0 .5rem;font-size:2rem}.hospital-meta{display:flex;gap:1rem;font-size:.9rem;opacity:.95}.hospital-code,.hospital-slug{background:#fff3;padding:.25rem .75rem;border-radius:4px}.hospital-status{padding:.25rem .75rem;border-radius:4px;font-weight:600;text-transform:uppercase;font-size:.75rem}.status-active{background:#27ae60}.status-inactive{background:#95a5a6}.status-suspended{background:#e74c3c}.user-info{text-align:right}.user-info p{margin:0 0 .5rem}.user-role{background:#fff3;padding:.25rem .75rem;border-radius:4px;font-size:.85rem;font-weight:600}.hospital-context-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin-bottom:2rem}.context-item{background:#f8f9fa;padding:1rem;border-radius:8px;border-left:4px solid #3498db}.context-label{display:block;font-size:.85rem;color:#666;margin-bottom:.5rem;font-weight:600}.context-item code{background:#fff;padding:.5rem;border-radius:4px;display:block;font-family:Courier New,monospace;font-size:.9rem;color:#2c3e50}.dashboard-content h2{margin-bottom:1.5rem;color:#2c3e50}.modules-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem}.module-card{background:#fff;border:2px solid #e0e0e0;border-radius:12px;padding:1.5rem;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 4px #0000000d}.module-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px #00000026;border-color:#3498db}.module-icon{font-size:3rem;margin-bottom:1rem;text-align:center}.module-name{font-size:1.25rem;margin:0 0 .5rem;color:#2c3e50}.module-description{color:#666;font-size:.9rem;line-height:1.5;margin-bottom:1rem}.module-footer{display:flex;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid #eee}.module-key{background:#ecf0f1;padding:.25rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;color:#7f8c8d}.no-modules{background:#fff3cd;border:2px solid #ffc107;border-radius:8px;padding:2rem;text-align:center;color:#856404}.no-modules p{margin:.5rem 0}.disabled-modules-section{margin-top:3rem;padding:2rem;background:#f8f9fa;border-radius:12px}.disabled-modules-section h3{color:#2c3e50;margin-bottom:.5rem}.section-note{color:#666;font-size:.9rem;margin-bottom:1.5rem}.disabled-modules-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.disabled-module-item{display:flex;align-items:center;gap:.5rem;background:#fff;padding:.75rem;border-radius:6px;border:1px solid #ddd;opacity:.6}.module-icon-small{font-size:1.5rem}.module-name-small{flex:1;font-size:.9rem;color:#666}.disabled-badge{background:#e74c3c;color:#fff;padding:.25rem .5rem;border-radius:4px;font-size:.7rem;font-weight:600}.architecture-info{margin-top:3rem;background:#e8f5e9;border:2px solid #4caf50;border-radius:12px;padding:1.5rem}.architecture-info h4{color:#2e7d32;margin:0 0 1rem;font-size:1.1rem}.architecture-info ul{list-style:none;padding:0;margin:0}.architecture-info li{padding:.5rem 0;color:#1b5e20;font-size:.95rem}.architecture-info code{background:#fff;padding:.2rem .5rem;border-radius:4px;font-family:Courier New,monospace;color:#c7254e}@media (max-width: 768px){.dashboard-header{flex-direction:column;text-align:center;gap:1rem}.user-info{text-align:center}.modules-grid,.hospital-context-info{grid-template-columns:1fr}}.patient-container{max-width:1400px;margin:0 auto;padding:2rem;background:#f5f7fa;min-height:100vh}.patient-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a}.patient-header h1{margin:0;font-size:2rem;color:#2c3e50}.subtitle{color:#7f8c8d;margin:.5rem 0 0;font-size:.95rem}.header-actions{display:flex;gap:1rem}.btn-primary{background:#3498db;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease;font-weight:500}.btn-primary:hover{background:#2980b9;transform:translateY(-2px);box-shadow:0 4px 12px #3498db4d}.btn-primary:disabled{background:#bdc3c7;cursor:not-allowed;transform:none}.btn-secondary{background:#fff;color:#3498db;border:2px solid #3498db;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease;font-weight:500}.btn-secondary:hover{background:#3498db;color:#fff}.btn-action{background:#27ae60;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .2s ease}.btn-action:hover{background:#229954;transform:scale(1.05)}.loading{text-align:center;padding:3rem;font-size:1.2rem;color:#7f8c8d}.error-message{background:#fee;border:1px solid #fcc;color:#c33;padding:1rem;border-radius:8px;margin-bottom:1.5rem;display:flex;justify-content:space-between;align-items:center}.error-message button{background:#c33;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer}.patient-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a;text-align:center;transition:transform .3s ease}.stat-card:hover{transform:translateY(-4px);box-shadow:0 4px 16px #00000026}.stat-value{font-size:2.5rem;font-weight:700;color:#3498db;margin-bottom:.5rem}.stat-label{color:#7f8c8d;font-size:.95rem;text-transform:uppercase;letter-spacing:.5px}.empty-state{background:#fff;padding:4rem 2rem;border-radius:12px;text-align:center;box-shadow:0 2px 8px #0000001a}.empty-icon{font-size:4rem;margin-bottom:1rem;opacity:.5}.empty-state h3{color:#2c3e50;margin-bottom:.5rem}.empty-state p{color:#7f8c8d;margin-bottom:2rem}.patient-table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden}.patient-table{width:100%;border-collapse:collapse}.patient-table thead{background:#34495e;color:#fff}.patient-table th{padding:1rem;text-align:left;font-weight:600;text-transform:uppercase;font-size:.85rem;letter-spacing:.5px}.patient-table tbody tr{border-bottom:1px solid #ecf0f1;transition:background .2s ease}.patient-table tbody tr:hover{background:#f8f9fa}.patient-table td{padding:1rem;color:#2c3e50}.mrn-cell{font-weight:600;color:#3498db;font-family:monospace}.name-cell{font-weight:500}.form-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:2rem}.patient-form{max-width:900px;margin:0 auto}.form-section{margin-bottom:2.5rem}.form-section h3{color:#2c3e50;margin-bottom:1.5rem;padding-bottom:.5rem;border-bottom:2px solid #3498db}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:1.5rem}.form-group{display:flex;flex-direction:column}.form-group.full-width{grid-column:1 / -1}.form-group label{font-weight:500;color:#2c3e50;margin-bottom:.5rem;font-size:.95rem}.required{color:#e74c3c;margin-left:.25rem}.form-group input,.form-group select,.form-group textarea{padding:.75rem;border:2px solid #dfe6e9;border-radius:8px;font-size:1rem;transition:all .3s ease;font-family:inherit}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.form-group small{color:#7f8c8d;font-size:.85rem;margin-top:.25rem}.form-group textarea{resize:vertical;min-height:80px}.form-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:2rem;padding-top:2rem;border-top:2px solid #ecf0f1}@media (max-width: 768px){.patient-container{padding:1rem}.patient-header{flex-direction:column;gap:1rem;align-items:flex-start}.header-actions{width:100%;flex-direction:column}.header-actions button{width:100%}.patient-table-container{overflow-x:auto}.form-row{grid-template-columns:1fr}}.opd-container{max-width:1400px;margin:0 auto;padding:2rem;background:#f5f7fa;min-height:100vh}.opd-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #0000001a}.opd-header h1{margin:0;font-size:2rem;color:#2c3e50}.opd-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.opd-table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden}.opd-table{width:100%;border-collapse:collapse}.opd-table thead{background:#16a085;color:#fff}.opd-table th{padding:1rem;text-align:left;font-weight:600;text-transform:uppercase;font-size:.85rem;letter-spacing:.5px}.opd-table tbody tr{border-bottom:1px solid #ecf0f1;transition:background .2s ease}.opd-table tbody tr:hover{background:#f8f9fa}.opd-table td{padding:1rem;color:#2c3e50}.date-cell{font-weight:600;color:#16a085}.patient-cell{font-family:monospace;color:#3498db}.symptoms-cell,.diagnosis-cell{max-width:300px}.no-data{color:#95a5a6;font-style:italic}.btn-view{background:#3498db;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .2s ease}.btn-view:hover{background:#2980b9;transform:scale(1.05)}.opd-form{max-width:900px;margin:0 auto}.loading-small{text-align:center;padding:1rem;color:#7f8c8d}.no-patients-warning{background:#fff3cd;border:2px solid #ffc107;padding:1.5rem;border-radius:8px;text-align:center}.no-patients-warning p{margin-bottom:1rem;color:#856404;font-weight:500}.patient-info-card{background:#e8f8f5;border:2px solid #16a085;border-radius:8px;padding:1.5rem;margin-top:1rem}.patient-info-card h4{margin:0 0 1rem;color:#16a085;font-size:1.1rem}.patient-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.detail-item{display:flex;flex-direction:column;gap:.25rem}.detail-label{font-size:.85rem;color:#7f8c8d;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.detail-value{font-size:1rem;color:#2c3e50;font-weight:600}.disabled-input{background:#ecf0f1!important;cursor:not-allowed;color:#7f8c8d}@media (max-width: 768px){.opd-container{padding:1rem}.opd-header{flex-direction:column;gap:1rem;align-items:flex-start}.header-actions{width:100%;flex-direction:column}.header-actions button{width:100%}.opd-table-container{overflow-x:auto}.patient-details{grid-template-columns:1fr}}.admin-login-page .navbar{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0;transition:all .3s ease}.admin-login-page .navbar.scrolled{box-shadow:0 2px 8px #00000014;padding:.75rem 0}.admin-login-page .navbar .container{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:0 2rem}.admin-login-page .brand-logo{display:flex;align-items:center;gap:.75rem;text-decoration:none;transition:opacity .2s}.admin-login-page .brand-logo:hover{opacity:.8}.admin-login-page .logo-icon{font-size:2rem;line-height:1}.admin-login-page .logo-text{font-size:1.25rem;font-weight:700;color:#0f172a;letter-spacing:-.02em}.admin-login-page .nav-links{display:flex;gap:2rem;align-items:center}.admin-login-page .nav-link{color:#64748b;font-weight:500;font-size:.9rem;text-decoration:none;transition:color .2s}.admin-login-page .nav-link:hover{color:#0f172a}.admin-login-page .footer{background:#0f172a;color:#fff;padding:3rem 0 1.5rem}.admin-login-page .footer .container{max-width:1200px;margin:0 auto;padding:0 2rem}.admin-login-page .footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;margin-bottom:2.5rem}.admin-login-page .footer-brand{max-width:350px}.admin-login-page .footer-logo{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.admin-login-page .footer-logo .logo-icon{font-size:2rem}.admin-login-page .footer-logo .logo-text{font-size:1.25rem;font-weight:700;color:#fff}.admin-login-page .footer-description{color:#94a3b8;font-size:.9rem;line-height:1.6}.admin-login-page .footer-section h4{font-size:.875rem;font-weight:600;color:#fff;margin-bottom:1rem;text-transform:uppercase;letter-spacing:.05em}.admin-login-page .footer-link{display:block;color:#94a3b8;text-decoration:none;font-size:.9rem;margin-bottom:.75rem;transition:color .2s}.admin-login-page .footer-link:hover{color:#fff}.admin-login-page .footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.5rem;display:flex;justify-content:space-between;align-items:center;font-size:.875rem;color:#94a3b8}.admin-login-page .footer-tagline{color:#64748b}.admin-container{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:2rem}.admin-header{text-align:center;color:#fff;margin-bottom:3rem}.admin-header h1{font-size:2.5rem;margin-bottom:.5rem;font-weight:800}.admin-header p{font-size:1.2rem;opacity:.9}.registration-form-container{max-width:900px;margin:0 auto;background:#fff;border-radius:20px;padding:3rem;box-shadow:0 20px 60px #0000004d}.registration-form-container h2{font-size:2rem;margin-bottom:2rem;color:#2d3748;font-weight:700}.hospital-form{display:flex;flex-direction:column;gap:2.5rem}.form-section{border-bottom:2px solid #e2e8f0;padding-bottom:2rem}.form-section:last-of-type{border-bottom:none}.form-section h3{font-size:1.5rem;margin-bottom:1.5rem;color:#2d3748;font-weight:600}.section-description{color:#718096;margin-bottom:1.5rem;font-size:.95rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#2d3748;font-weight:600;font-size:.95rem}.form-group input{width:100%;padding:.9rem 1rem;border:2px solid #e2e8f0;border-radius:10px;font-size:1rem;transition:all .3s;font-family:inherit}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 4px #667eea1a}.form-group small{display:block;margin-top:.5rem;color:#718096;font-size:.85rem}.modules-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.module-card{display:flex;gap:1rem;padding:1.2rem;border:2px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .3s;background:#f7fafc}.module-card:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #667eea26}.module-card.selected{border-color:#667eea;background:linear-gradient(135deg,#667eea1a,#764ba21a)}.module-checkbox input{width:20px;height:20px;cursor:pointer}.module-info h4{font-size:1rem;margin-bottom:.3rem;color:#2d3748;font-weight:600}.module-info p{font-size:.85rem;color:#718096;line-height:1.4}.form-actions{display:flex;justify-content:center;padding-top:1rem}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1rem 3rem;font-size:1.1rem;font-weight:700;border:none;border-radius:50px;cursor:pointer;transition:all .3s;box-shadow:0 10px 30px #667eea66}.btn-primary:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 15px 40px #667eea99}.success-message{background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 10px 30px #48bb784d}.success-message h3{font-size:1.5rem;margin-bottom:1rem;font-weight:700}.success-details{background:#fff3;padding:1.5rem;border-radius:8px;margin-top:1rem}.success-details p{margin-bottom:.8rem;font-size:1rem}.success-details code{background:#0003;padding:.3rem .8rem;border-radius:4px;font-size:1.1rem;font-weight:700}.success-details a{color:#fff;text-decoration:underline}.success-details .warning{background:#ffc1074d;padding:.8rem;border-radius:6px;margin-top:1rem;font-weight:600}.error-message{background:linear-gradient(135deg,#f56565,#e53e3e);color:#fff;padding:1.5rem;border-radius:12px;margin-bottom:2rem;font-weight:600;box-shadow:0 10px 30px #f565654d}@media (max-width: 768px){.admin-container{padding:1rem}.registration-form-container{padding:2rem 1.5rem}.modules-grid{grid-template-columns:1fr}.admin-header h1{font-size:2rem}}.admin-login-page{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#f8fafc,#f0f9ff,#fefce8)}.admin-login-container{flex:1;display:flex;align-items:center;justify-content:center;padding:3rem 2rem}.admin-login-box{background:#fff;border-radius:16px;padding:2.5rem;max-width:420px;width:100%;box-shadow:0 4px 20px #00000014;border:1px solid #e0f2fe}.login-header{text-align:center;margin-bottom:2rem}.login-header h1{font-size:1.5rem;margin-bottom:.5rem;color:#0f172a;font-weight:700;display:flex;align-items:center;justify-content:center;gap:.5rem}.login-header p{color:#64748b;font-size:.875rem;font-weight:500}.login-form{display:flex;flex-direction:column;gap:1.25rem}.form-group{margin-bottom:0}.form-group label{display:block;margin-bottom:.4rem;color:#334155;font-weight:600;font-size:.8rem}.form-group input{width:100%;padding:.75rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.875rem;transition:all .2s;font-family:inherit;background:#fafafa}.form-group input:focus{outline:none;border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px #3b82f61a}.btn-primary{background:#3b82f6;color:#fff;padding:.875rem;font-size:.9rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s}.btn-primary:hover:not(:disabled){background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.error-message{background:#fee2e2;color:#991b1b;padding:.75rem;border-radius:8px;margin-bottom:1rem;font-weight:500;font-size:.8rem;border:1px solid #fca5a5}@media (max-width: 768px){.admin-login-container{padding:2rem 1rem}.admin-login-box{padding:2rem 1.5rem}.login-header h1{font-size:1.35rem}}.admin-dashboard{display:flex;min-height:100vh;background:#f7fafc}.admin-sidebar{width:280px;background:linear-gradient(180deg,#2d3748,#1a202c);color:#fff;display:flex;flex-direction:column;position:fixed;height:100vh;left:0;top:0}.sidebar-header{padding:2rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-header h2{font-size:1.5rem;font-weight:700}.sidebar-nav{flex:1;padding:1.5rem 0}.nav-item{width:100%;display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;background:transparent;border:none;color:#fffc;cursor:pointer;transition:all .3s;font-size:1rem;text-align:left}.nav-item:hover{background:#ffffff1a;color:#fff}.nav-item.active{background:#667eea4d;color:#fff;border-left:4px solid #667eea}.nav-icon{font-size:1.5rem}.sidebar-footer{padding:1.5rem;border-top:1px solid rgba(255,255,255,.1)}.logout-btn{width:100%;padding:.8rem;background:#f5656533;border:none;color:#fff;border-radius:8px;cursor:pointer;transition:all .3s;font-size:1rem;display:flex;align-items:center;justify-content:center;gap:.5rem}.logout-btn:hover{background:#f5656566}.admin-main{margin-left:280px;flex:1;padding:2rem;min-height:100vh}.hospital-list-container{max-width:1400px}.list-header{margin-bottom:2rem}.list-header h1{font-size:2.5rem;color:#2d3748;margin-bottom:.5rem;font-weight:700}.list-header p{color:#718096;font-size:1.1rem}.hospitals-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:2rem}.hospital-card{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 4px 15px #00000014;transition:all .3s;cursor:pointer}.hospital-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #667eea33}.hospital-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:2px solid #e2e8f0}.hospital-card-header h3{font-size:1.3rem;color:#2d3748;font-weight:600}.status-badge{padding:.4rem 1rem;border-radius:20px;font-size:.85rem;font-weight:600}.status-badge.active{background:#48bb7833;color:#38a169}.status-badge.inactive{background:#a0aec033;color:#718096}.hospital-card-body{display:flex;flex-direction:column;gap:1rem}.hospital-info p{margin-bottom:.5rem;color:#4a5568;font-size:.95rem}.hospital-info a{color:#667eea;text-decoration:none}.hospital-info a:hover{text-decoration:underline}.hospital-stats{display:flex;gap:1.5rem;padding:1rem 0}.stat-item{display:flex;align-items:center;gap:.8rem}.stat-icon{font-size:2rem}.stat-label{font-size:.85rem;color:#718096;margin-bottom:.2rem}.stat-number{font-size:1.5rem;font-weight:700;color:#2d3748}.hospital-modules{margin-top:.5rem}.modules-label{font-size:.9rem;color:#718096;margin-bottom:.5rem;font-weight:600}.modules-tags{display:flex;flex-wrap:wrap;gap:.5rem}.module-tag{background:linear-gradient(135deg,#667eea1a,#764ba21a);color:#667eea;padding:.4rem .8rem;border-radius:6px;font-size:.85rem;font-weight:600}.hospital-card-footer{display:flex;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:2px solid #e2e8f0}.btn-view,.btn-manage{flex:1;padding:.7rem;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .3s}.btn-view{background:#f7fafc;color:#667eea}.btn-view:hover{background:#667eea1a}.btn-manage{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-manage:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.modal-content{background:#fff;border-radius:20px;padding:2rem;max-width:600px;width:100%;max-height:80vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid #e2e8f0}.modal-header h2{font-size:1.8rem;color:#2d3748;font-weight:700}.modal-close{background:none;border:none;font-size:2rem;color:#718096;cursor:pointer;transition:all .3s}.modal-close:hover{color:#2d3748;transform:rotate(90deg)}.modal-body{display:flex;flex-direction:column;gap:1.5rem}.detail-section h3{font-size:1.2rem;color:#2d3748;margin-bottom:1rem;font-weight:600}.detail-section p{margin-bottom:.8rem;color:#4a5568}.admin-stats{max-width:1200px}.admin-stats h1{font-size:2.5rem;color:#2d3748;margin-bottom:2rem;font-weight:700}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem}.stat-card{background:#fff;padding:2rem;border-radius:16px;box-shadow:0 4px 15px #00000014;display:flex;align-items:center;gap:1.5rem;transition:all .3s}.stat-card:hover{transform:translateY(-5px);box-shadow:0 10px 30px #667eea33}.stat-card .stat-icon{font-size:3rem}.stat-info h3{font-size:1rem;color:#718096;margin-bottom:.5rem;font-weight:600}.stat-value{font-size:2.5rem;color:#2d3748;font-weight:800}@media (max-width: 768px){.admin-dashboard{flex-direction:column}.admin-sidebar{width:100%;position:relative;height:auto}.admin-main{margin-left:0}.hospitals-grid{grid-template-columns:1fr}}.hospital-info-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem}.hospital-info-card h2{margin:0 0 .5rem;font-size:1.8rem}.hospital-slug{font-size:1.1rem;margin:.5rem 0;opacity:.9}.hospital-url{margin:1rem 0 0;font-size:.9rem}.hospital-url code{background:#fff3;padding:.5rem 1rem;border-radius:6px;display:inline-block;margin-top:.5rem}.actions-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding:1rem;background:#f8f9fa;border-radius:8px}.actions-bar h3{margin:0;color:#2c3e50}.back-btn{background:#6c757d;color:#fff;padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-size:.9rem;margin-bottom:1rem}.back-btn:hover{background:#5a6268}.users-table-container{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.users-table{width:100%;border-collapse:collapse}.users-table thead{background:#f8f9fa}.users-table th{padding:1rem;text-align:left;font-weight:600;color:#2c3e50;border-bottom:2px solid #dee2e6}.users-table td{padding:1rem;border-bottom:1px solid #e9ecef}.users-table tbody tr:hover{background:#f8f9fa}.inactive-row{opacity:.6;background:#f8f9fa}.role-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:600}.role-hospital_admin{background:#e74c3c;color:#fff}.role-doctor{background:#3498db;color:#fff}.role-nurse{background:#9b59b6;color:#fff}.role-billing{background:#f39c12;color:#fff}.role-lab{background:#1abc9c;color:#fff}.role-pharmacy{background:#27ae60;color:#fff}.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:600}.status-badge.active{background:#d4edda;color:#155724}.status-badge.inactive{background:#f8d7da;color:#721c24}.actions-cell{display:flex;gap:.5rem}.btn-small{padding:.4rem .8rem;font-size:.85rem;border:none;border-radius:6px;cursor:pointer;font-weight:500;transition:all .2s}.btn-warning{background:#ffc107;color:#000}.btn-warning:hover{background:#e0a800}.btn-danger{background:#dc3545;color:#fff}.btn-danger:hover{background:#c82333}.btn-success{background:#28a745;color:#fff}.btn-success:hover{background:#218838}.btn-secondary{background:#6c757d;color:#fff;padding:.75rem 1.5rem;border:none;border-radius:6px;cursor:pointer;font-size:1rem}.btn-secondary:hover{background:#5a6268}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;padding:2rem;border-radius:12px;width:90%;max-width:500px;box-shadow:0 10px 40px #0000004d}.modal-content h2{margin:0 0 1.5rem;color:#2c3e50}.modal-content .form-group{margin-bottom:1.5rem}.modal-content .form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#2c3e50}.modal-content .form-group input,.modal-content .form-group select{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:6px;font-size:1rem}.modal-content .form-group input:focus,.modal-content .form-group select:focus{outline:none;border-color:#667eea}.modal-content .form-group small{display:block;margin-top:.25rem;color:#718096;font-size:.85rem}.modal-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:2rem}.loading{text-align:center;padding:3rem;font-size:1.2rem;color:#718096}.subdomain-link{color:#667eea;text-decoration:none;font-weight:600}.subdomain-link:hover{text-decoration:underline}.info-note{background:#e8f4fd;color:#0c5460;padding:.75rem;border-radius:6px;font-size:.9rem;margin-top:.5rem;border-left:4px solid #3498db}.no-hospitals{text-align:center;padding:3rem;background:#f8f9fa;border-radius:12px;margin:2rem 0}.no-hospitals h3{color:#2c3e50;margin-bottom:.5rem}.no-hospitals p{color:#718096}.hospital-details-modal{max-width:600px}.hospital-details-modal .detail-section{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid #e2e8f0}.hospital-details-modal .detail-section:last-child{border-bottom:none}.hospital-details-modal .detail-section h3{color:#2c3e50;margin-bottom:1rem;font-size:1.1rem}.hospital-details-modal .detail-section p{margin:.75rem 0;color:#4a5568}.hospital-details-modal .detail-section code{background:#f7fafc;padding:.25rem .5rem;border-radius:4px;font-size:.9rem;color:#667eea}.spinner{animation:spin 1s linear infinite}*{box-sizing:border-box}.dashboard-layout{display:flex;min-height:100vh;background:#f8fafb;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.dashboard-sidebar{width:240px;background:#fff;display:flex;flex-direction:column;position:fixed;height:100vh;left:0;top:0;border-right:1px solid #e5e7eb;z-index:100}.sidebar-brand{padding:1.5rem 1.25rem;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:.75rem}.brand-icon{width:36px;height:36px;background:#3b82f6;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.25rem}.brand-text h2{color:#0f172a;font-size:1rem;font-weight:700;margin:0 0 .15rem}.brand-text p{color:#64748b;font-size:.7rem;margin:0;font-weight:500}.sidebar-menu{flex:1;padding:1rem .75rem;overflow-y:auto}.menu-item{width:100%;display:flex;align-items:center;gap:.75rem;padding:.625rem .875rem;background:transparent;border:none;color:#64748b;cursor:pointer;transition:all .2s;font-size:.8rem;font-weight:500;text-align:left;position:relative;margin:.15rem 0;border-radius:6px}.menu-item:hover{background:#f8fafc;color:#0f172a}.menu-item.active{background:#eff6ff;color:#3b82f6;font-weight:600}.menu-icon{font-size:1.125rem;width:20px;display:flex;align-items:center;justify-content:center}.menu-label{flex:1}.active-indicator{width:3px;height:16px;background:#3b82f6;border-radius:2px;position:absolute;right:0}.sidebar-footer{padding:1rem;border-top:1px solid #e5e7eb}.user-profile{display:flex;align-items:center;gap:.625rem;padding:.5rem;background:#f8fafc;border-radius:6px;margin-bottom:.75rem}.user-avatar{width:32px;height:32px;background:#3b82f6;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:1rem;color:#fff}.user-name{color:#0f172a;font-size:.8rem;font-weight:600;margin:0 0 .15rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{color:#64748b;font-size:.65rem;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout-button{width:100%;padding:.5rem;background:#fef2f2;border:1px solid #fecaca;color:#dc2626;border-radius:6px;cursor:pointer;transition:all .2s;font-size:.8rem;font-weight:600;display:flex;align-items:center;justify-content:center;gap:.4rem}.logout-button:hover{background:#fee2e2;border-color:#fca5a5}.dashboard-content{margin-left:240px;flex:1;padding:1.75rem;min-height:100vh;overflow-x:hidden;background:#fafafa}.overview-container{max-width:1400px;animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.overview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.75rem}.overview-header h1{font-size:1.75rem;font-weight:700;color:#0f172a;margin:0 0 .3rem}.overview-header p{color:#64748b;font-size:.875rem;margin:0;font-weight:500}.refresh-btn{display:flex;align-items:center;gap:.4rem;padding:.5rem 1rem;background:#fff;border:1px solid #e5e7eb;border-radius:6px;color:#64748b;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .2s}.refresh-btn:hover{background:#f8fafc;border-color:#cbd5e1;color:#0f172a}.refresh-btn span{font-size:.95rem}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-bottom:2rem}.metric-card{background:#fff;border-radius:12px;padding:1.25rem;border:1px solid #e5e7eb;transition:all .2s}.metric-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000000f;border-color:#cbd5e1}.metric-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.875rem}.metric-icon-wrapper{width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.35rem}.metric-icon-wrapper.primary{background:#eff6ff;color:#3b82f6}.metric-icon-wrapper.success{background:#f0fdf4;color:#10b981}.metric-icon-wrapper.warning{background:#fffbeb;color:#f59e0b}.metric-icon-wrapper.info{background:#ecfeff;color:#06b6d4}.metric-trend{padding:.25rem .5rem;border-radius:4px;font-size:.7rem;font-weight:700;display:flex;align-items:center;gap:.15rem}.metric-trend.positive{background:#f0fdf4;color:#059669}.metric-trend.negative{background:#fef2f2;color:#dc2626}.metric-body{display:flex;flex-direction:column}.metric-value{font-size:2rem;font-weight:700;color:#0f172a;margin:0 0 .3rem;line-height:1}.metric-label{font-size:.8rem;font-weight:600;color:#64748b;margin:0 0 .3rem}.metric-subtitle{font-size:.75rem;color:#94a3b8;margin:0;font-weight:500}.quick-actions-section{margin-bottom:2rem}.quick-actions-section h2{font-size:1.25rem;font-weight:700;color:#0f172a;margin:0 0 1rem}.actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.action-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;text-align:center;transition:all .2s}.action-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000000f;border-color:#cbd5e1}.action-icon{width:52px;height:52px;margin:0 auto .875rem;background:#eff6ff;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.75rem}.action-card h3{font-size:.95rem;font-weight:700;color:#0f172a;margin:0 0 .35rem}.action-card p{font-size:.8rem;color:#64748b;margin:0 0 1rem;line-height:1.4}.action-btn{width:100%;padding:.5rem 1rem;border:none;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .2s}.action-btn.primary{background:#3b82f6;color:#fff}.action-btn.primary:hover{background:#2563eb;transform:translateY(-1px)}.action-btn.secondary{background:#f8fafc;color:#64748b;border:1px solid #e5e7eb}.action-btn.secondary:hover{background:#f1f5f9;color:#0f172a}.system-health-section{margin-bottom:2rem}.system-health-section h2{font-size:1.25rem;font-weight:700;color:#0f172a;margin:0 0 1rem}.health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.health-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:1rem;display:flex;align-items:center;gap:.75rem;transition:all .2s}.health-card:hover{box-shadow:0 2px 8px #0000000d;border-color:#cbd5e1}.health-indicator{width:8px;height:8px;border-radius:50%;position:relative}.health-indicator.healthy{background:#10b981;box-shadow:0 0 0 3px #10b98133}.health-indicator.healthy:after{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background:#10b981;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:0;transform:scale(1.5)}}.health-info h4{font-size:.8rem;font-weight:600;color:#0f172a;margin:0 0 .15rem}.health-status{font-size:.75rem;color:#10b981;margin:0;font-weight:600}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:1.5rem}.spinner-large{width:64px;height:64px;border:4px solid #f1f5f9;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}.loading-container p{color:#64748b;font-size:1rem;font-weight:500}@media (max-width: 1024px){.dashboard-sidebar{width:240px}.dashboard-content{margin-left:240px;padding:2rem}.metrics-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.dashboard-layout{flex-direction:column}.dashboard-sidebar{width:100%;position:relative;height:auto}.dashboard-content{margin-left:0;padding:1.5rem}.overview-header{flex-direction:column;align-items:flex-start;gap:1rem}.metrics-grid,.actions-grid,.health-grid{grid-template-columns:1fr}}.users-page{min-height:100vh;background:#f8fafc;padding:2rem}.page-header{display:flex;align-items:center;gap:2rem;margin-bottom:2rem}.back-button{background:#fff;border:1px solid #e2e8f0;padding:.75rem 1.5rem;border-radius:8px;font-size:.95rem;color:#475569;cursor:pointer;transition:all .2s}.back-button:hover{background:#f8fafc;border-color:#cbd5e1}.header-content{flex:1;display:flex;justify-content:space-between;align-items:center}.header-content h1{font-size:2rem;font-weight:700;color:#0f172a;margin:0}.hospital-badge{display:flex;align-items:center;gap:1rem;background:#fff;padding:1rem 1.5rem;border-radius:12px;border:1px solid #e2e8f0}.hospital-icon{font-size:2rem}.hospital-name{font-weight:600;color:#1e293b;margin:0;font-size:1rem}.hospital-code{font-size:.85rem;color:#64748b;margin:.25rem 0 0}.alert{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;border-radius:8px;margin-bottom:1.5rem}.alert-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.alert span:first-child{font-size:1.25rem}.alert p{flex:1;margin:0;font-weight:500}.alert button{background:none;border:none;font-size:1.25rem;color:#991b1b;cursor:pointer;opacity:.6;transition:opacity .2s}.alert button:hover{opacity:1}.controls-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:2rem}.filters{display:flex;gap:1rem;flex:1}.search-box{position:relative;flex:1;max-width:400px}.search-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);font-size:1.1rem;opacity:.5}.search-box input{width:100%;padding:.75rem 1rem .75rem 3rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;background:#fff;transition:all .2s}.search-box input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.filter-select{padding:.75rem 1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;background:#fff;color:#475569;cursor:pointer;transition:all .2s}.filter-select:focus{outline:none;border-color:#3b82f6}.btn-create{display:flex;align-items:center;gap:.5rem;background:#3b82f6;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-create:hover{background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.btn-create span{font-size:1.25rem;font-weight:400}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;display:flex;align-items:center;gap:1rem;transition:all .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.stat-icon{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.5rem}.stat-info{flex:1}.stat-label{font-size:.85rem;color:#64748b;margin:0 0 .25rem;font-weight:500}.stat-value{font-size:1.75rem;font-weight:700;color:#0f172a;margin:0}.users-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem}.user-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.5rem;transition:all .2s}.user-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #0000001a;border-color:#cbd5e1}.user-card.inactive{opacity:.6;background:#f8fafc}.user-card-header{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.user-avatar{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;flex-shrink:0}.user-info{flex:1;min-width:0}.user-username{font-size:1rem;font-weight:600;color:#0f172a;margin:0 0 .25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-role{font-size:.85rem;font-weight:600;margin:0;text-transform:capitalize}.status-indicator{font-size:1.5rem;line-height:1}.status-indicator.active{color:#10b981}.status-indicator.inactive{color:#94a3b8}.user-card-body{padding:1rem 0;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;margin-bottom:1rem}.user-meta{display:flex;flex-direction:column;gap:.5rem}.meta-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#64748b}.meta-icon{font-size:1rem}.user-card-actions{display:flex;gap:.75rem}.action-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s;background:#fff}.action-btn span{font-size:1rem}.action-btn-primary{color:#3b82f6;border-color:#3b82f6}.action-btn-primary:hover{background:#3b82f6;color:#fff}.action-btn-danger{color:#ef4444;border-color:#ef4444}.action-btn-danger:hover{background:#ef4444;color:#fff}.action-btn-success{color:#10b981;border-color:#10b981}.action-btn-success:hover{background:#10b981;color:#fff}.empty-state{text-align:center;padding:4rem 2rem;background:#fff;border:2px dashed #e2e8f0;border-radius:12px;grid-column:1 / -1}.empty-icon{font-size:4rem;margin-bottom:1rem;opacity:.3}.empty-state h3{font-size:1.25rem;color:#475569;margin:0 0 .5rem}.empty-state p{color:#94a3b8;margin:0}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.modal-card{background:#fff;border-radius:16px;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid #e2e8f0}.modal-header h2{font-size:1.5rem;font-weight:700;color:#0f172a;margin:0}.modal-close{background:none;border:none;font-size:1.5rem;color:#94a3b8;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s}.modal-close:hover{background:#f1f5f9;color:#475569}.modal-form{padding:2rem}.form-field{margin-bottom:1.5rem}.form-field:last-child{margin-bottom:0}.form-field label{display:block;font-weight:600;color:#334155;margin-bottom:.5rem;font-size:.95rem}.form-field input{width:100%;padding:.75rem 1rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:all .2s}.form-field input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-field small{display:block;margin-top:.5rem;font-size:.85rem;color:#64748b}.role-selector{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.role-option{cursor:pointer}.role-option input{display:none}.role-option-content{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1rem;border:2px solid #e2e8f0;border-radius:10px;transition:all .2s;background:#fff}.role-option:hover .role-option-content{border-color:#cbd5e1;background:#f8fafc}.role-option-icon{font-size:2rem}.role-option-label{font-size:.85rem;font-weight:600;color:#475569;text-align:center}.modal-actions{display:flex;gap:1rem;padding:1.5rem 2rem;border-top:1px solid #e2e8f0}.btn-secondary{flex:1;padding:.75rem 1.5rem;border:1px solid #e2e8f0;border-radius:8px;font-size:.95rem;font-weight:600;background:#fff;color:#475569;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:#f8fafc;border-color:#cbd5e1}.btn-primary{flex:1;padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:.95rem;font-weight:600;background:#3b82f6;color:#fff;cursor:pointer;transition:all .2s}.btn-primary:hover{background:#2563eb}.btn-primary:disabled,.btn-secondary:disabled{opacity:.5;cursor:not-allowed}.password-modal{max-width:550px}.password-display{padding:2rem}.password-info{margin-bottom:1.5rem}.password-label{font-size:.85rem;font-weight:600;color:#64748b;margin:0 0 .5rem;text-transform:uppercase;letter-spacing:.05em}.password-value{display:flex;align-items:center;gap:.75rem;background:#f8fafc;padding:1rem 1.25rem;border-radius:8px;border:1px solid #e2e8f0}.password-value code{flex:1;font-family:Monaco,Courier New,monospace;font-size:1.1rem;color:#0f172a;font-weight:600}.password-code{letter-spacing:.05em}.copy-btn{background:#fff;border:1px solid #e2e8f0;padding:.5rem .75rem;border-radius:6px;font-size:1.1rem;cursor:pointer;transition:all .2s;flex-shrink:0}.copy-btn:hover{background:#3b82f6;border-color:#3b82f6;transform:scale(1.05)}.password-warning{display:flex;gap:1rem;background:#fef3c7;border:1px solid #fbbf24;padding:1rem 1.25rem;border-radius:8px;margin-top:1.5rem}.warning-icon{font-size:1.5rem;flex-shrink:0}.warning-title{font-weight:700;color:#92400e;margin:0 0 .25rem;font-size:.95rem}.warning-text{color:#78350f;margin:0;font-size:.85rem;line-height:1.5}.loading-spinner{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:1rem}.spinner{width:48px;height:48px;border:4px solid #e2e8f0;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-spinner p{color:#64748b;font-size:.95rem}@media (max-width: 768px){.users-page{padding:1rem}.page-header{flex-direction:column;align-items:stretch}.header-content{flex-direction:column;align-items:stretch;gap:1rem}.controls-bar,.filters{flex-direction:column}.search-box{max-width:none}.stats-grid,.users-grid,.role-selector{grid-template-columns:1fr}.modal-actions{flex-direction:column}}
