@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f8fd;color:#101828;font-family:'Cairo',Tahoma,Arial,sans-serif;font-size:15px}a{text-decoration:none;color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:290px;background:linear-gradient(180deg,#061d35,#082b4a 58%,#06192d);color:#fff;padding:22px 14px;box-shadow:14px 0 35px rgba(13,37,76,.16);z-index:10;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.1);direction:ltr}.robot{font-size:48px;background:#fff;border-radius:18px;padding:4px}.brand h2{margin:0;font-size:27px;line-height:.92;font-weight:800;letter-spacing:.5px}.brand h2 span{color:#4ea1ff}.brand p{margin:8px 0 0;color:#d7e9ff;font-size:15px}.nav{display:flex;flex-direction:column;gap:8px;margin-top:24px}.nav a{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:12px;color:#eaf4ff;font-weight:700;direction:ltr}.nav a:hover,.nav a.active{background:linear-gradient(135deg,#2870ff,#1558f0);box-shadow:0 10px 20px rgba(21,88,240,.28)}.profile-card{margin-top:auto;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:14px;display:flex;align-items:center;gap:12px;direction:ltr}.avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#ffd76f;color:#09203a;font-weight:800}.profile-card small{display:block;color:#cfe1f8}.logout{margin-top:12px;padding:13px 16px;border-radius:12px;color:#ff766c;font-weight:800;direction:ltr}.main-content{margin-left:290px;width:calc(100% - 290px);padding:0 32px 34px}.topbar{height:78px;background:#fff;border-bottom:1px solid #e8eef8;margin:0 -32px 24px;padding:0 32px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:5;box-shadow:0 4px 18px rgba(18,38,63,.04)}.quick-search{width:min(460px,45vw);height:44px;background:#f4f7fb;border:1px solid #dbe5f5;border-radius:16px;display:flex;align-items:center;gap:10px;padding:0 14px;direction:ltr}.quick-search input{border:0;background:transparent;outline:0;width:100%;font-size:14px}.top-actions{display:flex;align-items:center;gap:16px;direction:ltr}.notif{position:relative;font-size:23px}.notif em{position:absolute;top:-9px;right:-9px;background:#ef4444;color:#fff;border-radius:50%;font-size:11px;min-width:18px;height:18px;display:grid;place-items:center;font-style:normal}.date-pill{background:#f8fafc;border:1px solid #e4eaf5;border-radius:14px;padding:10px 14px;color:#42526e}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.welcome h1{margin:0;font-size:28px}.welcome p{margin:6px 0;color:#526079}.primary-btn,button{border:0;background:linear-gradient(135deg,#2870ff,#1558f0);color:#fff;border-radius:10px;padding:11px 18px;font-family:inherit;font-weight:800;cursor:pointer;box-shadow:0 10px 18px rgba(21,88,240,.18)}.alert{padding:13px 16px;border-radius:14px;margin:12px 0;font-weight:700}.alert.success{background:#dcfce7;color:#166534}.alert.error{background:#fee2e2;color:#991b1b}.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:18px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid #e4eaf5;border-radius:16px;padding:18px;display:flex;align-items:center;gap:16px;box-shadow:0 8px 22px rgba(15,23,42,.05)}.stat-card h3{margin:0;font-size:31px}.stat-card p{margin:0;font-weight:800}.stat-card small{color:#16a34a}.stat-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;font-size:32px}.blue{background:linear-gradient(135deg,#fff,#eef7ff);border-color:#bfdbfe}.green{background:linear-gradient(135deg,#fff,#f0fdf4);border-color:#bbf7d0}.purple{background:linear-gradient(135deg,#fff,#f5f3ff);border-color:#ddd6fe}.orange{background:linear-gradient(135deg,#fff,#fff7ed);border-color:#fed7aa}.red{background:linear-gradient(135deg,#fff,#fff1f2);border-color:#fecdd3}.blue .stat-icon{background:#dbeafe}.green .stat-icon{background:#dcfce7}.purple .stat-icon{background:#ede9fe}.orange .stat-icon{background:#ffedd5}.red .stat-icon{background:#ffe4e6}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.panel{background:#fff;border:1px solid #e6edf7;border-radius:18px;box-shadow:0 8px 25px rgba(15,23,42,.06);padding:18px;margin-bottom:22px}.panel.wide{grid-row:span 1}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel-head h3,.panel h3{margin:0;font-size:18px}.panel-head a{background:#f3f7ff;color:#1558f0;padding:8px 12px;border-radius:9px;font-weight:800}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:right}th{background:#f8fafc;color:#334155;font-size:13px;text-transform:uppercase}th,td{padding:12px 14px;border-bottom:1px solid #edf2f7}tr:hover td{background:#fbfdff}.donut{--p:0;width:160px;height:160px;border-radius:50%;margin:12px auto;background:conic-gradient(#22c55e calc(var(--p)*1%),#f87171 0,#f87171 100%);display:grid;place-items:center}.donut span{width:105px;height:105px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;font-size:28px;font-weight:800}.donut small{display:block;font-size:14px;font-weight:600;color:#526079}.legend{list-style:none;padding:0;margin:10px 0}.legend li{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:8px 0}.legend b.present,.legend b.absent{width:10px;height:10px;border-radius:3px;display:inline-block}.present{background:#22c55e}.absent{background:#ef4444}.activity{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #edf2f7;padding:10px 0}.activity span{width:38px;height:38px;border-radius:10px;background:#eef4ff;display:grid;place-items:center}.activity p{margin:0}.activity small{display:block;color:#64748b}.task-number{text-align:center;margin:12px}.task-number b{font-size:38px}.task-number span{display:block;color:#64748b}.progress-row{display:grid;grid-template-columns:90px 1fr 30px;gap:10px;align-items:center;margin:12px 0}meter{width:100%;height:10px}.top-list>div{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f7}.top-list>div>span{width:32px;height:32px;background:#f1f5f9;border-radius:50%;display:grid;place-items:center;font-weight:800}.top-list p{margin:0;flex:1}.top-list small{display:block;color:#64748b}.forms-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:start}.form-panel form{display:grid;gap:11px;margin-top:14px}input,select,textarea{width:100%;border:1px solid #d7e0ee;border-radius:10px;background:#fff;padding:11px 12px;font-family:inherit;outline-color:#2563eb}textarea{min-height:88px;resize:vertical}.input-grid,.rating-grid,.upload-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rating-grid label,.upload-row label{font-weight:800;color:#334155}.rating-grid input,.upload-row input{margin-top:6px}.filters{display:flex;gap:9px;align-items:center}.filters input{width:160px}.status{display:inline-block;padding:5px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:800;font-size:12px}.status.present{background:#dcfce7;color:#166534}.status.absent{background:#fee2e2;color:#991b1b}.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.media-card{border:1px solid #e8eef8;border-radius:16px;padding:12px;background:#fbfdff}.media-preview{height:170px;border-radius:13px;overflow:hidden;background:#eef2f7;display:grid;place-items:center}.media-preview img,.media-preview video{width:100%;height:100%;object-fit:cover}.media-card p{color:#64748b;margin:6px 0 0}.inline-form{display:flex;gap:6px}.muted{color:#64748b}footer{text-align:center;color:#64748b;padding:18px}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.forms-grid{grid-template-columns:1fr}.media-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{position:static;width:100%;border-radius:0}.app-shell{display:block}.main-content{margin-left:0;width:100%;padding:0 14px 24px}.topbar{margin:0 -14px 20px;padding:0 14px}.quick-search{width:100%}.top-actions{display:none}.welcome{display:block}.stats-grid,.input-grid,.rating-grid,.upload-row,.media-grid{grid-template-columns:1fr}.filters{display:grid;width:100%}}
