/* shell.css — base layout, header, branding */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { background: #fafafa; color: #1a1a1a; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.qp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  position: sticky; top: 0; z-index: 100;
}
.qp-header__left { display: flex; align-items: center; gap: 12px; }
.qp-logo { width: 32px; height: 32px; border-radius: 6px; }
.qp-brand { font-size: 16px; font-weight: 600; color: #1a1a1a; letter-spacing: -0.2px; }

.qp-pill {
  border: 1px solid #d1d1d1; background: #fff; color: #1a1a1a;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.qp-pill:hover { background: #f5f5f5; border-color: #999; }

.qp-main { min-height: calc(100vh - 64px); padding: 24px 20px 40px; max-width: 720px; margin: 0 auto; }

.qp-loading { display: flex; align-items: center; justify-content: center; padding: 80px 0; }
.qp-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e0e0e0; border-top-color: #1a1a1a;
  border-radius: 50%; animation: qpspin 0.8s linear infinite;
}
@keyframes qpspin { to { transform: rotate(360deg); } }

.qp-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: #1a1a1a; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.2s;
}
.qp-toast.show { opacity: 1; }
.qp-toast--err { background: #c53030; }
.qp-toast--ok { background: #2f855a; }

[dir="rtl"] { direction: rtl; }
[dir="rtl"] .qp-header { flex-direction: row-reverse; }


/* Worker Dashboard */
.qp-worker-dash{flex-direction:column;overflow:hidden}
.wd-header{background:linear-gradient(135deg,#1a1a2e,#16213e);padding:16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.wd-header__info{display:flex;align-items:center;gap:12px}
.wd-avatar{font-size:36px;width:52px;height:52px;background:rgba(255,255,255,0.1);border-radius:50%;display:flex;align-items:center;justify-content:center}
.wd-name{font-size:16px;font-weight:700;color:#fff}
.wd-skill{font-size:11px;color:#2b7de9;margin-top:2px}
.wd-loc{font-size:10px;color:rgba(255,255,255,0.4);margin-top:2px}
.wd-stars{font-size:16px;color:#f59e0b;letter-spacing:2px}
.wd-tabs{display:flex;overflow-x:auto;background:#111;flex-shrink:0;border-bottom:1px solid rgba(255,255,255,0.08)}
.wd-tabs::-webkit-scrollbar{display:none}
.wd-tab{padding:10px 14px;font-size:11px;color:rgba(255,255,255,0.5);cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;font-weight:500}
.wd-tab.active{color:#2b7de9;border-bottom-color:#2b7de9}
.wd-content{flex:1;overflow-y:auto;padding:16px;background:#0a0a0a}
.wd-section-title{font-size:11px;font-weight:700;color:rgba(255,255,255,0.4);text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.wd-job-card{background:#1a1a2e;border-radius:12px;padding:14px;margin-bottom:10px;border:1px solid rgba(255,255,255,0.06)}
.wd-job__title{font-size:14px;font-weight:600;color:#fff;margin-bottom:4px}
.wd-job__detail{font-size:11px;color:rgba(255,255,255,0.5);margin-bottom:8px}
.wd-job__tags{display:flex;gap:6px;margin-bottom:10px}
.wd-tag{font-size:10px;padding:3px 8px;border-radius:10px;background:rgba(43,125,233,0.15);color:#2b7de9}
.wd-job__btn{width:100%;padding:9px;background:#2b7de9;color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}
.wd-profile-card{background:#1a1a2e;border-radius:12px;padding:14px;border:1px solid rgba(255,255,255,0.06)}
.wd-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(255,255,255,0.05)}
.wd-row:last-child{border-bottom:none}
.wd-lbl{font-size:11px;color:rgba(255,255,255,0.4);flex-shrink:0;width:90px}
.wd-val{font-size:13px;color:#fff;text-align:right}
.wd-sel{background:#0a0a0a;color:#fff;border:none;font-size:12px;outline:none}
.wd-inp{background:#0a0a0a;color:#fff;border:none;font-size:12px;outline:none;text-align:right;width:160px}
.wd-sep{font-size:10px;color:rgba(255,255,255,0.3);text-align:center;padding:6px 0;font-weight:600}
.wd-epfo-card{background:#1a1a2e;border-radius:12px;padding:20px;text-align:center;border:1px solid rgba(255,255,255,0.06)}
.wd-epfo-icon{font-size:40px;margin-bottom:8px}
.wd-epfo-label{font-size:12px;color:rgba(255,255,255,0.5);margin-bottom:12px}
.wd-btn-sm{margin-top:12px;padding:8px 16px;background:#059669;color:#fff;border:none;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;width:100%}
.wd-link-list{display:flex;flex-direction:column;gap:8px}
.wd-link{display:block;background:#1a1a2e;border-radius:10px;padding:12px 14px;color:#2b7de9;text-decoration:none;font-size:13px;font-weight:500;border:1px solid rgba(43,125,233,0.2)}
.wd-wages-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:4px}
.wd-wage-box{background:#1a1a2e;border-radius:10px;padding:12px 8px;text-align:center}
.wd-wage-val{font-size:18px;font-weight:700;color:#22c55e}
.wd-wage-lbl{font-size:9px;color:rgba(255,255,255,0.4);margin-top:2px}
.wd-wage-table{background:#1a1a2e;border-radius:10px;overflow:hidden}
.wd-wage-row{display:flex;justify-content:space-between;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,0.05);font-size:12px;color:rgba(255,255,255,0.7)}
.wd-wage-row:last-child{border-bottom:none}
.wd-scheme-card{background:#1a1a2e;border-radius:12px;padding:14px;margin-bottom:10px;display:flex;gap:12px;align-items:flex-start;border:1px solid rgba(255,255,255,0.06)}
.wd-scheme-icon{font-size:28px;flex-shrink:0}
.wd-scheme-name{font-size:13px;font-weight:600;color:#fff;margin-bottom:3px}
.wd-scheme-desc{font-size:11px;color:rgba(255,255,255,0.5);line-height:1.4;margin-bottom:6px}
.wd-scheme-link{font-size:11px;color:#2b7de9;text-decoration:none;font-weight:600}
.wd-doc-card{background:#1a1a2e;border-radius:12px;padding:14px;margin-bottom:10px;display:flex;gap:12px;align-items:center;border:1px solid rgba(255,255,255,0.06)}
.wd-doc-icon{font-size:28px;flex-shrink:0}
.wd-doc-name{font-size:13px;font-weight:600;color:#fff}
.wd-doc-val{font-size:11px;color:rgba(255,255,255,0.4);margin-top:2px}
.wd-doc-status{margin-left:auto;font-size:11px;font-weight:600;white-space:nowrap;text-decoration:none}
.wd-doc-status.ok{color:#22c55e}
.wd-doc-status.pending{color:#f59e0b}
.wd-chip{transition:all 0.15s}

/* Responsive breakpoints */
@media(min-width:768px){
  .qp-main{max-width:740px;padding:28px 32px 48px}
  .qp-header{padding:12px 32px}
}
@media(min-width:1024px){
  .qp-main{max-width:900px;padding:32px 40px 56px}
  .qp-header{padding:12px 40px}
}
@media(min-width:1280px){
  .qp-main{max-width:1040px;padding:36px 56px 64px}
  .qp-header{padding:12px 56px}
}
