@font-face {
  font-family: FuturaExtraBold;
  src: url(../font/FuturaExtraBold.ttf);
}

:root {
  --bg-1: #07131f;
  --bg-2: #10253a;
  --bg-3: #1d3d52;
  --card: rgba(7, 20, 31, 0.82);
  --card-strong: rgba(8, 22, 36, 0.94);
  --stroke: rgba(142, 225, 255, 0.18);
  --text: #edf7fb;
  --muted: #9fc6d6;
  --cyan: #63e4ff;
  --teal: #4de1b8;
  --gold: #ffc868;
  --rose: #ff7c89;
  --orange: #ff9d57;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Aptos", "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
	radial-gradient(circle at 15% 15%, rgba(77, 225, 184, 0.18), transparent 28%),
	radial-gradient(circle at 82% 18%, rgba(255, 200, 104, 0.18), transparent 30%),
	radial-gradient(circle at 70% 75%, rgba(99, 228, 255, 0.18), transparent 30%),
	linear-gradient(135deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
  background-color: var(--bg-1);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: drift 16s ease-in-out infinite;
}

body::before {
  top: -12vw;
  right: -10vw;
  background: rgba(77, 225, 184, 0.2);
}

body::after {
  bottom: -14vw;
  left: -10vw;
  background: rgba(255, 157, 87, 0.18);
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2vw, 1vw, 0) scale(1.05); }
}

@keyframes reveal {
  from {
	  opacity: 0;
	  transform: translateY(18px);
  }
  to {
	  opacity: 1;
	  transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 228, 255, 0.32); }
  50% { box-shadow: 0 0 0 18px rgba(99, 228, 255, 0); }
}

#app {
  position: relative;
  z-index: 1;
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

.sidebar,
.main-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: calc(100vh - 56px);
  max-height: fit-content;
  position: sticky;
  top: 28px;
}

.brand {
  padding: 18px;
  border-radius: 22px;
  background:
	linear-gradient(135deg, rgba(99, 228, 255, 0.2), rgba(77, 225, 184, 0.1)),
	rgba(255,255,255,0.03);
  border: 1px solid rgba(99, 228, 255, 0.2);
}

.brand h1 {
  margin: 0 0 6px;
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  font-family: FuturaExtraBold;
  font-style: italic;
}

.brand p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.brand .header {
  display: flex;
  gap: 10px;
}

.brand .header .icon {
  width: 25%;
}

.brand .header .logo {
  width: 70%;
  fill: white;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav button,
.action,
.small-action,
.tag,
select,
input[type="range"] {
  font: inherit;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav button .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav button .nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  margin-top: -1px;
}

.nav button[data-tab="competition"] svg {
  fill: transparent;
}

.nav button[data-tab="facilities"] svg {
  margin-top: -4px;
}

.nav button .nav-label {
  display: inline-block;
}

.nav button:hover,
.nav button.active {
  transform: translateX(4px);
  border-color: rgba(99, 228, 255, 0.35);
  background: linear-gradient(135deg, rgba(99, 228, 255, 0.16), rgba(77, 225, 184, 0.12));
}

.side-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.language-switch button {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.language-switch button .flag-label {
  justify-content: center;
}

.language-switch button:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 228, 255, 0.26);
  background: rgba(99, 228, 255, 0.09);
}

.language-switch button.active {
  border-color: rgba(99, 228, 255, 0.34);
  background: linear-gradient(135deg, rgba(99, 228, 255, 0.18), rgba(77, 225, 184, 0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.side-card h3,
.panel h2,
.panel h3,
.panel h4,
.metric-card h3,
.report-card h3 {
  margin: 0 0 8px;
}

.main-shell {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 8px 4px 4px;
}

.headline h2 {
  margin: 0;
  font-size: 2rem;
}

.headline-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.headline p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.icon-action {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.icon-action:hover {
  transform: translateY(-1px);
  background: rgba(99, 228, 255, 0.12);
  border-color: rgba(99, 228, 255, 0.28);
}

.icon-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.action,
.small-action {
  border: none;
  cursor: pointer;
  border-radius: 16px;
  color: var(--bg-1);
  font-weight: 700;
  transition: transform 0.18s ease, filter 0.18s ease;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 16px 30px rgba(255, 157, 87, 0.2);
}

.action {
  padding: 14px 18px;
}

.small-action {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.secondary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 30px rgba(77, 225, 184, 0.18);
}

.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.08);
}

.action:hover,
.small-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.action.primary-pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  animation: reveal 0.6s ease both;
}

.metric-card,
.panel,
.report-card,
.player-card,
.facility-card,
.market-card,
.event-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric-card::after,
.panel::after,
.report-card::after,
.player-card::after,
.facility-card::after,
.market-card::after,
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), transparent 28%);
  opacity: 0.6;
}

.metric-card small {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.metric-card .big {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.content {
  display: grid;
  gap: 18px;
  animation: reveal 0.7s ease both;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.tag.tag-role { text-transform: capitalize; }
.tag.role-third { background: rgba(99, 228, 255, 0.12); }
.tag.role-mid { background: rgba(77, 225, 184, 0.12); }
.tag.role-first { background: rgba(255, 200, 104, 0.12); }

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.stat-row {
  display: grid;
  grid-template-columns: 120px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.event-timeline {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.event-pill {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  min-height: 108px;
}

.event-pill.active {
  border-color: rgba(99, 228, 255, 0.4);
  background: linear-gradient(140deg, rgba(99, 228, 255, 0.16), rgba(77, 225, 184, 0.1));
}

.event-pill.done {
  opacity: 0.78;
}

.lineup-grid,
.player-grid,
.market-grid,
.facility-grid,
.inbox-grid {
  display: grid;
  gap: 14px;
}

.lineup-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-grid,
.market-grid:not(:has(.empty-state)),
.facility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inbox-grid {
  grid-template-columns: 1fr;
}

.player-card,
.market-card,
.facility-card {
  display: grid;
  gap: 12px;
}

.player-top,
.market-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.player-top h4,
.market-top h4 {
  margin: 0;
  font-size: 1.15rem;
}

.sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.flag-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.flag-label-compact {
  gap: 7px;
}

.flag-label-subtle {
  color: inherit;
}

.flag-icon {
  width: 1.2rem;
  height: 0.9rem;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 16px rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.language-switch .flag-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.team-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.team-label-compact {
  gap: 7px;
}

.team-label-subtle {
  color: inherit;
}

.team-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  flex: 0 0 auto;
}

.headline-title .team-icon {
  margin-top: -0.3rem;
  width: 2rem;
  height: 2rem;
}

.tag .flag-icon,
.sub .flag-icon {
  transform: translateY(-0.5px);
}

.rating-badge {
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 228, 255, 0.2), rgba(77, 225, 184, 0.12));
  border: 1px solid rgba(99, 228, 255, 0.22);
  font-weight: 800;
  font-size: 1.1rem;
}

.rating-badge-low {
  background: linear-gradient(135deg, rgba(255, 124, 137, 0.28), rgba(255, 92, 92, 0.14));
  border-color: rgba(255, 124, 137, 0.34);
  color: #ffe9eb;
}

.rating-badge-mid {
  background: linear-gradient(135deg, rgba(255, 200, 104, 0.24), rgba(255, 157, 87, 0.14));
  border-color: rgba(255, 200, 104, 0.3);
  color: #fff4dc;
}

.rating-badge-high {
  background: linear-gradient(135deg, rgba(77, 225, 184, 0.28), rgba(74, 222, 128, 0.14));
  border-color: rgba(77, 225, 184, 0.34);
  color: #eafff7;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.mini-stat.stat-role strong {
    text-transform: capitalize;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.slider-group {
  display: grid;
  gap: 14px;
}

.slider-wrap {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.slider-wrap label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(6, 17, 26, 0.85);
  color: var(--text);
  outline: none;
}

.split-note,
.coach-note {
  color: var(--muted);
  line-height: 1.55;
}

.report-card {
  display: grid;
  gap: 16px;
}

.report-score {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 228, 255, 0.14), rgba(255, 200, 104, 0.14));
  border: 1px solid rgba(255,255,255,0.08);
}

.report-score .scoreline {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}

.note-list {
  display: grid;
  gap: 10px;
  margin-top: -16px;
}

.note-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.accent-cyan { color: var(--cyan); }
.accent-gold { color: var(--gold); }
.accent-teal { color: var(--teal); }
.accent-rose { color: var(--rose); }

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.stack {
  display: grid;
  gap: 16px;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(255,255,255,0.14);
  color: var(--muted);
  text-align: center;
}

#toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(6, 17, 26, 0.92);
  border: 1px solid rgba(99, 228, 255, 0.2);
  box-shadow: var(--shadow);
  animation: reveal 0.25s ease both;
}

@media (max-width: 1280px) {
  .brand .header {
    margin-bottom: 10px;
  }
}

.settings-grid {
  display: grid;
  gap: 24px;
}

.settings-section {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.settings-section h3 {
  margin: 0 0 8px 0;
  color: var(--text);
}

.settings-section p {
  margin: 0 0 16px 0;
  color: var(--muted);
}

.button-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.setting-btn {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-align: center;
}

.setting-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 228, 255, 0.26);
  background: rgba(99, 228, 255, 0.09);
}

.setting-btn.active {
  border-color: rgba(99, 228, 255, 0.34);
  background: linear-gradient(135deg, rgba(99, 228, 255, 0.18), rgba(77, 225, 184, 0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.settings-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(6, 17, 26, 0.85);
  color: var(--text);
  outline: none;
}

.settings-info {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 200, 104, 0.1);
  border: 1px solid rgba(255, 200, 104, 0.2);
}

.settings-info h4 {
  margin: 0 0 8px 0;
  color: var(--gold);
}

.settings-info p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1260px) {
  #app {
	grid-template-columns: 1fr;
  }

  .sidebar {
	position: static;
	min-height: auto;
  }

  .metrics,
  .hero-grid,
  .grid-2,
  .grid-3,
  .player-grid,
  .market-grid,
  .facility-grid {
	grid-template-columns: 1fr;
  }

  .event-timeline {
	grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #app {
	padding: 16px;
  }

  .main-shell,
  .sidebar {
	padding: 16px;
  }

  .lineup-grid,
  .controls-grid {
	grid-template-columns: 1fr;
  }

  .event-timeline {
	grid-template-columns: 1fr 1fr;
  }

  .topbar,
  .panel-header,
  .player-top,
  .market-top,
  .report-score {
	flex-direction: column;
	align-items: stretch;
  }
}

/* breedte van scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

/* achtergrond van de balk */
::-webkit-scrollbar-track {
  background: var(--bg-3);
}

/* het schuifblokje */
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 6px;
}

/* hover */
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.2);
}
