:root {
  --bg: #0b0e14;
  --panel: #131822;
  --sidebar: #080a0f;
  --green: #16a34a;
  --gold: #d4af37;
  --white: #ffffff;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--white); display: flex; min-height: 100vh; overflow-x: hidden; }

.sidebar { width: 220px; flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.sb-logo { display: flex; align-items: center; gap: 10px; font-family: 'Oswald', sans-serif; font-size: 1.15rem; margin-bottom: 24px; }
.sb-logo img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--white); object-fit: cover; }
.sb-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sb-item { background: transparent; border: none; color: var(--muted); text-align: left; padding: 11px 12px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.86rem; }
.sb-item:hover, .sb-item.active { background: #1e293b; color: var(--white); border-left: 3px solid var(--green); }
.sb-exit { color: var(--white); text-decoration: none; font-size: 0.84rem; padding-top: 14px; border-top: 1px solid var(--border); }

.workspace { flex: 1; min-width: 0; padding: 24px; }
.kpi-header { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.team-id, .kpi-pill { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.team-id { display: flex; align-items: center; gap: 12px; }
.team-id img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.kpi-header small { display: block; font-size: 0.68rem; color: var(--muted); letter-spacing: 1px; }
.kpi-header strong { font-size: 0.95rem; }
.green-txt { color: #22c55e; }
.panel-view { display: none; }
.panel-view.active { display: block; }

.dash-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; align-items: start; }
.card-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; min-width: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h3 { font-size: 1rem; }
.tag-gold { background: rgba(212,175,55,0.16); color: var(--gold); font-size: 0.72rem; padding: 3px 8px; border-radius: 4px; font-weight: 700; }

.tactical-court { background: radial-gradient(circle, #14532d 0%, #052e16 100%); border: 2px solid rgba(255,255,255,0.45); border-radius: 12px; padding: 26px 16px; display: flex; flex-direction: column; gap: 22px; position: relative; }
.tactical-court::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.35); }
.court-line { display: flex; justify-content: center; z-index: 2; }
.court-line.two { justify-content: space-around; gap: 10px; }

.jersey-node { text-align: center; background: rgba(8,10,15,0.88); border: 1px solid var(--white); padding: 8px 12px; border-radius: 8px; min-width: 105px; }
.jersey-node.gk { background: var(--white); color: #08080a; }
.j-shirt { display: inline-block; background: var(--gold); color: #08080a; font-weight: 800; font-size: 0.72rem; padding: 1px 6px; border-radius: 4px; }
.jersey-node strong { display: block; font-size: 0.85rem; margin-top: 3px; }
.jersey-node small { font-size: 0.68rem; opacity: 0.8; }

.side-widgets { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sub-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sub-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); padding: 8px 12px; border-radius: 6px; font-size: 0.82rem; word-break: break-word; }

.form-box { max-width: 620px; }
.pro-form { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 5px; }
input, select { width: 100%; min-width: 0; background: #080a0f; border: 1px solid var(--border); color: var(--white); padding: 10px; border-radius: 6px; font-family: inherit; }

.btn-green { background: var(--green); color: #fff; border: none; padding: 10px 12px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }

.toast { position: fixed; bottom: 20px; right: 20px; background: var(--green); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; opacity: 0; transition: 0.3s; z-index: 999; }
.toast.show { opacity: 1; }

@media (max-width: 960px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; }
  .dash-grid, .grid-2 { grid-template-columns: 1fr; }
}
