﻿
:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #151f32;
  --surface2: #1b2940;
  --border: #293951;
  --text: #e5edf8;
  --muted: #8fa2bb;
  --blue: #3b82f6;
  --green: #22c55e;
  --red: #f87171;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button {
  font: inherit;
  cursor: pointer;
}

.app-shell {
  max-width: 1800px;
  margin: auto;
  padding: 0 36px;
}

.topbar {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand,
.header-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-weight: 800;
}

.brand h1 {
  font-size: 19px;
  margin: 0;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.system-status {
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0 24px;
}

.welcome h2 {
  font-size: 23px;
  margin: 0 0 8px;
}

.welcome p {
  color: var(--muted);
  margin: 0;
}

.refresh-button,
button.primary {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
}

button:hover {
  filter: brightness(1.13);
}

.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin: 25px 0;
}

.tabs button {
  padding: 13px 17px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
}

.tabs button.active {
  color: #93c5fd;
  border-bottom-color: var(--blue);
}

/* Three IdP columns */
.providers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 21px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel h2 {
  margin: 0 0 17px;
  font-size: 16px;
}

.panel h3 {
  font-size: 13px;
  color: #93c5fd;
  margin: 20px 0 10px;
}

.provider-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.provider-heading h2 {
  margin: 0;
}

.status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  background: #334155;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
}

.status.connected {
  background: #123b2d;
  color: #4ade80;
}

.status.disconnected {
  background: #3b2a20;
  color: #fbbf24;
}

.status.error {
  background: #451f2b;
  color: #fca5a5;
}

.info-line {
  color: var(--muted);
  margin: 12px 0;
  overflow-wrap: anywhere;
}

.tab-content {
  min-height: 220px;
}

.tab-content[hidden] {
  display: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.data-table th {
  color: #93c5fd;
  width: 34%;
  font-weight: 600;
}

.data-table td {
  color: var(--text);
}

pre {
  padding: 15px;
  background: #0a1220;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #b9d7ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.65;
  max-height: 600px;
}

.panel button:not(.primary) {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  margin-top: 12px;
}

.empty-state {
  color: var(--muted);
  padding: 18px 0;
}

.section-title {
  font-size: 18px;
  margin: 0 0 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 30px 0;
  margin-top: 35px;
  border-top: 1px solid var(--border);
}

.scope-selector {
  margin: 18px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.scope-selector h3 {
  font-size: 14px;
  margin: 0 0 12px;
}

.scope-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0;
  font-size: 13px;
  cursor: pointer;
}

.scope-option input {
  accent-color: #6366f1;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#vergelijking .data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#vergelijking .data-table th,
#vergelijking .data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  font-size: 13px;
}

#vergelijking .data-table th {
  color: #94a3b8;
  font-weight: 600;
}

#vergelijking .data-table td {
  color: #e2e8f0;
}

#vergelijking .data-table th:first-child {
  width: 25%;
}

#vergelijking .data-table th:last-child {
  width: 15%;
}

#vergelijking .data-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

@media(max-width: 1100px) {
  .providers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 750px) {
  .app-shell {
    padding: 0 15px;
  }

  .providers {
    grid-template-columns: 1fr;
  }

  .welcome {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tabs button {
    white-space: nowrap;
  }

  footer {
    gap: 10px;
    flex-direction: column;
  }
}
