/* Ahmad WebWorks — Employee Workspace */
.portal-dashboard-heading,.portal-overview-heading,.portal-overview-footer,.portal-detail-heading,.portal-project-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.portal-dashboard-heading{margin:28px 0 22px}
.portal-dashboard-heading h2{font-size:clamp(1.8rem,4vw,2.5rem);margin:.35rem 0}
.portal-eyebrow{font-size:.68rem;letter-spacing:.16em;font-weight:800;color:#9eafff}
.portal-account-pill,.portal-status{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--border);border-radius:99px;background:rgba(255,255,255,.04);font-size:.75rem;text-transform:capitalize}
.portal-account-pill span{width:7px;height:7px;border-radius:50%;background:#48d597;box-shadow:0 0 10px #48d597}
.portal-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.portal-quick-card,.portal-overview-panel,.portal-detail-panel,.portal-welcome-card,.portal-form{background:var(--glass,#101728);border:1px solid var(--border);border-radius:18px;padding:22px;color:var(--text);text-align:left}
.portal-quick-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:190px;cursor:pointer;transition:transform .2s,border-color .2s,background .2s}
.portal-quick-card:hover{transform:translateY(-3px);border-color:rgba(133,145,255,.65);background:rgba(90,105,210,.1)}
.portal-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--grad);font-size:1.3rem}
.portal-card-label{font-size:.65rem;letter-spacing:.14em;color:#aab8ff;font-weight:800}
.portal-quick-card strong{font-size:1.15rem}
.portal-quick-card small,.portal-role-line{color:var(--muted)}
.portal-card-action{margin-top:auto;color:#aab8ff;font-size:.85rem;font-weight:700}
.portal-overview-panel{margin:16px 0}
.portal-overview-heading h3{margin:.3rem 0 1rem}
.portal-overview-panel>h2{font-size:1.6rem;margin:.7rem 0 .2rem}
.portal-overview-footer{border-top:1px solid var(--border);padding-top:14px;margin-top:16px}
.portal-detail-panel,.portal-form{margin:18px 0;scroll-margin-top:100px}
.portal-detail-panel h2,.portal-form h2{margin:.3rem 0 1rem}
.portal-detail-panel>p{line-height:1.7}
.portal-chip-list,.portal-link-list{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}
.portal-chip{padding:7px 11px;border:1px solid var(--border);border-radius:99px;font-size:.78rem;background:rgba(255,255,255,.04)}
.portal-link{color:#aab8ff;font-weight:650;font-size:.86rem;text-decoration:none}
.portal-link:hover{text-decoration:underline}
.portal-project-list{display:grid;gap:12px}
.portal-project-card{padding:16px;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.025)}
.portal-project-card h3{font-size:1rem;margin:0}
.portal-project-card p{font-size:.87rem;color:var(--muted);margin:10px 0}
.portal-project-top .portal-status{font-size:.68rem}
.portal-welcome-card{padding:30px;margin:24px 0;background:linear-gradient(135deg,rgba(83,110,255,.18),rgba(153,103,255,.09))}
.portal-welcome-card h2{font-size:clamp(1.5rem,4vw,2.2rem);margin:.6rem 0}
.portal-welcome-card p{color:var(--muted);margin-bottom:20px}
.portal-form{display:grid;gap:14px}
.portal-form label{display:grid;gap:7px;font-size:.88rem;font-weight:600}
.portal-form input,.portal-form textarea{width:100%;padding:12px 13px;border:1px solid var(--border);border-radius:10px;background:#0b1020;color:#fff;font:inherit}
.portal-form textarea{min-height:105px;resize:vertical}
.portal-detail-heading{margin-bottom:20px}
@media(max-width:650px){.portal-quick-grid{grid-template-columns:1fr}.portal-dashboard-heading,.portal-overview-footer{align-items:flex-start;flex-direction:column}.portal-quick-card{min-height:165px}.portal-overview-panel,.portal-detail-panel,.portal-form{padding:17px}.portal-detail-heading{align-items:flex-start}}


.executive-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0 22px}
.executive-heading h2{font-size:clamp(1.7rem,4vw,2.35rem);margin:.35rem 0}
.executive-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:start}
.executive-nav{position:sticky;top:18px;display:grid;gap:7px;padding:12px;border:1px solid var(--border);border-radius:18px;background:rgba(11,16,32,.78)}
.executive-nav .tab{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:13px 12px;border-radius:11px;border:1px solid transparent;background:transparent;color:var(--muted);font:inherit;cursor:pointer}
.executive-nav .tab.active{color:#fff;background:linear-gradient(100deg,rgba(94,112,255,.24),rgba(150,105,255,.15));border-color:rgba(142,139,255,.3)}
.executive-pages{min-width:0}
.executive-page{margin:0 0 18px}
.executive-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.executive-kpi{padding:18px;border:1px solid var(--border);border-radius:15px;background:linear-gradient(145deg,rgba(25,34,60,.88),rgba(14,19,35,.9));display:grid;gap:7px}
.executive-kpi small{color:#aeb8d1;font-size:.75rem}
.executive-kpi strong{font-size:2rem;line-height:1.1;color:#fff}
.executive-kpi span{font-size:.73rem;color:var(--muted)}
.executive-overview-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}
.executive-quick-actions{display:grid;gap:10px}
.executive-section-title{margin:26px 0 12px}
.executive-section-title h3{margin:.35rem 0}
.executive-form{margin:18px 0 24px}
.executive-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.executive-form select,.executive-form input,.executive-form textarea,.portal-project-card select,.portal-project-card textarea{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:#0b1020;color:#fff;font:inherit}
.executive-task-meta{display:flex;flex-wrap:wrap;gap:9px 18px;color:var(--muted);font-size:.78rem;margin:12px 0}
.priority-critical{color:#ff8d9b}.priority-high{color:#ffca75}.priority-normal{color:#aab8ff}.priority-low{color:#86dcb6}
.executive-progress{height:10px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden;margin:12px 0}
.executive-progress span{display:block;height:100%;background:linear-gradient(90deg,#5b79ff,#a16cff);border-radius:99px}
#employeeWorkPanel{scroll-margin-top:95px}
@media(max-width:850px){.executive-layout{grid-template-columns:1fr}.executive-nav{position:static;display:flex;overflow-x:auto;gap:6px}.executive-nav .tab{width:auto;white-space:nowrap;flex:0 0 auto}.executive-nav .tab span{display:inline}.executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.executive-heading{align-items:flex-start;flex-direction:column}.executive-overview-grid{grid-template-columns:1fr}.executive-form-row{grid-template-columns:1fr}.executive-nav{padding:8px}.executive-nav .tab{padding:11px}.executive-nav .tab span{font-size:.78rem}}


/* EXECUTIVE PORTAL — refined midnight / champagne visual system */
:root{
  --portal-ink:#080d18;
  --portal-panel:#101827;
  --portal-panel-raised:#141f31;
  --portal-line:rgba(190,171,125,.18);
  --portal-gold:#d7bd82;
  --portal-gold-soft:#f0dfb5;
  --portal-muted:#9aa8bb;
}
body{background:radial-gradient(ellipse at 50% -15%,rgba(60,83,117,.22),transparent 46%),linear-gradient(180deg,#080d18 0%,#0a1020 58%,#080d18 100%);color:#edf1f7}
.portal{width:min(1240px,94%);margin:112px auto 76px}
#workspace{animation:portalFadeIn .45s ease both}
@keyframes portalFadeIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
#workspace>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px;margin-bottom:26px;border:1px solid var(--portal-line);border-radius:20px;background:linear-gradient(110deg,rgba(20,31,49,.96),rgba(12,20,34,.92));box-shadow:0 18px 55px rgba(0,0,0,.2)}
#workspace>div:first-child h1{font-size:clamp(1.6rem,3vw,2.15rem);letter-spacing:-.04em;margin:0}
#roleText{color:var(--portal-muted);font-size:.9rem;margin:.35rem 0 0}
#logout{border-color:rgba(215,189,130,.28);color:var(--portal-gold-soft);background:rgba(215,189,130,.07)}
.executive-heading{margin:34px 0 24px;padding:0 2px}
.executive-heading h2{font-size:clamp(1.9rem,4vw,2.65rem);letter-spacing:-.045em;font-weight:750;color:#f5f3ed}
.executive-heading .muted{font-size:.94rem;color:var(--portal-muted)}
.portal-eyebrow{color:var(--portal-gold);letter-spacing:.19em;font-size:.65rem}
.executive-layout{grid-template-columns:228px minmax(0,1fr);gap:20px}
.executive-nav{top:22px;padding:12px;border-radius:18px;border:1px solid var(--portal-line);background:linear-gradient(180deg,rgba(17,26,42,.97),rgba(11,18,31,.97));box-shadow:0 16px 45px rgba(0,0,0,.2)}
.executive-nav .tab{min-height:47px;padding:12px 14px;color:#aab5c6;border-radius:11px;transition:background .2s,border-color .2s,color .2s,transform .2s}
.executive-nav .tab:hover{color:#f3ead5;background:rgba(215,189,130,.07);transform:translateX(2px)}
.executive-nav .tab.active{color:#f6e9c9;border-color:rgba(215,189,130,.25);background:linear-gradient(100deg,rgba(184,151,91,.18),rgba(75,91,119,.12));box-shadow:inset 3px 0 0 var(--portal-gold)}
.executive-page,.portal-overview-panel,.portal-detail-panel,.portal-form{border:1px solid var(--portal-line);border-radius:19px;background:linear-gradient(145deg,rgba(18,28,45,.98),rgba(12,20,34,.98));box-shadow:0 16px 48px rgba(0,0,0,.17)}
.executive-page{padding:clamp(18px,3vw,28px)}
.executive-page h2,.executive-page h3{color:#f0f2f6;letter-spacing:-.025em}
.executive-kpis{gap:13px}
.executive-kpi{position:relative;overflow:hidden;min-height:132px;padding:19px;border:1px solid rgba(190,171,125,.16);border-radius:16px;background:linear-gradient(145deg,rgba(27,39,58,.96),rgba(15,24,39,.98));box-shadow:0 10px 26px rgba(0,0,0,.14)}
.executive-kpi:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--portal-gold),transparent);opacity:.7}
.executive-kpi small{color:#b4bdca;font-weight:650;letter-spacing:.03em}
.executive-kpi strong{font-size:2.15rem;letter-spacing:-.05em;color:#f4e7c8}
.executive-kpi span{color:#91a0b4}
.executive-overview-grid{gap:15px}
.portal-overview-panel{padding:21px;background:linear-gradient(145deg,rgba(21,32,50,.94),rgba(13,21,35,.96))}
.portal-overview-panel h3{color:#f0f2f6}
.executive-quick-actions .act{justify-content:flex-start;text-align:left;padding:12px 14px;border-radius:11px;border-color:rgba(190,171,125,.15);background:rgba(255,255,255,.025);color:#dce3ec;transition:.2s}
.executive-quick-actions .act:hover{border-color:rgba(215,189,130,.4);background:rgba(215,189,130,.07);transform:translateY(-1px)}
.executive-quick-actions .act.primary,.btn.btn-primary,.act.primary{background:linear-gradient(110deg,#b89b65,#e0c990);border:1px solid rgba(245,224,180,.5);color:#171b23;font-weight:800;box-shadow:0 7px 22px rgba(176,143,82,.17)}
.executive-quick-actions .act.primary:hover,.btn.btn-primary:hover,.act.primary:hover{filter:brightness(1.07);transform:translateY(-1px)}
.tab,.act{border-color:rgba(190,171,125,.17);background:#131e30;color:#dce3ec}
.executive-form{padding:23px}
.executive-form h3{margin:0 0 5px}
.executive-form label,.portal-form label{color:#cbd3df;font-size:.84rem;font-weight:650}
.executive-form input,.executive-form textarea,.executive-form select,.portal-form input,.portal-form textarea,.portal-form select,.portal-project-card select,.portal-project-card textarea{border:1px solid rgba(166,181,202,.18);border-radius:11px;background:#0a1220;color:#edf1f7;outline:none;transition:border-color .2s,box-shadow .2s}
.executive-form input:focus,.executive-form textarea:focus,.executive-form select:focus,.portal-form input:focus,.portal-form textarea:focus{border-color:rgba(215,189,130,.65);box-shadow:0 0 0 3px rgba(215,189,130,.09)}
.executive-form input::placeholder,.executive-form textarea::placeholder{color:#718096}
.portal-project-card{border:1px solid rgba(190,171,125,.14);border-radius:14px;background:linear-gradient(135deg,rgba(24,36,55,.86),rgba(14,23,38,.9));padding:18px}
.portal-project-card h3{color:#eef1f5}
.portal-project-card p,.muted{color:var(--portal-muted)}
.portal-status,.portal-account-pill{border-color:rgba(215,189,130,.2);background:rgba(215,189,130,.055);color:#e5d5b0}
.portal-account-pill span{background:#78c9a6;box-shadow:0 0 10px rgba(120,201,166,.5)}
.executive-progress{background:rgba(255,255,255,.08)}
.executive-progress span{background:linear-gradient(90deg,#9f8655,#e1c98f)}
#admin .stats .stat{border-color:var(--portal-line);border-radius:14px;background:#111c2d;color:#b9c5d5}
#admin .stats .stat b{color:#f0dfb5}
#admin .tablewrap{border:1px solid rgba(190,171,125,.13);border-radius:13px}
#admin table th{color:#e7d6b2;background:rgba(215,189,130,.055)}
#admin table td,#admin table th{border-bottom-color:rgba(190,171,125,.12)}
#login.panel,#inviteSetup.panel{border-color:var(--portal-line);background:linear-gradient(145deg,rgba(18,28,45,.98),rgba(10,17,30,.98));box-shadow:0 24px 70px rgba(0,0,0,.28)}
.fields input,.fields textarea{border-color:rgba(166,181,202,.18);background:#0a1220}
.forgot-link,.portal-link{color:#dfc58e}
.msg{color:#d8c28f}
@media(max-width:850px){.executive-layout{grid-template-columns:1fr}.executive-nav{top:auto}.executive-nav .tab:hover{transform:none}}
@media(max-width:650px){.portal{width:min(100% - 26px,1240px);margin:96px auto 48px}#workspace>div:first-child{padding:18px;align-items:flex-start;flex-direction:column}.executive-heading{margin:25px 0 18px}.executive-page{padding:17px}.executive-kpis{gap:9px}.executive-kpi{padding:14px;min-height:115px}.executive-kpi strong{font-size:1.8rem}.executive-nav{border-radius:14px}.executive-nav .tab{min-height:43px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){#workspace{animation:none}.executive-nav .tab,.executive-quick-actions .act{transition:none}}
