
/* Bordro360 UI - single file, no build required */
:root{
  --b360-bg:#060a15;
  --b360-ink:#eaf0ff;
  --b360-muted: rgba(234,240,255,.72);
  --b360-card: rgba(255,255,255,.06);
  --b360-card2: rgba(255,255,255,.10);
  --b360-stroke: rgba(255,255,255,.10);
  --b360-primary:#4f46e5;
  --b360-primary2:#6d28d9;
  --b360-green:#059669;
  --b360-shadow: 0 22px 70px rgba(0,0,0,.55);
  --b360-radius: 22px;
  --b360-radius2: 28px;
  --b360-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:var(--b360-font);color:var(--b360-ink);background:var(--b360-bg)}
a{color:inherit}

/* ---------- Guest/auth screens ---------- */
.b360-auth{min-height:100vh;display:grid;grid-template-columns: 1.05fr .95fr}
.b360-auth-left{
  position:relative;overflow:hidden;
  background:
    radial-gradient(1200px 800px at 20% 20%, rgba(79,70,229,.45), transparent 60%),
    radial-gradient(900px 700px at 80% 90%, rgba(109,40,217,.28), transparent 55%),
    linear-gradient(180deg, #0b1230, #071024);
  border-right:1px solid rgba(255,255,255,.06);
}
.b360-auth-left-inner{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:56px 48px;gap:18px}
.b360-mark{width:94px;height:94px;border-radius:26px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);box-shadow: inset 0 0 0 1px rgba(255,255,255,.04)}
.b360-mark-icon{width:46px;height:46px;color:rgba(255,255,255,.92)}
.b360-mark-icon svg{width:100%;height:100%}
.b360-auth-title{font-size:44px;letter-spacing:-.02em;margin:0}
.b360-auth-sub{max-width:520px;margin:0;color:var(--b360-muted);line-height:1.55;font-size:16px}
.b360-badges{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;justify-content:center}
.b360-badge-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.82);font-size:13px}
.b360-badge-pill i{width:10px;height:10px;border-radius:50%;background:#10b981;display:inline-block;box-shadow:0 0 0 4px rgba(16,185,129,.12)}
.b360-auth-foot{margin-top:26px;color:rgba(255,255,255,.35);font-size:12px}

.b360-auth-right{
  background:
    radial-gradient(900px 700px at 30% 20%, rgba(79,70,229,.18), transparent 55%),
    radial-gradient(800px 700px at 70% 70%, rgba(109,40,217,.14), transparent 55%),
    linear-gradient(180deg, #050a16, #040813);
  display:flex;align-items:center;justify-content:center;padding:48px;
}
.b360-card{
  width:min(520px, 100%);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:30px;
  box-shadow: var(--b360-shadow);
  padding:38px 34px;
}
.b360-card-title{margin:0 0 8px 0;font-size:28px;letter-spacing:-.01em;text-align:center}
.b360-card-sub{margin:0 0 18px 0;color:var(--b360-muted);text-align:center}

.b360-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:8px;margin:16px 0 22px 0}
.b360-tab{cursor:pointer;border:0;border-radius:12px;padding:12px 14px;background:transparent;color:rgba(255,255,255,.55);font-weight:700}
.b360-tab.is-active{background:rgba(255,255,255,.14);color:#fff}
.b360-pane{display:none}
.b360-pane.is-active{display:block}

.b360-form{display:flex;flex-direction:column;gap:10px}
.b360-label{font-size:12px;color:rgba(255,255,255,.65);font-weight:800;letter-spacing:.03em;text-transform:uppercase;margin-top:4px}
.b360-input{display:flex;align-items:center;gap:10px;padding:12px 12px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}
.b360-inico{width:20px;height:20px;color:rgba(255,255,255,.55)}
.b360-inico svg{width:20px;height:20px}
.b360-input input{flex:1;border:0;outline:0;background:transparent;color:#fff;font-size:14px}
.b360-input input::placeholder{color:rgba(255,255,255,.40)}
.b360-alert{background:rgba(239,68,68,.15);border:1px solid rgba(239,68,68,.35);color:#fecaca;padding:10px 12px;border-radius:14px;font-size:13px}
.b360-btn{margin-top:10px;border:0;border-radius:14px;padding:14px 16px;background:linear-gradient(90deg, var(--b360-primary), var(--b360-primary2));color:#fff;font-weight:900;font-size:15px;cursor:pointer;display:flex;justify-content:center;gap:10px;align-items:center}
.b360-btn:hover{filter:brightness(1.05)}
.b360-btn-green{background:linear-gradient(90deg, #059669, #0ea5a4)}
.b360-links{margin-top:16px;text-align:center;color:rgba(255,255,255,.55);font-size:13px}
.b360-links a{color:rgba(255,255,255,.65);text-decoration:none}
.b360-links a:hover{text-decoration:underline}
.b360-links-split{display:flex;justify-content:space-between}

@media (max-width: 980px){
  .b360-auth{grid-template-columns:1fr}
  .b360-auth-left{display:none}
  .b360-auth-right{padding:28px}
}

/* ---------- App shell (admin panel) ---------- */
.b360-shell{min-height:100vh;display:grid;grid-template-columns: 280px 1fr;background:#0b1020}
.b360-aside{
  background:linear-gradient(180deg, #0b1226, #070d1a);
  border-right:1px solid rgba(255,255,255,.06);
  padding:18px 16px;
  display:flex;flex-direction:column;gap:14px;
}
.b360-brand{display:flex;gap:12px;align-items:center;padding:8px 10px}
.b360-badge{width:34px;height:34px;border-radius:12px;background:linear-gradient(180deg, #4f46e5, #6d28d9);display:grid;place-items:center;font-weight:900}
.b360-brandname{font-weight:900;font-size:14px;line-height:1.1}
.b360-brandsub{font-size:12px;color:rgba(255,255,255,.45)}
.b360-navtitle{color:rgba(255,255,255,.35);font-size:11px;font-weight:900;letter-spacing:.06em;padding:2px 10px}
.b360-nav{display:flex;flex-direction:column;gap:4px}
.b360-navitem{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:12px;
  color:rgba(255,255,255,.72);text-decoration:none;
}
.b360-navitem:hover{background:rgba(255,255,255,.06)}
.b360-navitem.is-active{background:rgba(79,70,229,.22);border:1px solid rgba(79,70,229,.35);color:#fff}
.b360-ico{width:18px;height:18px;color:rgba(255,255,255,.70)}
.b360-ico svg{width:18px;height:18px}

.b360-license{
  margin-top:auto;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:12px;
}
.b360-license-row{display:flex;justify-content:space-between;align-items:center}
.b360-license-title{font-weight:900;font-size:12px;color:rgba(255,255,255,.75)}
.b360-license-pill{font-size:12px;color:#fff;background:rgba(79,70,229,.25);border:1px solid rgba(79,70,229,.35);padding:6px 10px;border-radius:999px;font-weight:900}
.b360-progress{height:7px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden;margin:10px 0 8px}
.b360-progress span{display:block;height:100%;background:linear-gradient(90deg,#10b981,#4f46e5)}
.b360-license-foot{font-size:12px;color:rgba(255,255,255,.55)}

.b360-main{display:flex;flex-direction:column;min-width:0;background:#f2f5fb;color:#0b1226}
.b360-topbar{
  height:62px;display:flex;align-items:center;justify-content:space-between;
  background:#fff;border-bottom:1px solid rgba(15,23,42,.08);
  padding:0 18px;gap:12px;
}
.b360-search{flex:1;max-width:520px}
.b360-search input{
  width:100%;border:1px solid rgba(15,23,42,.10);background:#f8fafc;
  padding:10px 14px;border-radius:999px;outline:0;
}
.b360-top-right{display:flex;align-items:center;gap:12px}
.b360-iconbtn{
  width:40px;height:40px;border-radius:999px;border:1px solid rgba(15,23,42,.10);
  background:#fff;display:grid;place-items:center;cursor:pointer;
}
.b360-iconbtn svg{width:18px;height:18px;color:#0f172a}
.b360-user{display:flex;align-items:center;gap:12px}
.b360-user-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.b360-user-name{font-weight:900;font-size:13px;color:#0f172a}
.b360-user-tenant{font-size:12px;color:rgba(15,23,42,.55)}
.b360-avatar{width:40px;height:40px;border-radius:999px;background:linear-gradient(180deg,#4f46e5,#6d28d9);display:grid;place-items:center;font-weight:900;color:#fff}

.b360-content{padding:22px 22px 28px;min-height:calc(100vh - 62px - 46px)}
.b360-footer{height:46px;display:flex;align-items:center;justify-content:center;color:rgba(15,23,42,.45);font-size:12px}

/* Page components */
.b360-pagehead{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.b360-pagehead h1{margin:0;font-size:28px;letter-spacing:-.02em}
.b360-muted{margin:6px 0 0;color:rgba(15,23,42,.65)}
.b360-pillbtn{
  display:inline-flex;gap:10px;align-items:center;text-decoration:none;
  padding:10px 14px;border-radius:999px;background:linear-gradient(180deg,#6d28d9,#4f46e5);
  color:#fff;font-weight:900;box-shadow:0 12px 30px rgba(79,70,229,.20);
}
.b360-pillbtn svg{width:18px;height:18px;color:#fff}
.b360-cards{display:grid;grid-template-columns: 1fr 1fr .8fr;gap:16px;margin-bottom:16px}
.b360-stat{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:16px;position:relative}
.b360-stat-ico{width:38px;height:38px;border-radius:12px;background:#eef2ff;display:grid;place-items:center;color:#4f46e5}
.b360-stat-ico svg{width:20px;height:20px}
.b360-stat-val{font-weight:950;font-size:28px;margin-top:8px;color:#0f172a}
.b360-stat-lbl{font-size:12px;color:rgba(15,23,42,.55);font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.b360-stat-chip{position:absolute;right:12px;top:12px;font-size:11px;padding:6px 9px;border-radius:999px;font-weight:900}
.b360-stat-chip.is-ok{background:rgba(16,185,129,.14);color:#065f46}
.b360-stat-chip.is-warn{background:rgba(249,115,22,.14);color:#9a3412}

.b360-grid2{display:grid;grid-template-columns: 1fr 1fr;gap:16px}
.b360-panel{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;overflow:hidden}
.b360-panel-h{padding:16px 18px;border-bottom:1px solid rgba(15,23,42,.06)}
.b360-panel-h h2{margin:0;font-size:14px;color:#0f172a}
.b360-panel-b{padding:18px}
.b360-donut{display:flex;gap:18px;align-items:center}
.b360-donut-ring{width:128px;height:128px;border-radius:999px;background:conic-gradient(#4f46e5 0 35%, #a5b4fc 35% 55%, #c7d2fe 55% 100%);display:grid;place-items:center}
.b360-donut-ring::before{content:"";width:88px;height:88px;border-radius:999px;background:#fff;display:block}
.b360-donut-num{position:absolute;font-weight:950;font-size:26px;color:#0f172a}
.b360-donut-legend{display:flex;flex-direction:column;gap:10px;color:rgba(15,23,42,.72)}
.b360-donut-legend div{display:flex;align-items:center;gap:10px}
.b360-donut-legend span{width:8px;height:8px;border-radius:50%;background:#4f46e5;display:inline-block}
.b360-donut-legend b{margin-left:auto;color:#0f172a}
.b360-trend-axis{display:flex;justify-content:space-between;color:rgba(15,23,42,.45);font-size:12px}
.b360-trend-placeholder{margin-top:18px;background:#f8fafc;border:1px dashed rgba(15,23,42,.18);border-radius:16px;padding:22px;color:rgba(15,23,42,.55)}

@media (max-width: 1100px){
  .b360-shell{grid-template-columns: 240px 1fr}
  .b360-cards{grid-template-columns:1fr}
  .b360-grid2{grid-template-columns:1fr}
}

/* ---------- Employee portal ---------- */
.b360-portal{min-height:100vh;background:#fff;color:#0f172a}
.b360-portal-top{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid rgba(15,23,42,.08)}
.b360-portal-brand{display:flex;align-items:center;gap:10px}
.b360-portal-badge{width:34px;height:34px;border-radius:12px;background:linear-gradient(180deg,#4f46e5,#6d28d9);display:grid;place-items:center;color:#fff;font-weight:900}
.b360-portal-title{font-weight:950}
.b360-portal-title span{margin-left:8px;font-size:12px;color:rgba(15,23,42,.55);font-weight:900}
.b360-portal-wrap{display:grid;grid-template-columns:220px 1fr;gap:18px;padding:18px;max-width:1200px;margin:0 auto}
.b360-portal-side{background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px;height: fit-content}
.b360-portal-link{padding:10px 12px;border-radius:12px;text-decoration:none;color:rgba(15,23,42,.75);font-weight:800}
.b360-portal-link.is-active{background:#eef2ff;color:#312e81}
.b360-portal-sep{height:1px;background:rgba(15,23,42,.10);margin:10px 0}
.b360-portal-main{min-width:0}
.b360-portal-hero{
  background:linear-gradient(90deg,#4f46e5,#6d28d9);
  color:#fff;border-radius:18px;padding:22px;display:flex;justify-content:space-between;gap:18px;position:relative;overflow:hidden
}
.b360-portal-hero h1{margin:0;font-size:22px}
.b360-portal-hero p{margin:6px 0 0;color:rgba(255,255,255,.85)}
.b360-portal-mini{display:flex;gap:10px;margin-top:14px}
.b360-portal-mini>div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:10px 12px;min-width:160px}
.b360-portal-mini-lbl{font-size:12px;color:rgba(255,255,255,.8);font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.b360-portal-mini-val{font-size:20px;font-weight:950;margin-top:2px}
.b360-portal-doc{width:140px;height:140px;border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16)}
.b360-portal-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.b360-portal-action{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:18px;text-decoration:none;color:#0f172a;font-weight:950;text-align:center}
.b360-portal-panel{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;overflow:hidden}
.b360-portal-tabs{display:flex;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(15,23,42,.06)}
.b360-portal-tabs button{border:0;background:transparent;font-weight:950;color:rgba(15,23,42,.55);padding:8px 10px;border-radius:12px;cursor:pointer}
.b360-portal-tabs button.is-active{background:#eef2ff;color:#312e81}
.b360-portal-tabs span{margin-left:auto;color:rgba(15,23,42,.45);font-size:12px}
.b360-portal-row{display:flex;align-items:center;gap:12px;padding:14px}
.b360-portal-dot{width:34px;height:34px;border-radius:999px;background:#fef3c7;border:1px solid rgba(245,158,11,.35)}
.b360-portal-row-title{font-weight:950}
.b360-portal-row-sub{font-size:12px;color:rgba(15,23,42,.55)}
.b360-portal-status{margin-left:auto;background:#fff7ed;border:1px solid rgba(249,115,22,.35);color:#9a3412;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px}
