/* ============================================================
   TEMPLOYMENTZ — Shared Stylesheet
   Yellow #FFD600 + Sky Blue #0EA5E9
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --y:   #FFD600; --y2: #F5C400; --ydim: rgba(255,214,0,.1);  --ybr: rgba(255,214,0,.25);
  --b:   #0EA5E9; --b2: #0284C7; --bdim: rgba(14,165,233,.1); --bbr: rgba(14,165,233,.25);
  --ink: #0C1220; --ink2:#1A2540;
  --slate:#475569; --muted:#94A3B8; --faint:#F1F5F9; --off:#F8FAFC;
  --white:#FFF; --border:#E2E8F0;
  --green:#10B981; --gbg:#D1FAE5; --gtx:#065F46;
  --red:#EF4444;   --rbg:#FEE2E2; --rtx:#991B1B;
  --amber:#F59E0B; --abg:#FEF3C7; --atx:#92400E;
  --purple:#8B5CF6;--pbg:#EDE9FE; --ptx:#5B21B6;
  --fh: 'Outfit', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --r: 10px; --r2: 16px; --r3: 22px;
}

html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--ink); background: var(--off); -webkit-font-smoothing: antialiased; }
button { cursor: pointer; border: none; transition: all .18s; font-family: var(--fb); }
input, select, textarea { font-family: var(--fb); outline: none; }
a { text-decoration: none; }
*::-webkit-scrollbar { width: 4px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── APP LAYOUT ── */
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  background: var(--ink); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sb-logo { padding: 17px 17px 13px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.sb-mark { width: 32px; height: 32px; background: var(--y); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sb-mark svg { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sb-name { font-family: var(--fh); font-size: 13.5px; font-weight: 800; color: #fff; }
.sb-role { font-size: 9.5px; color: rgba(255,255,255,.3); margin-top: 1px; }
.sb-body { flex: 1; padding: 13px 10px; overflow-y: auto; }
.sb-sec { font-size: 9.5px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.18); padding: 13px 10px 6px; text-transform: uppercase; font-family: var(--fh); }
.si {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  font-family: var(--fh); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.45); cursor: pointer; transition: .14s; margin-bottom: 2px;
}
.si:hover { background: rgba(255,255,255,.055); color: rgba(255,255,255,.85); }
.si.active { background: rgba(255,214,0,.11); border: 1px solid rgba(255,214,0,.18); color: #fff; }
.si.active .si-icon { color: var(--y); }
.si-icon { width: 15px; height: 15px; flex-shrink: 0; color: rgba(255,255,255,.28); }
.si-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.si-badge { margin-left: auto; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 100px; font-family: var(--fh); flex-shrink: 0; }
.si-badge.y { background: var(--y); color: var(--ink); }
.si-badge.b { background: var(--b); color: #fff; }
.si-badge.r { background: var(--red); color: #fff; }
.si-badge.g { background: var(--green); color: #fff; }
.si-badge.p { background: var(--purple); color: #fff; }
.sb-bottom { padding: 13px; border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.sb-user { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.sb-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--y), var(--b));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-size: 11px; font-weight: 800; color: var(--ink);
}
.sb-uname { font-family: var(--fh); font-size: 13px; font-weight: 700; color: #fff; }
.sb-urole { font-size: 10px; color: rgba(255,255,255,.28); margin-top: 1px; }

/* ── TOPBAR ── */
.topbar {
  background: var(--white); border-bottom: 1.5px solid var(--border);
  padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.tb-title { font-family: var(--fh); font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.tb-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.tb-right { display: flex; align-items: center; gap: 9px; }
.tb-search {
  display: flex; align-items: center; gap: 7px;
  background: var(--faint); border: 1.5px solid var(--border);
  padding: 7px 13px; border-radius: 100px; width: 190px; transition: .15s;
}
.tb-search:focus-within { border-color: var(--b); background: var(--white); }
.tb-search svg { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.tb-search input { background: none; border: none; font-size: 12.5px; color: var(--ink); width: 100%; font-family: var(--fb); }
.tb-search input::placeholder { color: var(--muted); }
.tb-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--faint); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s;
}
.tb-icon:hover { border-color: var(--b); background: var(--bdim); }
.tb-icon svg { width: 14px; height: 14px; fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-yellow {
  display: flex; align-items: center; gap: 6px;
  background: var(--y); color: var(--ink); font-family: var(--fh); font-size: 13px; font-weight: 800;
  padding: 9px 17px; border-radius: 100px; cursor: pointer;
}
.btn-yellow:hover { background: var(--y2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,214,0,.4); }
.btn-purple {
  display: flex; align-items: center; gap: 6px;
  background: var(--purple); color: #fff; font-family: var(--fh); font-size: 13px; font-weight: 800;
  padding: 9px 17px; border-radius: 100px; cursor: pointer;
}
.btn-purple:hover { background: #7C3AED; transform: translateY(-1px); }

/* ── MAIN CONTENT ── */
.main-content { background: var(--off); min-height: 100vh; }
.page-content { padding: 22px 24px; }

/* ── CARDS ── */
.card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; margin-bottom: 18px; }
.card-head { padding: 14px 20px; border-bottom: 1.5px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-family: var(--fh); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.card-sub { font-size: 12px; color: var(--muted); }
.card-body { padding: 18px 20px; }

/* ── METRIC CARDS ── */
.metrics-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.metrics-4 { grid-template-columns: repeat(4, 1fr); }
.metrics-3 { grid-template-columns: repeat(3, 1fr); }
.metrics-2 { grid-template-columns: 1fr 1fr; }
.metric-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r2);
  padding: 18px 20px; position: relative; overflow: hidden; transition: .2s; cursor: pointer;
}
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(12,18,32,.07); }
.metric-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--mc-color, var(--y)); }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.metric-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.metric-icon svg { width: 18px; height: 18px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.metric-badge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 100px; font-family: var(--fh); }
.metric-value { font-family: var(--fh); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -1.5px; line-height: 1; margin-bottom: 4px; }
.metric-label { font-size: 11.5px; color: var(--muted); }
.metric-bar { height: 3px; background: var(--border); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.metric-fill { height: 100%; border-radius: 3px; }

/* ── BADGES ── */
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; font-family: var(--fh); display: inline-block; }
.badge-green  { background: var(--gbg); color: var(--gtx); }
.badge-blue   { background: var(--bdim); color: var(--b2); }
.badge-amber  { background: var(--abg); color: var(--atx); }
.badge-red    { background: var(--rbg); color: var(--rtx); }
.badge-purple { background: var(--pbg); color: var(--ptx); }
.badge-yellow { background: var(--ydim); color: var(--atx); }

/* ── LIST ROWS ── */
.list-row {
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; cursor: pointer; transition: .13s;
}
.list-row:hover { background: var(--faint); }
.list-row:last-child { border-bottom: none; }
.row-avatar { width: 36px; height: 36px; border-radius: 50%; font-family: var(--fh); font-size: 12px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.row-icon { width: 35px; height: 35px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.row-name { font-family: var(--fh); font-size: 13px; font-weight: 700; color: var(--ink); }
.row-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.row-right { margin-left: auto; }
.row-amount { font-family: var(--fh); font-size: 14px; font-weight: 800; color: var(--ink); }

/* ── FORM INPUTS ── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--slate); margin-bottom: 5px; letter-spacing: .4px; text-transform: uppercase; font-family: var(--fh); }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--faint); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 10px 13px; font-size: 13.5px; color: var(--ink);
  font-family: var(--fb); transition: .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--b); background: var(--white); box-shadow: 0 0 0 3px var(--bdim);
}
.form-input::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 72px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(12,18,32,.55); z-index: 9000;
  display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--r3); width: 92%; max-width: 460px;
  overflow: hidden; animation: mpop .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes mpop { from{opacity:0;transform:scale(.92)} to{opacity:1;transform:scale(1)} }
.modal-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.modal-title { font-family: var(--fh); font-size: 17px; font-weight: 800; color: var(--ink); }
.modal-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.modal-body { padding: 18px 24px; display: flex; flex-direction: column; gap: 13px; }
.modal-foot { padding: 13px 24px; border-top: 1px solid var(--border); display: flex; gap: 9px; }
.btn-modal-y { flex: 1; background: var(--y); color: var(--ink); padding: 12px; border-radius: 10px; font-family: var(--fh); font-size: 14px; font-weight: 800; cursor: pointer; }
.btn-modal-y:hover { background: var(--y2); box-shadow: 0 6px 18px rgba(255,214,0,.35); }
.btn-modal-b { flex: 1; background: var(--ink); color: #fff; padding: 12px; border-radius: 10px; font-family: var(--fh); font-size: 14px; font-weight: 800; cursor: pointer; }
.btn-modal-b:hover { background: var(--b2); }
.btn-modal-g { flex: 1; background: var(--green); color: #fff; padding: 12px; border-radius: 10px; font-family: var(--fh); font-size: 14px; font-weight: 800; cursor: pointer; }
.btn-modal-g:hover { background: #059669; }
.btn-cancel { background: var(--faint); color: var(--muted); border: 1.5px solid var(--border) !important; padding: 12px 18px; border-radius: 10px; font-family: var(--fh); font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 100px;
  font-size: 13.5px; font-weight: 500; font-family: var(--fh);
  box-shadow: 0 8px 32px rgba(12,18,32,.28);
  transition: transform .38s cubic-bezier(.34,1.56,.64,1); z-index: 9999;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--y); flex-shrink: 0; }

/* ── MAP ── */
.map-area { position: relative; background: linear-gradient(150deg,#E0F2FE,#EFF6FF); overflow: hidden; }
.map-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(14,165,233,.09) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(14,165,233,.09) 1px, transparent 1px);
  background-size: 38px 38px;
}
.map-road { position: absolute; background: rgba(255,255,255,.85); border-radius: 2px; }
.map-road-h { height: 2.5px; }
.map-road-v { width: 2.5px; }
.map-block { position: absolute; background: rgba(14,165,233,.06); border: 1px solid rgba(14,165,233,.1); border-radius: 4px; }
.you-pin { position: absolute; transform: translate(-50%,-50%); z-index: 6; }
.you-dot { width: 13px; height: 13px; background: var(--y); border: 3px solid var(--ink); border-radius: 50%; }
.you-ring { position: absolute; top:50%; left:50%; width: 66px; height: 66px; border-radius: 50%; border: 1.5px dashed rgba(12,18,32,.12); transform: translate(-50%,-50%); }
.you-label { position: absolute; bottom:-22px; left:50%; transform:translateX(-50%); background:var(--ink); color:var(--y); font-size:9px; font-weight:700; padding:2px 7px; border-radius:100px; white-space:nowrap; font-family:var(--fh); }
.cand-pin { position: absolute; transform: translate(-50%,-100%); cursor: pointer; z-index: 8; padding-bottom: 24px; }
.cand-bubble {
  width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--fh); font-size: 11px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,.9); box-shadow: 0 4px 16px rgba(0,0,0,.18);
  position: relative; transition: transform .18s;
}
.cand-pin:hover .cand-bubble { transform: scale(1.14); }
.cand-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: cr 2.5s infinite; }
@keyframes cr { 0%{opacity:.5;transform:scale(1)} 100%{opacity:0;transform:scale(1.7)} }
.cand-km { position:absolute; top:-20px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; font-size:9px; font-weight:600; padding:2px 6px; border-radius:100px; white-space:nowrap; font-family:var(--fh); }
.cand-skill { position:absolute; bottom:4px; left:50%; transform:translateX(-50%); background:#fff; color:var(--ink); font-size:9px; font-weight:600; padding:2px 7px; border-radius:100px; border:1px solid var(--border); white-space:nowrap; font-family:var(--fh); box-shadow:0 2px 5px rgba(0,0,0,.07); }

/* ── WALLET CARD ── */
.wallet-card { background: linear-gradient(135deg,var(--ink),var(--ink2)); border-radius: var(--r2); padding: 22px 24px; color: #fff; margin-bottom: 18px; position: relative; overflow: hidden; }
.wc-glow1 { position:absolute; top:-40px; right:-40px; width:160px; height:160px; background:radial-gradient(circle,rgba(255,214,0,.18),transparent 70%); }
.wc-glow2 { position:absolute; bottom:-40px; left:20px; width:130px; height:130px; background:radial-gradient(circle,rgba(14,165,233,.15),transparent 70%); }
.wc-label { font-size:11px; font-weight:600; color:rgba(255,255,255,.45); letter-spacing:.5px; text-transform:uppercase; font-family:var(--fh); margin-bottom:8px; position:relative; z-index:1; }
.wc-type  { font-size:10.5px; font-weight:700; color:var(--y); background:rgba(255,214,0,.1); padding:3px 10px; border-radius:100px; border:1px solid rgba(255,214,0,.18); font-family:var(--fh); }
.wc-balance { font-family:var(--fh); font-size:36px; font-weight:800; letter-spacing:-2px; color:#fff; line-height:1; position:relative; z-index:1; margin-bottom:16px; }
.wc-balance small { font-size:18px; color:rgba(255,255,255,.45); font-weight:400; margin-right:3px; }
.wc-actions { display:flex; gap:9px; position:relative; z-index:1; }
.btn-wc-y { background:var(--y); color:var(--ink); padding:9px 18px; border-radius:9px; font-family:var(--fh); font-size:13px; font-weight:800; cursor:pointer; }
.btn-wc-y:hover { background:var(--y2); }
.btn-wc-g { background:rgba(255,255,255,.07); color:rgba(255,255,255,.65); border:1px solid rgba(255,255,255,.11) !important; padding:9px 18px; border-radius:9px; font-family:var(--fh); font-size:13px; font-weight:700; cursor:pointer; }
.btn-wc-g:hover { background:rgba(255,255,255,.13); }

/* ── TOGGLE ── */
.toggle { position:relative; width:46px; height:25px; }
.toggle input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; inset:0; background:var(--border); border-radius:100px; cursor:pointer; transition:.22s; }
.toggle-slider::before { content:''; position:absolute; width:19px; height:19px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.22s; box-shadow:0 1px 4px rgba(0,0,0,.14); }
input:checked + .toggle-slider { background:var(--y); }
input:checked + .toggle-slider::before { transform:translateX(21px); }

/* ── UTILITY ── */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.mb-18 { margin-bottom:18px; }
.price-tag { font-family:var(--fh); font-size:13px; font-weight:800; color:var(--ink); background:var(--ydim); border:1.5px solid var(--ybr); padding:3px 9px; border-radius:8px; display:inline-block; }

/* ── RESPONSIVE ── */
@media(max-width:860px) {
  .app { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .metrics-4, .metrics-3 { grid-template-columns:1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns:1fr; }
}
