@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root{--navy:#101a2d;--navy2:#16243b;--ink:#1b2940;--muted:#8390a4;--line:#e8edf4;--bg:#f4f6fa;--white:#fff;--blue:#5278f4;--blue2:#355fe0;--green:#1aad7e;--orange:#e8a33d;--red:#d85c65;--purple:#8d68d9;--shadow:0 8px 24px rgba(24,40,66,.055)}
*{box-sizing:border-box}html{min-width:320px}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.shell{min-height:100vh;display:grid;grid-template-columns:264px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:linear-gradient(160deg,#101a2d,#14233a 78%,#182a45);color:#eaf0fb;padding:22px 16px 15px;display:flex;flex-direction:column;z-index:20}.brand-row{display:flex;align-items:center;gap:11px;padding:3px 8px 21px;border-bottom:1px solid #ffffff12}.brand-mark{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:19px;background:linear-gradient(145deg,#7095ff,#456be6);box-shadow:0 7px 18px #5278f444;flex:none}.brand-text{font-size:16px;font-weight:700;line-height:1.2}.brand-text small{display:block;font-size:10px;color:#8da0bd;font-weight:400;margin-top:4px}.close-sidebar{display:none;margin-right:auto;border:0;color:#bac6d8;background:transparent;font-size:24px}.nav{padding-top:14px;display:grid;gap:3px}.nav-caption{padding:13px 10px 5px;color:#7486a3;font-size:9px;font-weight:700;letter-spacing:.5px}.nav-item{width:100%;border:0;border-radius:9px;background:transparent;color:#aebbce;padding:9px 10px;display:flex;align-items:center;gap:10px;text-align:right;font-size:11px;transition:.16s}.nav-item:hover{background:#ffffff0b;color:#fff}.nav-item.active{background:linear-gradient(90deg,#3e68df36,#5278f421);color:#fff;box-shadow:inset -2px 0 #82a1ff}.nav-icon{width:19px;height:19px;border-radius:6px;background:#ffffff0b;display:grid;place-items:center;color:#b3c3dd;font-size:12px;flex:none}.nav-item.active .nav-icon{background:#5377ec32;color:#9bb1ff}.nav-label{flex:1}.nav-count{min-width:19px;text-align:center;padding:1px 6px;border-radius:12px;background:#ffffff12;font-size:9px;color:#99aaca}.sidebar-foot{margin-top:auto}.server-status{border:1px solid #ffffff13;background:#ffffff08;border-radius:11px;padding:11px;display:flex;align-items:center;gap:9px;margin:15px 2px 13px}.server-status>div{display:grid;gap:3px;flex:1}.server-status b{font-size:10px}.server-status small{font-size:9px;color:#91a1b8}.server-status strong{font-size:9px;color:#61d5aa}.pulse{width:7px;height:7px;background:#3bd49d;border-radius:50%;box-shadow:0 0 0 4px #3bd49d20}.profile-row{border-top:1px solid #ffffff13;padding:13px 5px 0;display:flex;align-items:center;gap:9px}.avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#354b6b;color:#e6edff;font-weight:700;font-size:11px;flex:none}.avatar.light{background:#eef2ff;color:#5274dd}.profile-info{display:grid;gap:3px;flex:1;min-width:0}.profile-info b{font-size:10px;overflow:hidden;text-overflow:ellipsis}.profile-info small{font-size:9px;color:#899ab4}.logout{border:1px solid #ffffff16;background:#ffffff08;color:#a8b8d0;border-radius:8px;width:30px;height:30px;font-size:16px}.main{min-width:0;direction:rtl}.topbar{height:68px;position:sticky;top:0;background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);z-index:10;padding:0 30px;display:flex;align-items:center;justify-content:space-between}.crumbs{display:flex;gap:9px;align-items:center;color:#98a3b1;font-size:10px}.crumbs i{font-style:normal;color:#c6ccd5}.crumbs b{font-weight:600;color:#526178}.top-actions{display:flex;align-items:center;gap:12px}.global-search{width:230px;height:34px;border:1px solid var(--line);border-radius:9px;background:#f9fafc;display:flex;align-items:center;gap:8px;padding:0 10px;color:#94a0b0}.global-search span{font-size:20px;line-height:1}.global-search input{width:100%;border:0;outline:0;background:transparent;font-size:10px;color:var(--ink)}.icon-button,.menu-btn{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#718096;font-size:18px}.top-user{display:flex;align-items:center;gap:8px;padding-right:10px;border-right:1px solid var(--line)}.top-user span{font-size:10px;font-weight:600}.menu-btn{display:none}.page-wrap{max-width:1600px;margin:0 auto;padding:27px 30px 26px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:20px}.eyebrow{font-size:9px;color:#6885dc;font-weight:700;letter-spacing:.45px;margin-bottom:5px}.page-heading h1{font-size:22px;margin:0;color:#1c2a40;letter-spacing:-.3px}.page-heading p{font-size:10px;color:#8591a2;margin:5px 0 0}.heading-actions{display:flex;align-items:center;gap:8px}.update-time{font-size:9px;color:#9aa5b4;margin-left:3px}.btn{height:35px;border:1px solid transparent;border-radius:8px;padding:0 13px;font-size:10px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;transition:.15s}.btn.primary{background:var(--blue);color:#fff;box-shadow:0 5px 13px #5278f42d}.btn.primary:hover{background:var(--blue2)}.btn.ghost{background:#fff;border-color:var(--line);color:#5f6f84}.btn.ghost:hover{border-color:#c9d4e8;background:#fbfcff}.btn.full{width:100%;height:42px;margin-top:6px;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}.stat-card,.panel{background:#fff;border:1px solid #e9edf3;border-radius:12px;box-shadow:var(--shadow)}.stat-card{padding:15px 16px 13px;min-height:108px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#77859a;font-size:10px}.stat-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-style:normal;font-size:14px}.stat-icon.blue{background:#edf2ff;color:#5175e8}.stat-icon.green{background:#e9f8f1;color:#1ca77c}.stat-icon.purple{background:#f2edff;color:#8d68d9}.stat-icon.orange{background:#fff4e5;color:#dc9630}.stat-card>strong{display:block;margin-top:8px;font-size:23px;line-height:1.1;color:#1c2940}.stat-card>small{display:block;color:#9aa4b2;font-size:9px;margin-top:4px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:14px;margin-bottom:14px}.panel{padding:16px 17px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading h2{font-size:12px;margin:0;color:#27364b}.panel-heading p{font-size:9px;color:#9aa5b4;margin:4px 0 0}.real-tag,.health-pill{font-size:8px;border-radius:20px;padding:5px 8px;color:#678276;background:#edf8f2;display:flex;align-items:center;gap:5px;white-space:nowrap}.real-tag i,.health-pill i{width:5px;height:5px;background:#29b383;border-radius:50%}.chart{height:185px;margin-top:8px;position:relative}.chart svg{width:100%;height:100%;overflow:visible}.chart-legend{display:flex;align-items:center;gap:10px;margin-top:0;color:#7c899a;font-size:9px}.chart-legend i{width:7px;height:7px;display:inline-block;border-radius:2px;background:#5278f4;margin-left:5px}.chart-legend small{margin-right:auto;color:#a5aeb9;font-size:8px}.resource-row{margin-top:18px}.resource-row>div:first-child{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#758398;margin-bottom:7px}.resource-row b{color:#3b4a61;font-size:10px}.meter{height:6px;border-radius:8px;background:#edf1f6;overflow:hidden}.meter i{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(90deg,#4f76ef,#8ba7ff);transition:width .3s}.meter.green i{background:linear-gradient(90deg,#21b486,#7cdbb6)}.meter.orange i{background:linear-gradient(90deg,#e4a039,#f2ca7e)}.load-row{display:flex;justify-content:space-between;border-top:1px solid #f0f2f6;margin-top:19px;padding-top:12px;font-size:9px;color:#8c98a8}.load-row b{font-size:10px;color:#4d5e75}.recent-panel{padding-bottom:7px}.text-button{border:0;background:none;color:#5578e8;font-size:9px;padding:5px}.recent-list{margin-top:9px}.activity-row{display:flex;align-items:center;gap:10px;border-top:1px solid #f0f2f6;padding:10px 0}.activity-mark{width:27px;height:27px;border-radius:8px;background:#eff3ff;color:#5f7fe6;display:grid;place-items:center;font-size:12px;flex:none}.activity-copy{flex:1;min-width:0;font-size:9px;color:#66758a;line-height:1.6}.activity-copy b{color:#2e3d52;font-weight:600}.activity-time{font-size:8px;color:#a2adbb;white-space:nowrap}.empty-inline{padding:20px;text-align:center;color:#9ba5b3;font-size:10px}.footer-note{display:flex;justify-content:space-between;color:#a0aaba;font-size:8px;padding:15px 4px 0}.module-summary{display:flex;align-items:center;justify-content:space-between;color:#8995a5;font-size:9px;padding:0 2px 10px}.module-summary>div:first-child{display:flex;align-items:center;gap:7px}.summary-dot{width:6px;height:6px;background:#24b284;border-radius:50%}.table-panel{padding:0;overflow:hidden}.table-wrap{overflow:auto;min-height:140px}table{width:100%;border-collapse:collapse;text-align:right;min-width:650px}thead{background:#fafbfd}th{padding:12px 13px;border-bottom:1px solid #edf0f4;color:#8c98a8;font-size:9px;font-weight:600;white-space:nowrap}td{padding:11px 13px;border-bottom:1px solid #f0f2f5;color:#5c6b80;font-size:9px;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfe}.cell-primary{display:flex;align-items:center;gap:8px;min-width:120px;color:#2c3c51;font-weight:600}.cell-avatar{width:24px;height:24px;border-radius:7px;background:#edf2ff;color:#5274df;display:grid;place-items:center;font-size:9px;font-weight:700;flex:none}.cell-muted{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:4px 8px;background:#eaf8f2;color:#189a70;font-size:8px;white-space:nowrap}.badge:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.badge.disabled{background:#fff2e8;color:#ce8735}.row-actions{display:flex;gap:4px;justify-content:flex-start}.action-btn{width:27px;height:26px;border:1px solid #e8edf3;background:#fff;border-radius:7px;color:#718097;font-size:11px}.action-btn:hover{background:#f4f7ff;color:#5074e6;border-color:#dce5ff}.action-btn.danger:hover{background:#fff2f2;color:#d45f68;border-color:#f5d9dc}.empty-state{text-align:center;padding:42px 20px 45px;color:#8591a1}.empty-symbol{width:42px;height:42px;background:#f0f4ff;border-radius:13px;color:#7791ed;display:grid;place-items:center;font-size:21px;margin:0 auto 10px}.empty-state b{display:block;color:#3c4a60;font-size:12px}.empty-state p{font-size:9px;margin:6px 0 14px}.table-footer{border-top:1px solid #edf0f4;display:flex;justify-content:space-between;padding:10px 14px;color:#a0aab7;font-size:8px}.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px}.modal-backdrop{position:absolute;inset:0;background:#111c30a6;backdrop-filter:blur(3px)}.modal-card{position:relative;width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:15px;box-shadow:0 24px 80px #0c173140;padding:20px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #edf0f4;padding-bottom:14px;margin-bottom:16px}.modal-head h2{margin:0;font-size:17px}.modal-x{width:30px;height:30px;border:0;border-radius:8px;background:#f4f6f9;color:#79869a;font-size:20px}.form-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-field{display:grid;gap:6px}.form-field.wide{grid-column:1/-1}.form-field label{font-size:9px;color:#58677c;font-weight:600}.form-field input,.form-field select,.form-field textarea{width:100%;min-height:37px;border:1px solid #e3e8ef;border-radius:8px;padding:8px 10px;color:#2d3c52;background:#fff;outline:none;font-size:10px}.form-field textarea{min-height:75px;resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#9fb5ff;box-shadow:0 0 0 3px #5e7fe511}.form-field input::placeholder,.form-field textarea::placeholder{color:#aab3bf}.form-error{min-height:17px;color:#c74f59;font-size:9px;margin-top:8px}.modal-actions{display:flex;justify-content:flex-start;gap:8px;border-top:1px solid #edf0f4;padding-top:14px;margin-top:8px}.toast{position:fixed;z-index:80;bottom:20px;left:50%;transform:translate(-50%,16px);background:#15243a;color:#fff;border-radius:9px;padding:10px 16px;font-size:10px;box-shadow:0 10px 30px #111b2c2c;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.login-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 10% 10%,#dce6ff 0,transparent 35%),radial-gradient(ellipse at 90% 90%,#deefe9 0,transparent 30%),#f3f6fb}.login-card{width:min(400px,100%);background:#fff;border:1px solid #e9edf3;border-radius:17px;box-shadow:0 22px 65px #1a2c4814;padding:30px}.login-card>.brand-mark{margin-bottom:12px}.login-brand{font-size:18px;font-weight:700;color:#1a2940}.login-brand span{display:block;font-size:10px;color:#8995a6;font-weight:400;margin-top:3px}.login-card h1{font-size:20px;margin:25px 0 4px}.login-card>p{font-size:10px;color:#8a96a6;margin:0 0 19px}.login-card form{display:grid;gap:13px}.login-card label{display:grid;gap:6px;font-size:10px;color:#526176;font-weight:600}.login-card input{height:40px;border:1px solid #e2e7ef;border-radius:8px;padding:0 11px;outline:0;color:#24344a}.login-card input:focus{border-color:#98adfa;box-shadow:0 0 0 3px #5278f418}.login-foot{display:block;text-align:center;color:#a1acb9;font-size:8px;margin-top:22px}.sidebar-shade{display:none}
@media(max-width:1100px){.shell{grid-template-columns:235px minmax(0,1fr)}.page-wrap{padding:24px 22px}.topbar{padding:0 22px}.global-search{width:190px}.stats-grid{gap:9px}.stat-card{padding:13px}.dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(235px,1fr)}}
@media(max-width:780px){.shell{display:block}.sidebar{position:fixed;right:0;top:0;width:270px;transform:translateX(105%);transition:transform .22s;height:100dvh}.sidebar.open{transform:translateX(0)}.sidebar-shade.show{display:block;position:fixed;inset:0;background:#0c183177;z-index:19}.close-sidebar{display:block}.topbar{height:58px;padding:0 14px;gap:10px}.menu-btn{display:block;flex:none}.crumbs{margin-left:auto}.top-actions{gap:7px}.global-search{width:min(40vw,180px);height:32px}.global-search input{font-size:9px}.top-user{display:none}.page-wrap{padding:20px 14px}.page-heading{align-items:flex-start}.page-heading h1{font-size:20px}.page-heading p{max-width:45vw;line-height:1.6}.heading-actions{align-self:flex-end}.update-time{display:none}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{min-height:100px}.dashboard-grid{grid-template-columns:1fr}.chart{height:160px}.health-panel{padding-bottom:18px}.footer-note{gap:8px;line-height:1.6}.form-fields{grid-template-columns:1fr}.form-field.wide{grid-column:auto}.modal-card{padding:16px}.table-footer{font-size:8px}}
@media(max-width:460px){.topbar{padding:0 10px}.global-search{width:36vw}.heading-actions .btn{height:32px;padding:0 8px;font-size:9px}.page-heading{gap:8px}.page-heading h1{font-size:18px}.heading-actions{gap:5px}.page-wrap{padding:17px 10px}.stats-grid{gap:7px}.stat-card{padding:11px;min-height:95px}.stat-card>strong{font-size:20px}.panel{padding:13px}.chart{height:145px}.footer-note{font-size:7px}.login-card{padding:24px}.modal{padding:9px}.modal-card{max-height:96vh}}
