*{box-sizing:border-box}body{color:#0f172a;background:#f1f5f9;margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app-layout{background:#f1f5f9;min-height:100vh;display:flex;overflow:hidden}.sidebar{background:#0f172a;border-right:1px solid #e5e7eb;flex-direction:column;width:260px;min-width:260px;height:100vh;display:flex;position:sticky;top:0}.sidebar h2{letter-spacing:.03em;margin:0;font-size:26px}.sidebar nav{flex-direction:column;gap:8px;display:flex}.sidebar a{color:#cbd5e1;border-radius:10px;padding:10px 12px;font-weight:600;text-decoration:none}.sidebar a:hover,.sidebar a.active{color:#fff;background:#1e293b}.sidebar .logout-button{color:#fff;cursor:pointer;background:#ef4444;border:0;border-radius:10px;width:100%;margin-top:auto;padding:10px 12px;font-weight:700}.sidebar-footer{border-top:1px solid #e5e7eb;margin-top:auto;padding:20px}.sidebar-menu{flex:1;padding:20px 0;overflow-y:auto}.main-content{background:#f8fafc;flex:1;height:100vh;padding:32px;overflow-y:auto}.page-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.page-header h2,.main-content h2{color:#0f172a;margin:0 0 8px;font-size:30px;font-weight:800}.page-header p{color:#64748b;margin:0}.toolbar{align-items:center;gap:12px;margin-bottom:22px;display:flex}.toolbar input,.toolbar select{background:#fff;border:1px solid #cbd5e1;border-radius:10px;height:42px;padding:0 12px;font-size:14px}.toolbar input{width:280px}.patients-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px;display:grid}.patient-card{background:#fff;border:1px solid #e2e8f0;border-left:6px solid #3b82f6;border-radius:16px;padding:20px;box-shadow:0 8px 24px #0f172a14}.patient-card h3{color:#0f172a;margin:0 0 10px;font-size:20px}.patient-card p{color:#64748b;margin:6px 0}.assign-btn,.btn{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;padding:9px 14px;font-weight:700}.assign-btn:hover,.btn:hover{background:#1d4ed8}.btn-cancel{background:#ef4444}.pagination{justify-content:center;align-items:center;gap:14px;margin-top:28px;display:flex}.pagination button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;padding:10px 16px;font-weight:700}.pagination button:disabled{opacity:.45;cursor:not-allowed}.page-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;box-shadow:0 8px 24px #0f172a14}.patients-table{border-collapse:collapse;table-layout:auto;width:100%}.patients-table th,.patients-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:14px 12px}.patients-table th{color:#334155;white-space:nowrap;background:#f8fafc;font-weight:800}.status-select{background:#fff;border:1px solid #cbd5e1;border-radius:10px;width:150px;height:38px;padding:0 10px;font-weight:700}.btn{cursor:pointer;white-space:nowrap;border:0;border-radius:10px;height:38px;padding:0 14px;font-weight:800}.called-badge,.pending-badge{border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;display:inline-block}.called-badge{color:#166534;background:#dcfce7}.pending-badge{color:#92400e;background:#fef3c7}.success-message,.error-message{border-radius:10px;margin-bottom:16px;padding:12px 14px;font-weight:700}.success-message{color:#166534;background:#dcfce7}.error-message{color:#991b1b;background:#fee2e2}.patients-loader{color:#64748b;margin:16px 0;font-weight:700}.modal-backdrop{z-index:1000;background:#0f172a8c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:18px;width:100%;max-width:560px;padding:24px;box-shadow:0 24px 80px #0f172a59}.modal h3{color:#0f172a;margin:0 0 16px;font-size:22px}.modal label{color:#334155;margin:14px 0 6px;font-weight:700;display:block}.modal input,.modal textarea,.modal select{border:1px solid #cbd5e1;border-radius:10px;width:100%;min-height:42px;padding:10px 12px;font-size:14px}.modal-textarea{resize:vertical;min-height:90px}.modal-actions{justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.modal-actions button{cursor:pointer;border:0;border-radius:10px;padding:10px 16px;font-weight:700}.modal-actions button:first-child{color:#334155;background:#e2e8f0}.modal-actions button:last-child{color:#fff;background:#2563eb}.modal-actions button:disabled{opacity:.5;cursor:not-allowed}.assigned-list{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;margin-top:18px;padding:14px}.assigned-list h4{margin:0 0 10px}.assigned-list ul{margin:0;padding-left:18px}.empty-text{color:#64748b}.filter-tabs{gap:10px;margin:14px 0 18px;display:flex}.filter-tabs button{color:#334155;cursor:pointer;background:#e2e8f0;border:0;border-radius:999px;padding:9px 16px;font-weight:800}.filter-tabs button.active{color:#fff;background:#2563eb}.stats-grid{grid-template-columns:repeat(4,minmax(140px,1fr));gap:14px;margin:18px 0 22px;display:grid}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;box-shadow:0 8px 24px #0f172a0f}.stat-card span{color:#64748b;margin-bottom:8px;font-size:14px;display:block}.stat-card strong{color:#0f172a;font-size:28px}.btn-edit{color:#fff;background:#2563eb}.btn-edit:hover{background:#1d4ed8}.btn-cancel{color:#fff;background:#ef4444}.btn-cancel:hover{background:#dc2626}.page-card{overflow:visible}.patients-table{min-width:1100px}.patients-table th{white-space:nowrap;font-size:14px}.patients-table td{vertical-align:middle}.patients-table td:nth-child(2){color:#0f172a;font-weight:700}.patients-table td:nth-child(5){color:#334155}@media (width<=1200px){.stats-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}.sidebar-header{align-items:center;gap:14px;margin-bottom:34px;display:flex}.sidebar-logo{width:44px;height:44px}.sidebar-title{color:#fff;font-size:18px;font-weight:800}.sidebar-subtitle{color:#94a3b8;font-size:13px}.actions-cell{text-align:center;width:56px;position:relative}.actions-popover{justify-content:center;display:inline-flex;position:relative}.actions-trigger{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:12px;width:38px;height:38px;font-size:22px;font-weight:900;line-height:1}.actions-trigger:hover{background:#1d4ed8}.actions-menu{z-index:999;background:#fff;border:1px solid #e2e8f0;border-radius:14px;min-width:180px;padding:8px;position:absolute;top:44px;right:0;box-shadow:0 18px 40px #0f172a2e}.actions-menu button{text-align:left;cursor:pointer;color:#0f172a;background:0 0;border:0;border-radius:10px;width:100%;padding:10px 12px;font-weight:700}.actions-menu button:hover{background:#f1f5f9}.status-dropdown{display:inline-block;position:relative}.status-badge{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;gap:8px;height:36px;padding:0 12px;font-size:13px;font-weight:800;display:inline-flex}.status-badge:disabled{cursor:default;opacity:.75}.status-chevron{opacity:.65;font-size:11px}.status-dot{border-radius:999px;flex-shrink:0;width:8px;height:8px}.status-menu{z-index:1000;background:#fff;border:1px solid #e2e8f0;border-radius:14px;min-width:210px;padding:8px;position:absolute;top:42px;right:0;box-shadow:0 18px 44px #0f172a2e}.status-menu-item{cursor:pointer;color:#0f172a;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;font-weight:700;display:flex}.status-menu-item:hover{background:#f1f5f9}.status-badge-orange{color:#b45309;background:#fff7ed;border-color:#fdba74}.status-badge-blue{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.status-badge-green{color:#15803d;background:#ecfdf5;border-color:#86efac}.status-badge-red{color:#dc2626;background:#fef2f2;border-color:#fca5a5}.status-badge-gray{color:#475569;background:#f8fafc;border-color:#cbd5e1}.status-badge-purple{color:#7e22ce;background:#faf5ff;border-color:#d8b4fe}.status-dot-orange{background:#f97316}.status-dot-blue{background:#2563eb}.status-dot-green{background:#16a34a}.status-dot-red{background:#dc2626}.status-dot-gray{background:#64748b}.status-dot-purple{background:#9333ea}.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;margin-top:32px;padding:20px;box-shadow:0 8px 24px #0f172a14}.section-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.section-header h3{color:#0f172a;margin:0;font-size:22px}.section-header h2{color:#064df5;margin:0;font-size:18px}.section-header p{color:#64748b;margin:6px 0 0}.compact-table th,.compact-table td{padding:11px 12px}.table-wrapper{overflow-x:auto}.table-date-input{border:1px solid #cbd5e1;border-radius:10px;height:38px;padding:0 10px;font-weight:700}.patient-name-cell{color:#0f172a;font-weight:800}.missing-doctor-row{background:#fffbeb}.missing-doctor-row td{border-color:#fde68a}.login-page{background:radial-gradient(circle at 6% 0,#2563eb24,#0000 22%),radial-gradient(circle at 86% 24%,#3b82f61a,#0000 28%),linear-gradient(135deg,#f8fbff 0%,#eef4fb 48%,#e7eef8 100%);justify-content:center;align-items:center;min-height:100vh;padding:32px;display:flex;position:relative;overflow:hidden}.login-page:before{content:"";opacity:.45;pointer-events:none;background-color:#0000;background-image:linear-gradient(#eff6ffc7,#eff6ffc7),url(../../assets/hospital-bg.png);background-position:50%;background-repeat:repeat,repeat;background-size:cover;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;width:620px;height:520px;position:absolute;bottom:-40px;right:-80px}.login-page:after{content:"";opacity:.35;background-image:radial-gradient(#2563eb 2px,#0000 2px);background-size:18px 18px;width:180px;height:80px;position:absolute;bottom:70px;left:60px}.login-card{z-index:1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffffeb;border:1px solid #e2e8f0e6;border-radius:24px;width:100%;max-width:460px;min-height:570px;padding:42px 46px 34px;position:relative;box-shadow:0 30px 90px #0f172a29,inset 0 1px #ffffffe6}.login-brand{text-align:center;flex-direction:column;align-items:center;margin-bottom:28px;display:flex}.login-logo{filter:drop-shadow(0 12px 22px #2563eb38);width:96px;height:auto;margin-bottom:18px}.login-brand h1{color:#0f172a;letter-spacing:-.04em;margin:0;font-size:34px;font-weight:900;line-height:1.1}.login-brand p{color:#64748b;margin:8px 0 0;font-size:16px}.login-divider{background:#e2e8f0;height:1px;margin:18px 0 26px;position:relative}.login-divider:after{content:"";background:#2563eb;border-radius:50%;width:9px;height:9px;position:absolute;top:-4px;left:50%;transform:translate(-50%);box-shadow:0 0 0 6px #fff}.login-title{text-align:center;margin-bottom:24px}.login-title h2{color:#0f172a;margin:0;font-size:28px;font-weight:900}.login-title p{color:#64748b;margin:8px 0 0;font-size:16px}.login-card input{color:#0f172a;background:#ffffffdb;border:1px solid #cbd5e1;border-radius:14px;outline:none;width:100%;height:56px;margin-bottom:16px;padding:0 16px;font-size:16px;transition:all .18s}.login-card input::placeholder{color:#64748b}.login-card input:focus{background:#fff;border-color:#2563eb;box-shadow:0 0 0 5px #2563eb1f}.login-card button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:0;border-radius:14px;width:100%;height:58px;margin-top:6px;font-size:16px;font-weight:900;transition:all .18s;box-shadow:0 16px 32px #2563eb42}.login-card button:hover{transform:translateY(-1px);box-shadow:0 20px 38px #2563eb52}.login-card button:disabled{opacity:.65;cursor:not-allowed;transform:none}.login-card .error-message{margin-bottom:16px}@media (width<=640px){.login-card{max-width:100%;min-height:auto;padding:32px 24px}.login-brand h1{font-size:28px}.login-page:before{display:none}}
