/* Back Office Toolkit — extravagant, modern UI */
.botk {
  --botk-bg: #0b1020;
  --botk-surface: rgba(255,255,255,0.06);
  --botk-surface2: rgba(255,255,255,0.09);
  --botk-border: rgba(255,255,255,0.12);
  --botk-text: rgba(255,255,255,0.92);
  --botk-muted: rgba(255,255,255,0.68);
  --botk-accent: #7c3aed;
  --botk-accent2: #06b6d4;
  --botk-accent3: #fb7185;
  --botk-shadow: 0 14px 50px rgba(0,0,0,0.35);
  --botk-radius: 18px;
  --botk-radius2: 24px;
  color: var(--botk-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.botk * { box-sizing: border-box; }

.botk .botk-shell {
  background:
    radial-gradient(1100px 500px at 20% -10%, rgba(124,58,237,0.55), transparent 60%),
    radial-gradient(900px 500px at 80% -20%, rgba(6,182,212,0.45), transparent 60%),
    radial-gradient(800px 500px at 70% 110%, rgba(251,113,133,0.35), transparent 60%),
    linear-gradient(180deg, rgba(11,16,32,0.95), rgba(8,10,18,0.98));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--botk-radius2);
  padding: 18px;
  box-shadow: var(--botk-shadow);
  overflow: hidden;
}

.botk-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--botk-radius2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  margin-bottom: 14px;
}

.botk-brand{display:flex; align-items:center; gap:10px;}
.botk-logo{
  width:30px; height:30px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--botk-accent), var(--botk-accent2));
  box-shadow: 0 10px 25px rgba(124,58,237,0.35);
}
.botk-brand-text{font-weight:800; letter-spacing:0.4px;}
.botk-badge{
  font-size:12px; padding:4px 10px; border-radius:999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--botk-muted);
}

.botk-tabs{display:flex; gap:8px; flex-wrap:wrap;}
.botk-tab{
  display:flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--botk-text);
  text-decoration:none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.botk-tab:hover{transform: translateY(-1px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18);}
.botk-tab.is-active{background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(6,182,212,0.18)); border-color: rgba(124,58,237,0.45);}

.botk-content{padding: 6px;}

.botk-card{
  border-radius: var(--botk-radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 50px rgba(0,0,0,0.28);
  padding: 18px;
}

.botk-card-soft{
  background: rgba(255,255,255,0.04);
}

.botk-title{font-size: 22px; font-weight: 800; letter-spacing: 0.2px;}
.botk-sub{color: var(--botk-muted); margin-top:4px; font-size: 13px;}
.botk-meta{opacity:0.9}

.botk-hero-head{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px;}
.botk-hero-title{font-size:14px; color: var(--botk-muted); text-transform: uppercase; letter-spacing: 0.14em;}
.botk-hero-sub{font-size:20px; font-weight: 850; margin-top:6px;}
.botk-hero-year{
  padding: 8px 12px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--botk-muted);
}

.botk-dashboard-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.85fr 0.75fr;
  gap:14px;
}
@media (max-width: 980px){
  .botk-dashboard-grid{grid-template-columns: 1fr; }
}

.botk-kpis{display:grid; grid-template-columns: 1fr; gap:10px;}
.botk-kpi{
  display:grid; grid-template-columns: 120px 70px 1fr;
  align-items:center;
  gap:10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.botk-kpi-label{font-weight: 750;}
.botk-kpi-val{
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 10px;
  width: fit-content;
  background: linear-gradient(135deg, rgba(251,113,133,0.22), rgba(124,58,237,0.20));
  border: 1px solid rgba(255,255,255,0.12);
}
.botk-kpi-note{color: var(--botk-muted); font-size:12px;}

.botk-ring-card{text-align:center;}
.botk-ring-title{font-weight:800; margin-bottom:10px;}
.botk-ring-wrap{position:relative; width: 220px; height: 220px; margin: 6px auto 0;}
.botk-ring{width: 220px; height: 220px;}
.botk-ring-center{
  position:absolute; inset:0;
  display:grid; place-items:center;
  pointer-events:none;
}
.botk-ring-num{font-size:44px; font-weight: 950; letter-spacing: -1px;}
.botk-ring-label{font-size:12px; color: var(--botk-muted); letter-spacing: 0.22em;}

.botk-service-card{text-align:center;}
.botk-service-title{font-weight:800; margin-bottom:10px; color: var(--botk-muted);}
.botk-service-num{font-size:44px; font-weight:950; margin-top: 10px;}
.botk-service-note{color: var(--botk-muted); font-size:12px;}
.botk-gauge{position:relative; width: 220px; height: 120px; margin: 10px auto 0; overflow:hidden;}
.botk-gauge-arc{
  position:absolute; left:0; right:0; bottom:-110px; margin:auto;
  width: 220px; height: 220px; border-radius: 50%;
  border: 14px solid rgba(255,255,255,0.12);
  border-top-color: rgba(124,58,237,0.85);
  border-right-color: rgba(6,182,212,0.75);
  transform: rotate(-135deg);
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));
}
.botk-gauge-needle{
  position:absolute; left:50%; bottom: 8px;
  width: 110px; height: 3px;
  background: rgba(255,255,255,0.85);
  transform-origin: left center;
  transform: rotate(-135deg);
  border-radius:999px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
.botk-note{margin-top: 14px; color: var(--botk-muted); font-weight: 600; text-align:center;}

.botk-profile .botk-profile-head{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px;}
.botk-profile-welcome{font-size:18px;}
.botk-profile-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 840px){ .botk-profile-grid{grid-template-columns: 1fr;} }
.botk-field label{display:block; font-size: 12px; color: var(--botk-muted); margin-bottom:6px;}
.botk-field input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.20);
  color: var(--botk-text);
}
.botk-field input:disabled{opacity:0.75}
.botk-profile-footer{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:14px;}
.botk-profile-hint{color: var(--botk-muted); font-size: 12px; max-width: 500px;}

.botk-materials-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px;
  margin-bottom: 12px;
}
@media (max-width: 980px){ .botk-materials-head{flex-direction:column; align-items:stretch;} }

.botk-controls{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;}
.botk-search{
  display:flex; align-items:center; gap:8px;
  padding: 8px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}
.botk-search input{
  border: none; outline: none; background: transparent; color: var(--botk-text);
}
.botk-controls select{
  padding: 10px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: var(--botk-text);
}

.botk-table-wrap{overflow:auto; border-radius: 18px; border: 1px solid rgba(255,255,255,0.10);}
.botk-table{width:100%; border-collapse: collapse; min-width: 760px;}
.botk-table th, .botk-table td{padding: 12px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align:left; vertical-align: top;}
.botk-table th{font-size:12px; color: var(--botk-muted); text-transform: uppercase; letter-spacing: 0.14em; background: rgba(255,255,255,0.03);}
.botk-table tr:hover td{background: rgba(255,255,255,0.03);}
.botk-cell-title{font-weight: 850;}
.botk-table .is-num{text-align:right;}

.botk-status{
  display:inline-flex; padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(6,182,212,0.10);
  color: rgba(255,255,255,0.90);
  font-size: 12px;
}

.botk-chip{
  margin-top:8px;
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  width: fit-content;
  background: rgba(255,255,255,0.05);
}
.botk-chip-ocean{background: rgba(6,182,212,0.12);}
.botk-chip-pearl{background: rgba(255,255,255,0.10);}
.botk-chip-onyx{background: rgba(148,163,184,0.10);}
.botk-chip-gold{background: rgba(234,179,8,0.12);}
.botk-chip-slate{background: rgba(148,163,184,0.12);}
.botk-chip-jade{background: rgba(34,197,94,0.12);}
.botk-chip-ruby{background: rgba(251,113,133,0.12);}
.botk-chip-classic{background: rgba(124,58,237,0.10);}

.botk-card-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){ .botk-card-grid{grid-template-columns: 1fr;} }

.botk-material-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 14px;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.botk-material-card:hover{transform: translateY(-2px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16);}
.botk-material-card-head{display:flex; justify-content:space-between; align-items:flex-start; gap:10px;}
.botk-material-name{font-weight: 900; font-size: 16px;}
.botk-material-meta{color: var(--botk-muted); font-size: 12px; margin-top: 6px;}
.botk-inventory-bar{margin-top: 14px;}
.botk-inventory-label{color: var(--botk-muted); font-weight: 650; margin-bottom: 8px;}
.botk-bar{height: 10px; border-radius:999px; background: rgba(255,255,255,0.10); overflow:hidden;}
.botk-bar-fill{height: 100%; width: 0%; border-radius:999px; background: linear-gradient(90deg, rgba(6,182,212,0.85), rgba(124,58,237,0.85));}
.botk-bar-scale{display:flex; justify-content:space-between; font-size: 11px; color: var(--botk-muted); margin-top: 6px;}

.botk-modal[hidden]{display:none;}
.botk-modal{position:fixed; inset:0; z-index: 9999;}
.botk-modal-backdrop{position:absolute; inset:0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);}
.botk-modal-card{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width: min(720px, 92vw);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(20,24,40,0.92);
  box-shadow: 0 25px 80px rgba(0,0,0,0.55);
  padding: 18px;
}
.botk-modal-x{
  position:absolute; right: 12px; top: 10px;
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 22px;
  cursor:pointer;
}
.botk-modal-body h2{margin: 0 0 10px;}
.botk-modal-body p{margin: 6px 0; color: var(--botk-muted);}

/* Admin shell polish */
.botk-admin .botk-admin-hero{
  margin: 10px 0 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(6,182,212,0.06));
  display:flex; justify-content:space-between; align-items:flex-start; gap:14px;
}
.botk-admin-title{font-size: 24px; font-weight: 850;}
.botk-admin-sub{color:#3c434a; margin-top: 4px;}
.botk-admin-hero-right{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;}
.botk-admin-pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
  font-weight: 650;
}
.botk-settings .botk-settings-grid{display:grid; grid-template-columns: 1fr 1fr; gap: 12px;}
@media (max-width: 980px){ .botk-settings .botk-settings-grid{grid-template-columns: 1fr;} }
