/* Rafeq workspace — original implementation inspired by Tabler and TailAdmin. */
@font-face{font-family:TajawalLocal;src:url('../assets/fonts/tajawal-400.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:TajawalLocal;src:url('../assets/fonts/tajawal-700.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--bg-page:#f4f6fb;--bg-surface:#fff;--bg-subtle:#f8fafc;--border-color:#e2e8f0;--border-focus:#7c3aed;--text-main:#1e293b;--text-muted:#475569;--text-dim:#64748b;--primary:#4f46e5;--primary-hover:#4338ca;--primary-light:#f0edff;--primary-border:#e4ddfb;--success:#15803d;--success-light:#eef8f2;--danger:#dc2626;--danger-light:#fdf0f2;--green-light:#eef8f2;--green-border:#cee9dc;--accent-green:#15803d;--amber-light:#fff7e9;--amber-border:#f1dfbb;--accent-amber:#b45309;--red-light:#fdf0f2;--red-border:#f4d5dc;--accent-red:#dc2626;--radius-md:8px;--radius-lg:11px;--radius-xl:13px;--shadow-sm:0 1px 4px #18243c03;--sidebar-width:0px}
body.admin-workspace{font-family:Tajawal,Arial,sans-serif;font-size:14px;background:var(--bg-page);line-height:1.65}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b9aff0;outline-offset:3px}.skip-link{position:fixed;top:-100px;right:260px;z-index:5000;background:var(--primary);color:#fff;padding:12px}.skip-link:focus{top:10px}
.admin-sidebar{position:fixed;inset:0 0 0 auto;width:var(--sidebar-width);background:#fff;border-left:1px solid var(--border-color);z-index:130;display:flex;flex-direction:column;padding:29px 19px 0}.workspace-brand{display:flex;align-items:center;gap:12px;color:#252d43;font-size:29px;font-weight:700;padding:0 11px 27px;line-height:1.2;text-decoration:none}.workspace-brand small{display:block;font-size:11px;color:var(--text-muted);font-weight:400;margin-top:5px}.brand-mark{width:42px;height:43px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:20px;box-shadow:0 5px 12px #6554ce20}.workspace-label{display:flex;justify-content:space-between;border:1px solid var(--border-color);padding:10px 12px;border-radius:8px;font-size:12px;color:var(--text-muted);margin-bottom:21px}.workspace-label span{color:var(--text-main);font-weight:700}.nav-caption{font-size:11px;color:#98a0b1;margin:15px 13px 10px}.sidebar-nav{display:flex;flex-direction:column;gap:5px}.sidebar-nav .tab-btn{display:flex;gap:12px;width:100%;padding:12px 13px;background:none;color:#687389;text-align:right;font-weight:700;font-size:13px;border-radius:8px;border:0;transform:none;box-shadow:none}.sidebar-nav .tab-btn>i{width:18px;text-align:center;font-size:14px;color:#939bad}.sidebar-nav .tab-btn:hover{background:#f8f6ff;color:var(--primary)}.sidebar-nav .tab-btn.active{background:var(--primary-light);color:var(--primary)}.sidebar-nav .tab-btn.active>i{color:var(--primary)}.tab-badge{margin-right:auto;font-size:10px;padding:0 6px;min-width:20px;text-align:center;background:#f1f3f7;border:0;border-radius:5px;color:#8994a8;font-family:Arial,sans-serif}.tab-btn.active .tab-badge{background:#e3ddfb;color:var(--primary)}.sidebar-footer{margin-top:auto;padding:24px 1px 0}.sidebar-status{display:flex;gap:7px;align-items:center;font-size:11px;color:var(--text-muted)}.sidebar-footer>small{display:block;color:var(--text-dim);font-size:10px;margin:3px 15px 20px}.sidebar-account{display:flex;align-items:center;gap:9px;border-top:1px solid var(--border-color);padding:17px 0}.account-avatar{background:#f0edfc;color:var(--primary);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.sidebar-account>span:nth-child(2){min-width:0;flex:1}.sidebar-account strong{display:block;font-size:11px}.sidebar-account small{display:block;direction:ltr;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;max-width:125px;color:var(--text-muted)}.sidebar-account .icon-button{width:26px;min-width:26px;border:0}
.app-header{height:76px;background:#fff;border-bottom:1px solid var(--border-color);margin-right:var(--sidebar-width);position:sticky;top:0;z-index:100;box-shadow:none;backdrop-filter:none}.header-container{height:100%;max-width:none!important;margin:0!important;display:flex;align-items:center;gap:28px!important;padding:0 34px!important;flex-wrap:nowrap!important}.header-location{display:flex;align-items:center;gap:12px;font-size:12px;white-space:nowrap;color:var(--text-dim)}.header-location>i{font-size:8px}.header-location strong{font-weight:400;color:var(--text-main)}.header-search{position:relative;display:flex;align-items:center;gap:10px;max-width:390px;flex:1;margin-right:18px;color:#a1a9b8}.header-search input{width:100%;border:0;background:transparent;padding:10px 0;color:var(--text-main);font-size:12px}.header-search input::placeholder{color:#9ca4b3}.header-search kbd{border:1px solid var(--border-color);font:10px Arial,sans-serif;white-space:nowrap;border-radius:4px;padding:3px 5px;direction:ltr}.user-actions{display:flex;align-items:center;gap:13px!important;margin-right:auto;flex-shrink:0;flex-wrap:nowrap!important}.connection-status{font-size:11px;display:flex;align-items:center;gap:7px;white-space:nowrap;color:var(--text-muted)}.connection-dot{width:6px;height:6px;border-radius:50%;background:#b1b8c7;display:inline-block;flex-shrink:0}body[data-sync="connected"] .connection-dot{background:var(--success)}body[data-sync="error"] .connection-dot,body[data-sync="offline"] .connection-dot{background:#c99a50}.icon-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--border-color);border-radius:8px;background:white;color:#8490a4;cursor:pointer}.icon-button:hover{color:var(--primary);background:var(--primary-light)}.menu-toggle{display:none}.search-results{position:absolute;top:48px;right:0;left:0;min-width:280px;background:#fff;border:1px solid var(--border-color);border-radius:12px;padding:7px;box-shadow:0 12px 35px #20293912;max-height:400px;overflow:auto}.search-result{width:100%;background:none;border:0;display:flex;align-items:center;justify-content:space-between;text-align:right;padding:10px;gap:12px;border-radius:6px;color:var(--text-main)}.search-result:hover{background:var(--bg-subtle)}.search-result small{color:var(--text-muted);font-size:10px}.search-no-results{padding:18px;color:var(--text-muted);font-size:12px}
.main-container{margin:0 var(--sidebar-width) 0 0;max-width:none;padding:32px 34px 36px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{color:var(--text-dim);font-size:11px;display:block;margin-bottom:5px}.page-heading h1{font-size:27px;letter-spacing:-.7px;font-weight:700;line-height:1.5}.page-heading p{color:var(--text-muted);font-size:12px;margin-top:3px}.page-actions{display:flex;align-items:center;gap:20px;flex-shrink:0}.page-date{color:var(--text-muted);font-size:11px}.sync-notice{border:1px solid #ead5a6;background:#fffaef;color:#83601b;border-radius:8px;padding:10px 15px;font-size:12px;margin-bottom:16px}.grade-switcher-bar{display:flex;align-items:center;justify-content:flex-start;gap:18px;margin-bottom:24px;background:transparent;border:0;padding:0!important;box-shadow:none;color:var(--text-main)}.grade-switcher-title{font-size:12px;color:#7d889d;font-weight:400}.grade-pills{display:flex;align-items:center;gap:3px;border:1px solid var(--border-color);background:#fff;padding:4px;border-radius:9px}.grade-pill{padding:6px 12px;display:flex;align-items:center;gap:9px;border-radius:5px;background:none;border:0;color:var(--text-muted);font-size:12px;white-space:nowrap;font-weight:400}.grade-pill:hover{background:#f8f7fc;color:var(--primary);transform:none}.grade-pill.active,.grade-pill#pill-grade-2.active,.grade-pill#pill-grade-3.active,.grade-pill#pill-grade-4.active{background:#f0edff;color:var(--primary);font-weight:700;box-shadow:none;border:0}.pill-count{font-size:10px;color:#949cae;background:transparent;padding:0;font-weight:400;font-family:Arial,sans-serif;margin:0}.grade-pill.active .pill-count{color:var(--primary)}.grade-context-indicator{color:var(--text-dim)!important;font-size:11px!important;margin-right:auto;background:none!important;border:0!important;padding:0!important;font-weight:400!important}
.kpi-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.kpi-card{background:#fff;border:1px solid var(--border-color);border-radius:12px;padding:20px;position:relative;min-width:0;display:block;box-shadow:var(--shadow-sm)}.kpi-card:hover{transform:none;box-shadow:none;border-color:var(--border-color)}.kpi-label{font-size:12px;color:var(--text-muted);margin-bottom:15px;font-weight:400}.kpi-content{margin:0}.kpi-value{font-size:32px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.6px}.kpi-sub{color:var(--text-dim);font-size:10px;margin-top:12px}.kpi-icon{position:absolute;left:18px;top:18px;display:grid;place-items:center;width:31px;height:31px;background:#f4f2ff;color:var(--primary);border-radius:9px;font-size:13px}.kpi-icon.students{background:#f0edff;color:#7d68d5}.kpi-icon.teachers{background:#eef3fc;color:#7b97be}.kpi-icon.active-lic{background:#edf8f3;color:#55a286}.kpi-icon.avail-lic{background:#fff7e9;color:#c49543}.overview-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:21px;margin-bottom:22px}.panel{border:1px solid var(--border-color);background:#fff;border-radius:12px;box-shadow:var(--shadow-sm);min-width:0}.panel-heading{padding:22px 23px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading h2{font-size:15px;font-weight:700}.panel-heading p{font-size:10px;color:var(--text-dim);margin-top:3px}.panel-heading>i{font-size:15px;color:#a3aabc}.text-button{border:0;background:none;color:var(--primary);font-size:11px;display:inline-flex;align-items:center;gap:8px;padding:5px 0;white-space:nowrap;cursor:pointer}.text-button i{font-size:9px}.overview-grade-row{display:grid;grid-template-columns:36px minmax(80px,1fr) minmax(50px,.9fr) 42px;align-items:center;gap:13px;padding:17px 23px;border-top:1px solid #f0f1f6}.grade-tile{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;font-weight:700;font-size:15px;background:#f1edff;color:#937ac8}.grade-tile.g3{background:#eaf3ff;color:#779bc9}.grade-tile.g4{background:#fff4df;color:#c6a165}.overview-grade-row strong{display:block;font-size:12px}.overview-grade-row small{font-size:10px;color:var(--text-dim)}.grade-progress{height:5px;border-radius:5px;background:#f0eef9;overflow:hidden}.grade-progress span{display:block;height:100%;background:#a99be5;border-radius:5px}.grade-row-count{font-family:Arial,sans-serif;text-align:left;font-size:13px;font-weight:700;color:#546078}.license-summary{display:flex;align-items:center;justify-content:center;gap:30px;padding:14px 22px 29px;min-height:200px}.license-donut{width:146px;height:146px;border-radius:50%;background:#e9ecf3;display:grid;place-items:center;flex-shrink:0;position:relative;transform:rotate(-90deg)}.license-donut:before{content:"";position:absolute;inset:14px;border-radius:50%;background:#fff}.license-donut>div{position:relative;text-align:center;transform:rotate(90deg)}.license-donut strong{font-size:27px;font-weight:700;display:block;line-height:1.2}.license-donut span{font-size:9px;color:var(--text-dim)}.license-legend{display:flex;flex-direction:column;gap:17px;flex:1;max-width:180px;font-size:11px;color:var(--text-muted)}.license-legend>div{display:flex;align-items:center;gap:8px}.license-legend strong{margin-right:auto;font:700 12px Arial,sans-serif;color:#4e5b71}.legend-dot{width:7px;height:7px;border-radius:50%;background:#8b75d8;flex-shrink:0}.legend-dot.available{background:#75b5a5}.legend-dot.expired{background:#e4c28c}.recent-panel{margin-bottom:22px}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.quick-actions button{background:white;border:1px solid var(--border-color);border-radius:10px;padding:17px 20px;display:flex;align-items:center;gap:13px;text-align:right;color:var(--text-main);cursor:pointer}.quick-actions button:hover{border-color:#bfb6ec}.quick-actions button>i:first-child{display:grid;place-items:center;background:var(--primary-light);width:34px;height:34px;border-radius:9px;color:var(--primary);font-size:13px}.quick-actions span{font-size:12px;font-weight:700}.quick-actions small{display:block;font-size:10px;color:var(--text-dim);font-weight:400;margin-top:3px}.quick-actions button>i:last-child{margin-right:auto;font-size:10px;color:#a6aebb}
.btn{border-radius:7px;font-size:12px;font-weight:700;padding:10px 16px;min-height:38px;line-height:1.4;box-shadow:none}.btn:hover:not(:disabled){transform:none!important;box-shadow:none}.btn-primary{background:var(--primary);border:1px solid var(--primary)}.btn-secondary{background:white;color:#69758b;border-color:#e4e7ef}.btn-success{background:var(--success)}.btn-danger{background:var(--danger-light);color:var(--danger);border-color:#f4dbe0}.btn-danger:hover:not(:disabled){background:#f9dfe3;color:var(--danger)}.btn-sm{padding:6px 11px;min-height:32px;font-size:11px}.btn-icon{width:31px;height:31px;min-height:31px;padding:0;vertical-align:middle}.header-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.section-header{margin-bottom:20px}.section-title-secondary{display:none}.toolbar-filter-strip{background:white;border:1px solid var(--border-color);border-radius:10px;padding:14px;gap:10px;margin-bottom:15px;box-shadow:none}.search-input-group{position:relative}.search-input-group>i{color:#9da5b4}.search-input,.toolbar-filter-strip .search-input{border:1px solid #e4e7ef;border-radius:7px;padding:10px 35px 10px 12px;color:var(--text-main);font-size:12px;background:#fff;box-shadow:none;min-height:38px}.search-input::placeholder{color:#a0a7b4}.custom-select,select{border:1px solid #e4e7ef!important;border-radius:7px!important;padding:9px 11px 9px 30px!important;background-color:#fff!important;color:#6d7890!important;font-size:12px!important;font-weight:400!important;max-width:100%;min-height:38px;box-shadow:none!important}.quick-filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.chip{background:transparent;color:var(--text-muted);border:1px solid var(--border-color);border-radius:6px;padding:6px 13px;font-size:11px}.chip.active{background:#ede9fb;color:var(--primary);border-color:#e0d8f7}.table-card{border-radius:11px;min-width:0;overflow:hidden!important;box-shadow:var(--shadow-sm)}.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}.data-table{border-collapse:collapse;font-size:12px;min-width:720px}.data-table th{text-align:right;font-size:10px;color:#929bad;font-weight:400;background:#fbfcfe;border-top:1px solid #eef0f5;border-bottom:1px solid #eef0f5;padding:13px 18px;white-space:nowrap}.data-table td{padding:15px 18px;border-bottom:1px solid #f0f2f7;vertical-align:middle;color:#647087;max-width:260px}.data-table td strong{font-weight:700}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfbff}.data-table td .btn+.btn{margin-right:3px}.recent-panel .data-table td{padding-top:13px;padding-bottom:13px}.table-pagination-bar{padding:14px 18px;border-top:1px solid var(--border-color);font-size:11px;color:var(--text-muted);flex-wrap:wrap;gap:12px;background:#fff}.pagination-controls,.pagination-buttons,.page-size-selector{display:flex;align-items:center;gap:10px}.page-size-selector select{min-height:29px;padding:3px 9px 3px 28px!important;font-size:11px!important}.page-indicator{font-size:10px;color:var(--text-dim)}.badge{padding:3px 7px;border-radius:5px;font-size:10px;font-weight:400;white-space:nowrap;line-height:1.5;border:0}.badge-primary,.badge-info{background:#efecfc;color:#8c78ce}.badge-success{background:#ecf7f0;color:#5c9f80}.badge-danger{background:#fcf0f1;color:#cd6b78}.badge-warning{background:#fff5e4;color:#b99a63}.badge-grade-2{background:#f1edfc!important;color:#9175bf!important;border:0!important;font-weight:400!important}.badge-grade-3{background:#eef4fc!important;color:#6d94c2!important;border:0!important;font-weight:400!important}.badge-grade-4{background:#fff6e5!important;color:#b28f50!important;border:0!important;font-weight:400!important}.badge-universal{background:#f2f4f8!important;color:#8190a5!important;border:0!important;font-weight:400!important}.student-avatar-thumb{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;border:1px solid var(--border-color)!important;box-shadow:none!important}.student-cell{display:flex;align-items:center;gap:10px;min-width:140px}.student-initial{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#f1eefb;color:#8b77c3;font-size:12px;font-weight:700;flex-shrink:0}.student-cell strong{font-size:12px;color:#47536b}.student-cell small{display:block;font-size:9px;color:var(--text-dim)}.empty-row{text-align:center!important;padding:45px 20px!important;color:var(--text-muted)}
.teachers-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}.teacher-card{border-radius:12px;padding:20px;box-shadow:none}.teacher-card:hover{transform:none;box-shadow:none;border-color:#d9d2ee}.teacher-avatar-box{width:42px;height:42px;background:#f1edfc;color:#8e78c5;border-radius:11px;box-shadow:none;font-size:18px}.teacher-card h3{font-size:15px}.teacher-meta{font-size:11px}.teacher-stats-row{background:#fafbfe;border:1px solid #f1f2f7;border-radius:8px;padding:12px;margin-top:20px}.stat-label{font-size:10px;font-weight:400}.stat-value{font-size:19px}.stat-value i{font-size:11px;opacity:.5}.profile-top-bar{background:white;border:1px solid var(--border-color);border-radius:12px;padding:20px;flex-wrap:wrap}.profile-top-info,.profile-action-buttons{flex-wrap:wrap}.teacher-detail-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px}.teacher-detail-grid .data-table{min-width:520px}.form-control{border:1px solid #dfe4ed;border-radius:7px;background:white;padding:10px 12px;font-size:13px;min-height:40px}.form-group label{font-size:12px;font-weight:700;color:#667189}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.setting-card{padding:22px;overflow:visible!important}.setting-card>div:first-child{padding-bottom:15px;border-bottom:1px solid var(--border-color)}.setting-card h3{font-size:15px!important}.setting-card .btn-primary{background:var(--primary);border-color:var(--primary)}#settings-scope-alert{background:#f1eefb!important;border:1px solid #e5dff8!important;color:#7764af!important;border-radius:8px!important;font-size:12px!important;gap:15px;flex-wrap:wrap}.slider{background:#dde1eb}.switch input:checked+.slider{background:var(--primary)}.switch input:focus-visible+.slider{outline:3px solid #b3a8ed;outline-offset:3px}.store-presets-grid{display:flex;gap:7px;flex-wrap:wrap}.btn-store-preset{padding:7px 12px;border-radius:6px;background:#f7f6fc;border:1px solid #e6e0f7;font-size:11px;color:#806db1;box-shadow:none}.btn-store-preset:hover{transform:none;background:#ece7fc}
.modal-overlay{background:#18213766;backdrop-filter:blur(3px);padding:24px;overflow:auto}.modal-box{border-radius:14px;max-height:calc(100dvh - 48px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 80px #111b3833}.modal-header{padding:20px 24px;flex-shrink:0}.modal-header h3{font-size:16px;font-weight:700}.modal-header h3 i{color:var(--primary)!important}.modal-close{background:#f5f6fa;border-radius:6px;color:#9299aa}.modal-body{padding:23px 24px;overflow:auto;min-height:0;overscroll-behavior:contain}.modal-footer{padding:16px 24px;background:#fcfcfe;flex-shrink:0;flex-wrap:wrap;gap:8px}.toast-container{bottom:24px;left:24px;top:auto;right:auto;max-width:calc(100vw - 48px);z-index:4000}.toast{background:#fff;border:1px solid var(--border-color);border-right:3px solid var(--primary);border-radius:9px;padding:13px 18px;box-shadow:0 12px 35px #20293912;font-size:13px;color:var(--text-main)}.slips-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.slip-card{break-inside:avoid;border:1px dashed #bcc5d4;border-radius:9px;padding:15px}
#admin-login-overlay{position:fixed;inset:0;background:#f4f5fa;z-index:3000;align-items:center;justify-content:center;padding:30px;overflow:auto}.login-layout{display:grid;grid-template-columns:1fr 1fr;width:min(980px,100%);background:white;border:1px solid var(--border-color);border-radius:20px;overflow:hidden;box-shadow:0 20px 90px #2c285015}.login-story{background:#31275a;color:#fff;padding:48px 43px;display:flex;flex-direction:column;position:relative}.login-brand{font-size:28px;font-weight:700;margin-bottom:50px;display:flex;align-items:center;gap:12px}.login-brand i{font-size:22px;color:#b3a7ed}.login-eyebrow{font-size:12px;color:#b6acd5;margin-bottom:10px}.login-story h1{font-size:34px;line-height:1.5;letter-spacing:-.5px}.login-story>p{font-size:13px;color:#bfb6d8;margin-top:15px;max-width:300px;line-height:1.9}.login-story>small{font-size:10px;color:#a497c9;margin-top:30px}.login-box{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:54px 48px;text-align:right;max-width:none;width:100%;background:white;border:0;border-radius:0;box-shadow:none}.login-symbol{width:47px;height:47px;display:grid;place-items:center;color:var(--primary);background:var(--primary-light);border:1px solid #e7e1f9;border-radius:12px;font-size:19px;margin-bottom:26px}.login-box h2{font-size:22px;margin:3px 0 12px;letter-spacing:-.5px;font-weight:700}.login-box>p{font-size:13px;color:var(--text-muted);line-height:1.9;margin-bottom:0}.login-submit{width:100%;margin-top:30px;min-height:44px;font-size:13px}.login-footnote{font-size:10px;color:#9299aa;display:flex;gap:7px;align-items:center;align-self:center;margin-top:19px}#login-error-msg{color:var(--danger);background:var(--danger-light);padding:12px;border-radius:7px;font-size:12px;margin-top:15px;width:100%}.login-illustration{margin-top:30px;border:1px solid #635280;border-radius:10px;background:#403368;padding:12px;transform:rotate(-3deg);width:100%;box-shadow:0 16px 25px #1c153333}.illustration-bar{display:flex;gap:4px;border-bottom:1px solid #554477;padding-bottom:10px;margin-bottom:12px}.illustration-bar span{width:4px;height:4px;border-radius:50%;background:#8171a0}.illustration-shell{display:flex;gap:12px;height:100px}.illustration-nav{width:30px;border-radius:5px;background:repeating-linear-gradient(0deg,transparent 0 13px,#655685 13px 17px)}.illustration-main{flex:1}.illustration-stats{display:flex;gap:8px;margin-bottom:13px}.illustration-stats b{width:33%;height:30px;border:1px solid #6b5c8a;background:#594a7b;border-radius:4px}.illustration-row{height:5px;background:#6a5b87;border-radius:2px;margin:12px 0}.illustration-row:last-child{width:70%}
.is-locked .admin-sidebar,.is-locked .app-header,.is-locked .main-container{display:none}
.scope-capability-note{font-size:12px;line-height:1.8;color:#8e6a30;background:#fff8eb;border:1px solid #efdfc1;padding:10px 12px;border-radius:7px;margin-top:14px}
@media print{.admin-sidebar,.app-header,.main-container,#admin-login-overlay,.toast-container,.no-print{display:none!important}.modal-overlay{display:none!important}#modal-print-slips.open,#modal-print-slips.active{display:block!important;position:static;background:none;padding:0;overflow:visible;backdrop-filter:none}#modal-print-slips .modal-box{max-width:none!important;max-height:none!important;display:block!important;box-shadow:none;border:0;overflow:visible}#modal-print-slips .modal-body{padding:0!important;overflow:visible!important;background:white!important}.slips-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.slip-card{break-inside:avoid}@page{size:A4;margin:12mm}}

/* ==========================================================================
   REFINED ARABIC TYPOGRAPHY & LUXURIOUS VISUAL EFFECTS (2026-11-02)
   - Balanced Font Weights (400 / 500 / 600 / 700 — never overly dark/heavy)
   - Smooth Row Animations, Ambient Glows & Micro-Interactions
   ========================================================================== */

:root {
  --sidebar-width: 0px !important;
  --bg-page: #f4f6fb !important;
  --bg-surface: #ffffff !important;
  --bg-subtle: #f8fafc !important;
  --border-color: #e2e8f0 !important;
  --text-main: #1e293b !important;
  --text-muted: #475569 !important;
  --text-dim: #64748b !important;
  --primary: #4f46e5 !important;
  --primary-hover: #4338ca !important;
  --primary-light: #eef2ff !important;
  --primary-border: #c7d2fe !important;
}

@keyframes rowGlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes paneFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0);
  }
}

body.admin-workspace {
  font-family: 'Tajawal', 'Cairo', 'TajawalLocal', system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  background: radial-gradient(circle at 85% 0%, #eef2ff 0%, #f4f6fb 42%, #f1f5f9 100%) !important;
  background-attachment: fixed !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.admin-workspace h1,
body.admin-workspace h2,
body.admin-workspace h3,
body.admin-workspace h4 {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body.admin-workspace .tab-pane.active {
  animation: paneFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================================================
   1. TIER 1: GLOBAL TOP COMMAND HEADER (.app-header)
   ========================================================================== */
body.admin-workspace .app-header {
  position: sticky !important;
  top: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 64px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.18) !important;
  z-index: 140 !important;
}

body.admin-workspace .header-container {
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 8px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

body.admin-workspace .header-brand-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

body.admin-workspace .app-header .workspace-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body.admin-workspace .app-header .brand-mark {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-size: 17px !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45) !important;
  transition: transform 0.25s ease !important;
}

body.admin-workspace .app-header .workspace-brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06) !important;
}

body.admin-workspace .brand-titles {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.25 !important;
}

body.admin-workspace .brand-titles strong {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
}

body.admin-workspace .brand-titles small {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #a5b4fc !important;
  margin-top: 2px !important;
}

/* Integrated Master Grade Switcher inside Top Header */
body.admin-workspace .app-header .grade-switcher-bar {
  margin: 0 !important;
  padding: 4px 8px !important;
  background: rgba(30, 41, 59, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.admin-workspace .app-header .grade-switcher-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  padding: 0 4px !important;
}

body.admin-workspace .app-header .grade-pills {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
}

body.admin-workspace .app-header .grade-pill {
  padding: 5px 11px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  border-radius: 8px !important;
  background: transparent !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

body.admin-workspace .app-header .grade-pill:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

body.admin-workspace .app-header .grade-pill.active,
body.admin-workspace .app-header .grade-pill#pill-grade-2.active,
body.admin-workspace .app-header .grade-pill#pill-grade-3.active,
body.admin-workspace .app-header .grade-pill#pill-grade-4.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4) !important;
}

body.admin-workspace .app-header .pill-count {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #e2e8f0 !important;
}

body.admin-workspace .app-header .grade-pill.active .pill-count {
  background: #ffffff !important;
  color: #4f46e5 !important;
}

/* Global Search in Dark Header */
body.admin-workspace .header-search {
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  max-width: 280px !important;
  min-width: 195px !important;
  margin: 0 !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}

body.admin-workspace .header-search:focus-within {
  border-color: #818cf8 !important;
  background: rgba(30, 41, 59, 0.95) !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2) !important;
}

body.admin-workspace .header-search input {
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 7px 0 !important;
}

body.admin-workspace .header-search input::placeholder {
  color: #94a3b8 !important;
}

body.admin-workspace .header-search kbd {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  color: #cbd5e1 !important;
  font-size: 10px !important;
}

body.admin-workspace .user-actions {
  gap: 10px !important;
  margin-right: 0 !important;
}

body.admin-workspace .connection-status {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #e2e8f0 !important;
  background: rgba(30, 41, 59, 0.75) !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

body.admin-workspace .app-header .icon-button {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #e2e8f0 !important;
  width: 34px !important;
  height: 34px !important;
  transition: all 0.2s ease !important;
}

body.admin-workspace .app-header .icon-button:hover {
  background: #4f46e5 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

body.admin-workspace .header-account-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 10px !important;
  padding: 3px 6px 3px 10px !important;
  color: #e2e8f0 !important;
}

body.admin-workspace .header-account-pill i.fa-user-shield {
  color: #a5b4fc !important;
  font-size: 13px !important;
}

body.admin-workspace .header-account-pill small {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #f1f5f9 !important;
  max-width: 140px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  direction: ltr !important;
}

body.admin-workspace .btn-logout-mini {
  width: 28px !important;
  height: 28px !important;
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  color: #fca5a5 !important;
}

body.admin-workspace .btn-logout-mini:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   2. TIER 2: FROSTED GLASS HORIZONTAL NAVIGATION RIBBON (.admin-sidebar)
   ========================================================================== */
body.admin-workspace .admin-sidebar {
  position: sticky !important;
  top: 64px !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(14px) !important;
  border-left: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0 !important;
  z-index: 130 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
  transform: none !important;
  overflow: visible !important;
}

body.admin-workspace .nav-ribbon-inner {
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding: 7px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
}

body.admin-workspace .sidebar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding: 2px 0 !important;
  flex: 1 !important;
}

body.admin-workspace .sidebar-nav .tab-btn {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 15px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.admin-workspace .sidebar-nav .tab-btn > i {
  font-size: 13.5px !important;
  color: #64748b !important;
  width: auto !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

body.admin-workspace .sidebar-nav .tab-btn:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  transform: translateY(-1px) !important;
}

body.admin-workspace .sidebar-nav .tab-btn:hover > i {
  color: #4f46e5 !important;
  transform: scale(1.1) !important;
}

body.admin-workspace .sidebar-nav .tab-btn.active {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
  color: #4338ca !important;
  font-weight: 700 !important;
  border-color: #c7d2fe !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12) !important;
}

body.admin-workspace .sidebar-nav .tab-btn.active > i {
  color: #4f46e5 !important;
}

body.admin-workspace .tab-badge {
  margin-right: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 1px 7px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

body.admin-workspace .tab-btn.active .tab-badge {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}

body.admin-workspace .nav-ribbon-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

body.admin-workspace .page-date {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

/* ==========================================================================
   3. MAIN CONTAINER & CARDS WITH SMOOTH ELEVATION
   ========================================================================== */
body.admin-workspace .main-container {
  margin: 0 auto !important;
  max-width: 1480px !important;
  padding: 20px 24px 40px !important;
  width: 100% !important;
}

/* Quick Actions Bar in Overview */
body.admin-workspace .quick-actions {
  gap: 14px !important;
  margin-bottom: 18px !important;
}

body.admin-workspace .quick-actions button {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 13px !important;
  padding: 14px 18px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.admin-workspace .quick-actions button:hover {
  border-color: #a5b4fc !important;
  box-shadow: 0 10px 22px -4px rgba(79, 70, 229, 0.12) !important;
  transform: translateY(-2px) !important;
}

body.admin-workspace .quick-actions button > i:first-child {
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
  color: #4f46e5 !important;
  font-size: 15px !important;
  transition: transform 0.22s ease !important;
}

body.admin-workspace .quick-actions button:hover > i:first-child {
  transform: scale(1.08) !important;
}

body.admin-workspace .quick-actions span {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

body.admin-workspace .quick-actions small {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #64748b !important;
}

/* Executive KPI Cards */
body.admin-workspace .kpi-dashboard-grid {
  gap: 16px !important;
  margin-bottom: 20px !important;
}

body.admin-workspace .kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 3px solid #6366f1 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

body.admin-workspace .kpi-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08) !important;
}

body.admin-workspace .kpi-card.kpi-card-teachers {
  border-top-color: #0ea5e9 !important;
}
body.admin-workspace .kpi-card.kpi-card-active-lic {
  border-top-color: #10b981 !important;
}
body.admin-workspace .kpi-card.kpi-card-avail-lic {
  border-top-color: #f59e0b !important;
}

body.admin-workspace .kpi-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 10px !important;
}

body.admin-workspace .kpi-value {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

body.admin-workspace .kpi-sub {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  margin-top: 8px !important;
}

body.admin-workspace .kpi-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
  font-size: 15px !important;
}

/* Panels & Table Cards */
body.admin-workspace .panel,
body.admin-workspace .table-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

body.admin-workspace .panel-heading {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%) !important;
  border-radius: 14px 14px 0 0 !important;
}

body.admin-workspace .panel-heading h2,
body.admin-workspace .section-title h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

body.admin-workspace .panel-heading p,
body.admin-workspace .section-title p {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

body.admin-workspace .section-title-secondary {
  display: block !important;
}

/* ==========================================================================
   4. CONTROLS, INPUTS, CHIPS & REFINED DATA TABLES
   ========================================================================== */
body.admin-workspace .search-input,
body.admin-workspace .custom-select,
body.admin-workspace .form-control {
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  min-height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  transition: all 0.2s ease !important;
}

body.admin-workspace .search-input:hover,
body.admin-workspace .custom-select:hover {
  border-color: #94a3b8 !important;
}

body.admin-workspace .search-input:focus,
body.admin-workspace .custom-select:focus,
body.admin-workspace .form-control:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14) !important;
  background: #ffffff !important;
}

body.admin-workspace .search-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

body.admin-workspace .chip {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 5px 13px !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  transition: all 0.2s ease !important;
}

body.admin-workspace .chip:hover {
  background: #eef2ff !important;
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
  transform: translateY(-1px) !important;
}

body.admin-workspace .chip.active,
body.admin-workspace .quick-filter-chips .chip.active {
  font-weight: 600 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25) !important;
}

/* Data Tables & Row Micro-Interactions */
body.admin-workspace .data-table {
  width: 100% !important;
}

body.admin-workspace .data-table th {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  background: #f8fafc !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.admin-workspace .data-table td {
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  max-width: none !important;
  transition: background-color 0.18s ease !important;
}

body.admin-workspace .student-row-anim {
  animation: rowGlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--row-idx, 0) * 18ms);
}

body.admin-workspace .data-table tbody tr:hover td {
  background: #f8faff !important;
}

body.admin-workspace .data-table tbody tr:hover td:first-child {
  box-shadow: inset -3px 0 0 #6366f1 !important;
}

/* Student Avatar & Name Styling */
body.admin-workspace .student-avatar-thumb {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #e2e8f0 !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}

body.admin-workspace .student-avatar-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  color: #64748b !important;
  font-size: 15px !important;
}

body.admin-workspace .data-table tbody tr:hover .student-avatar-thumb {
  transform: scale(1.08) !important;
  border-color: #818cf8 !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2) !important;
}

body.admin-workspace .student-name-row {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1.4 !important;
  transition: color 0.18s ease !important;
}

body.admin-workspace .data-table tbody tr:hover .student-name-row {
  color: #4f46e5 !important;
}

body.admin-workspace .edit-hint-icon {
  font-size: 11px !important;
  color: #6366f1 !important;
  opacity: 0.35 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

body.admin-workspace .data-table tbody tr:hover .edit-hint-icon {
  opacity: 0.9 !important;
  transform: translateX(-2px) !important;
}

/* Score Gem Pill */
body.admin-workspace .score-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: #059669 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
}

/* Soft Refined Semantic Badges */
body.admin-workspace .badge {
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 11px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

body.admin-workspace .live-pulse-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #16a34a !important;
  display: inline-block !important;
  animation: livePulse 2s infinite !important;
}

body.admin-workspace .badge-success {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

body.admin-workspace .badge-inactive {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

body.admin-workspace .badge-danger {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

body.admin-workspace .badge-warning {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

body.admin-workspace .badge-info,
body.admin-workspace .badge-primary {
  background: #eef2ff !important;
  color: #4338ca !important;
  border: 1px solid #c7d2fe !important;
}

body.admin-workspace .badge-grade-2 {
  background: #faf5ff !important;
  color: #7e22ce !important;
  border: 1px solid #e9d5ff !important;
  font-weight: 600 !important;
}

body.admin-workspace .badge-grade-3 {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 600 !important;
}

body.admin-workspace .badge-grade-4 {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
  font-weight: 600 !important;
}

/* Action Buttons & Micro-Interactions */
body.admin-workspace .action-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.admin-workspace .btn {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.admin-workspace .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.24) !important;
}

body.admin-workspace .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
  transform: translateY(-1.5px) !important;
}

body.admin-workspace .btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

body.admin-workspace .btn-secondary:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

body.admin-workspace .act-btn-chart {
  color: #2563eb !important;
  background: #eff6ff !important;
  border-color: #dbeafe !important;
}
body.admin-workspace .act-btn-chart:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25) !important;
}

body.admin-workspace .act-btn-edit {
  color: #4f46e5 !important;
  background: #eef2ff !important;
  border-color: #e0e7ff !important;
}
body.admin-workspace .act-btn-edit:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25) !important;
}

body.admin-workspace .act-btn-del {
  color: #e11d48 !important;
  background: #fff1f2 !important;
  border-color: #ffe4e6 !important;
}
body.admin-workspace .act-btn-del:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25) !important;
}

body.admin-workspace .pagination-info,
body.admin-workspace .page-size-selector,
body.admin-workspace .page-indicator {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #475569 !important;
}

@media (max-width: 900px) {
  body.admin-workspace .header-container {
    padding: 8px 14px !important;
    gap: 10px !important;
  }
  body.admin-workspace .app-header .grade-switcher-bar {
    order: 3 !important;
    width: 100% !important;
    justify-content: space-between !important;
    overflow-x: auto !important;
  }
  body.admin-workspace .header-search {
    flex: 1 !important;
    max-width: none !important;
  }
  body.admin-workspace .nav-ribbon-inner {
    padding: 6px 14px !important;
  }
  body.admin-workspace .page-date {
    display: none !important;
  }
  body.admin-workspace .main-container {
    padding: 14px !important;
  }
}
