@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap";:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;background:#f5f7fb;font-family:DM Sans,sans-serif;font-weight:400}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}a{color:inherit;text-decoration:none}#root,.app-shell{min-height:100vh}.sidebar{z-index:5;color:#fff;background:#102b46;flex-direction:column;width:250px;padding:28px 18px 20px;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;gap:12px;padding:0 8px 38px;display:flex}.brand-icon{background:#167c83;border-radius:13px;place-items:center;width:43px;height:43px;display:grid}.brand h2{letter-spacing:-.5px;margin:0;font-size:21px}.brand span{color:#a9c1d4;font-size:12px}.sidebar-section-label{color:#8fa9bd;letter-spacing:1.3px;padding:0 12px 12px;font-size:10px;font-weight:700}.sidebar-nav{gap:7px;display:grid}.nav-link{color:#c2d1de;border-radius:9px;align-items:center;gap:13px;padding:13px 12px;font-size:14px;font-weight:500;transition:all .2s;display:flex}.nav-link:hover,.nav-link.active{color:#fff;background:#1c4661}.nav-link.active{box-shadow:inset 3px 0 #35c2b5}.sidebar-footer{border-top:1px solid #29465e;align-items:center;gap:10px;margin-top:auto;padding:14px 8px;display:flex}.sidebar-footer-icon{color:#69d6c9;background:#1c4661;border-radius:9px;place-items:center;width:34px;height:34px;display:grid}.sidebar-footer strong,.sidebar-footer span{display:block}.sidebar-footer strong{font-size:11px}.sidebar-footer span{color:#a9c1d4;margin-top:4px;font-size:10px}.main-content{min-height:100vh;margin-left:250px}.top-header{background:#fff;border-bottom:1px solid #e9edf3;justify-content:space-between;align-items:center;gap:20px;min-height:92px;padding:18px 38px;display:flex}.breadcrumb{color:#8793a5;margin-bottom:5px;font-size:12px}.top-header h1{letter-spacing:-.5px;margin:0;font-size:22px;font-weight:700}.header-actions{align-items:center;gap:25px;display:flex}.header-date{color:#637087;align-items:center;gap:8px;font-size:13px;display:flex}.header-profile{border-left:1px solid #e9edf3;align-items:center;gap:10px;padding-left:22px;display:flex}.profile-avatar{color:#147a72;background:#dff4f0;border-radius:50%;place-items:center;width:38px;height:38px;font-weight:700;display:grid}.profile-info strong,.profile-info span{display:block}.profile-info strong{font-size:12px}.profile-info span{color:#8793a5;margin-top:3px;font-size:11px}.dashboard-content{max-width:1600px;margin:0 auto;padding:34px 38px}.welcome-row,.section-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.welcome-row{margin-bottom:23px}.welcome-row h2,.section-heading h2{margin:0;font-size:19px}.welcome-row p,.section-heading p{color:#8490a2;margin:6px 0 0;font-size:13px}.primary-button{color:#fff;background:#147d80;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:11px 17px;font-size:13px;font-weight:600;transition:background .2s;display:inline-flex}.primary-button:hover{background:#10696c}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:27px;display:grid}.stat-card{background:#fff;border:1px solid #e9edf3;border-radius:12px;min-width:0;padding:20px;box-shadow:0 2px 8px #14284608}.stat-icon{border-radius:10px;place-items:center;width:40px;height:40px;margin-bottom:15px;display:grid}.stat-icon.blue{color:#3974ce;background:#e9f1ff}.stat-icon.green{color:#21966b;background:#e5f7ef}.stat-icon.orange{color:#d88735;background:#fff2e5}.stat-icon.purple{color:#8863c7;background:#f1eaff}.stat-value{letter-spacing:-1px;font-size:27px;font-weight:800}.stat-label{color:#38465b;margin-top:3px;font-size:13px;font-weight:600}.stat-description{color:#98a2b1;margin-top:7px;font-size:11px}.patient-section{background:#fff;border:1px solid #e9edf3;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #14284608}.section-heading{padding:22px 22px 18px}.refresh-button,.reset-button,.secondary-button{color:#536176;background:#fff;border:1px solid #e1e6ee;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:9px 12px;font-size:12px;font-weight:600;display:inline-flex}.refresh-button:hover,.reset-button:hover,.secondary-button:hover{background:#f5f8fb}.filters-panel{grid-template-columns:minmax(190px,1.5fr) repeat(3,minmax(120px,1fr)) auto;gap:10px;padding:0 22px 19px;display:grid}.search-box{color:#8490a2;border:1px solid #e1e6ee;border-radius:7px;align-items:center;gap:9px;min-width:0;padding:0 11px;display:flex}.search-box input{color:#172033;background:0 0;border:0;outline:none;width:100%;min-width:0;padding:10px 0;font-size:12px}.filters-panel select,.form-field input,.form-field select{color:#536176;background:#fff;border:1px solid #e1e6ee;border-radius:7px;outline:none;width:100%;min-width:0;padding:10px 11px;font-size:12px}.filters-panel select:focus,.search-box:focus-within,.form-field input:focus,.form-field select:focus{border-color:#258d91;box-shadow:0 0 0 3px #258d911a}.table-scroll{width:100%;overflow-x:auto}.patient-table{border-collapse:collapse;white-space:nowrap;text-align:left;width:100%}.patient-table th{color:#7d899b;letter-spacing:.5px;text-transform:uppercase;background:#f7f9fc;padding:13px 15px;font-size:10px;font-weight:700}.patient-table th:first-child,.patient-table td:first-child{padding-left:22px}.patient-table td{color:#566276;border-bottom:1px solid #eef1f5;padding:14px 15px;font-size:12px}.patient-table tbody tr:hover{background:#fbfcfe}.patient-name{align-items:center;gap:10px;display:flex}.patient-avatar{color:#147d80;background:#e7f2f3;border-radius:50%;flex-shrink:0;place-items:center;width:34px;height:34px;font-weight:700;display:grid}.patient-name strong,.patient-name span{display:block}.patient-name strong{color:#253249;font-size:12px}.patient-name span{color:#98a2b1;margin-top:3px;font-size:10px}.status-badge{border-radius:20px;padding:5px 9px;font-size:10px;font-weight:700;display:inline-block}.status-admitted{color:#16815b;background:#e5f7ef}.status-discharged{color:#697487;background:#eef0f4}.action-buttons{align-items:center;gap:5px;display:flex}.action-button,.icon-button,.toast-close{background:0 0;border:0;place-items:center;display:grid}.action-button{border-radius:6px;width:30px;height:30px}.action-button.edit{color:#3974ce}.action-button.discharge{color:#16815b}.action-button.delete{color:#d34e55}.action-button:hover{background:#f0f3f8}.table-footer{color:#8793a5;padding:13px 22px;font-size:11px}.table-message,.empty-state{text-align:center;color:#8490a2;padding:55px 20px;font-size:13px}.empty-state svg{color:#a8b4c4}.empty-state h3{color:#344157;margin:12px 0 5px;font-size:16px}.empty-state p{margin:0;font-size:12px}.modal-overlay{z-index:20;background:#0d1c2d8c;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal-content{background:#fff;border-radius:13px;width:min(650px,100%);max-height:90vh;overflow-y:auto;box-shadow:0 20px 70px #0003}.modal-header{border-bottom:1px solid #edf0f4;justify-content:space-between;align-items:center;padding:20px 23px;display:flex}.modal-header h2{margin:0;font-size:18px}.icon-button{color:#657187;border-radius:7px;width:34px;height:34px}.icon-button:hover{background:#f1f4f8}.patient-form{padding:22px 23px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;display:grid}.form-field label{color:#445168;margin-bottom:7px;font-size:12px;font-weight:600;display:block}.form-field input,.form-field select{color:#253249;padding:11px}.field-error{color:#d34e55;margin-top:5px;font-size:11px;display:block}.form-footer{border-top:1px solid #edf0f4;justify-content:space-between;align-items:center;gap:12px;margin-top:25px;padding-top:17px;display:flex}.required-note{color:#8994a5;font-size:11px}.form-actions{gap:9px;display:flex}.secondary-button,.form-actions .primary-button{padding:10px 15px}.toast{z-index:30;background:#fff;border:1px solid #dce9e4;border-radius:9px;align-items:center;gap:10px;max-width:min(430px,100vw - 32px);padding:14px 16px;font-size:13px;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 8px 30px #1428461f}.toast-success{color:#16815b}.toast-error{color:#c23e45;border-color:#f0d8d8}.toast span{color:#344157}.toast-close{color:#8994a5;margin-left:auto}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1150px){.stats-grid,.filters-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.search-box{grid-column:span 2}}@media (width<=760px){.sidebar{width:100%;padding:13px 18px;position:static}.brand{padding:0}.sidebar-section-label,.sidebar-nav,.sidebar-footer{display:none}.main-content{margin-left:0}.top-header{min-height:75px;padding:14px 18px}.top-header h1{font-size:18px}.header-actions{gap:10px}.header-date{display:none}.header-profile{padding-left:10px}.profile-info{display:none}.dashboard-content{padding:23px 16px}.welcome-row{align-items:flex-start}.welcome-row h2{font-size:17px}.welcome-row p{max-width:210px;line-height:1.5}.welcome-row .primary-button{white-space:nowrap;padding:10px;font-size:11px}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-value{font-size:23px}.section-heading{padding:18px 14px}.filters-panel{grid-template-columns:1fr 1fr;padding:0 14px 16px}.search-box,.reset-button{grid-column:span 2}.form-grid{grid-template-columns:1fr}.form-footer{flex-direction:column;align-items:flex-start}.form-actions{width:100%}.form-actions button{flex:1}}@media (width<=380px){.stats-grid,.filters-panel{grid-template-columns:1fr}.search-box,.reset-button{grid-column:auto}}.top-header h1{font-size:27px}.welcome-row h2,.section-heading h2{font-size:23px}.welcome-row p,.section-heading p{font-size:15px}.brand h2{font-size:24px}.brand span{font-size:14px}.nav-link{padding:15px 14px;font-size:15px}.stat-value{font-size:35px}.stat-label{font-size:17px}.stat-description{font-size:13px}.search-box input,.filters-panel select,.reset-button,.refresh-button{font-size:14px}.patient-table th{font-size:12px}.patient-table td{padding-top:17px;padding-bottom:17px;font-size:14px}.patient-name strong{font-size:15px}.patient-name span{font-size:12px}.patient-avatar{width:40px;height:40px;font-size:15px}.status-badge{padding:6px 10px;font-size:12px}.action-button{width:34px;height:34px}.primary-button{padding:12px 18px;font-size:14px}.modal-header h2{font-size:21px}.form-field label{font-size:14px}.form-field input,.form-field select{padding:12px;font-size:14px}.field-error,.required-note{font-size:12px}.toast{font-size:14px}@media (width<=760px){.top-header h1{font-size:21px}.welcome-row h2,.section-heading h2{font-size:20px}.welcome-row p,.section-heading p,.patient-table td{font-size:14px}.patient-name strong{font-size:15px}.stat-value{font-size:30px}.form-field label{font-size:14px}}#dashboard,#patients,#admissions{scroll-margin-top:24px}.admissions-table{width:100%}@media (width<=760px){.sidebar-nav{flex-direction:row;gap:8px;margin-top:15px;display:flex;overflow-x:auto}.sidebar-nav .nav-link{flex-shrink:0;padding:10px 12px;font-size:14px}.sidebar-section-label{margin-top:18px;display:block}}
