/* Dark Theme - Supabase Theme Update */
:root {
  --brand: #3ecf8e;
  --brand-accent: #2563eb;
  --dark: #1a1a1a;
  --light: #2d2d2d;
  --gray: #404040;
  --table-header: #3a3a3a;
  --text-secondary: #b0b0b0;
  --text-primary: #ffffff;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e42;
  --border-radius: 14px;
  --shadow: 0 4px 32px rgba(0,0,0,0.3);
  --input-bg: #2d2d2d;
  --input-border: #404040;
  --input-focus: #2563eb;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
  background: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.7em;
}

p, ul, ol, li, td, th {
  color: var(--text-secondary);
  font-size: 1.08em;
}

input, select, textarea {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  padding: 0.7em 1em;
  font-size: 1.08em;
  color: var(--text-primary);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  margin-bottom: 1em;
  width: 100%;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.10);
}

.btn, .btn-primary, .btn-secondary {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 8px;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(62,207,142,0.08);
}

.btn:hover, .btn-primary:hover, .btn-secondary:hover {
  background: var(--brand-accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}

.btn-secondary {
  background: var(--gray);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--brand-accent);
  color: #fff;
}

table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  word-break: break-word;
  border: 1px solid var(--gray);
}

th, td {
  border: 1px solid var(--gray);
  padding: 0.75em 1em;
  text-align: left;
}

th {
  background: var(--table-header);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary) !important;
  white-space: nowrap;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.18s;
}

tr:hover {
  background: var(--table-header);
  box-shadow: 0 2px 8px rgba(62, 207, 142, 0.08);
  transition: background 0.18s, box-shadow 0.18s;
}

tr:nth-child(even) td {
  background: var(--light);
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 1100px) {
  .container {
    padding: 1rem;
  }
  table {
    display: block;
    overflow-x: auto;
    width: 100%;
    min-width: 600px;
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  .container {
    padding: 1rem;
  }
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    display: none;
  }
  tr {
    margin-bottom: 1.5rem;
    background: var(--light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1rem 0.5rem;
  }
  td {
    border: none;
    position: relative;
    padding-left: 50%;
    min-height: 2.5em;
  }
  td:before {
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: var(--text-secondary);
    content: attr(data-label);
  }
}

ul {
  margin-left: 1.5em;
  margin-bottom: 0.5em;
}

nav {
  background: var(--dark);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 2em;
  padding: 0.7em 1.2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

nav li {
  display: block;
}

nav a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08em;
  padding: 0.5em 1em;
  border-radius: 6px;
  transition: background 0.25s, color 0.25s;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  max-width: 20ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  color: var(--brand-accent);
  flex-shrink: 0;
}

nav a:hover, nav a.active {
  background: var(--brand-accent);
  color: #fff;
}

nav a:hover .nav-icon, nav a.active .nav-icon {
  color: #fff;
}

nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--brand);
  cursor: pointer;
}

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5em 0.5em;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0.5em;
    display: none;
    margin-top: 0.5em;
  }
  nav ul.open {
    display: flex;
  }
  nav .nav-toggle {
    display: block;
    align-self: flex-end;
    margin-bottom: 0.2em;
  }
}

.alert {
  margin-top: 1em;
  padding: 1em 1.5em;
  border-radius: 8px;
  font-size: 1.08em;
  font-weight: 500;
  box-shadow: var(--shadow);
  margin-bottom: 1.5em;
}

.alert-success {
  background: #1a3a1a;
  color: var(--success);
  border: 1.5px solid var(--success);
}

.alert-danger {
  background: #3a1a1a;
  color: var(--danger);
  border: 1.5px solid var(--danger);
}

.alert-warning {
  background: #3a2a1a;
  color: var(--warning);
  border: 1.5px solid var(--warning);
}

footer {
  text-align: center;
  margin: 2em 0 1em 0;
  color: var(--text-secondary);
  font-size: 0.95em;
  background: none;
  border: none;
  box-shadow: none;
}

.tiles-row {
  display: flex;
  gap: 2em;
  margin-bottom: 2.2em;
  flex-wrap: wrap;
}

.tile {
  flex: 1 1 180px;
  min-width: 160px;
  background: var(--light);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.3em 1.5em 1.1em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1.5px solid var(--gray);
  transition: box-shadow 0.18s, border 0.18s;
}

.tile-label {
  font-size: 1.02em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.4em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tile-value {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.tile-total .tile-value {
  color: var(--brand-accent);
}

.tile-tested .tile-value {
  color: var(--brand);
}

.tile-free .tile-value {
  color: var(--success);
}

.tile:hover {
  box-shadow: 0 4px 24px rgba(62,207,142,0.13);
  border: 1.5px solid var(--brand-accent);
}

@media (max-width: 900px) {
  .tiles-row {
    gap: 1em;
  }
  .tile {
    padding: 1em 1em 0.8em 1em;
    min-width: 120px;
  }
  .tile-value {
    font-size: 1.5em;
  }
}

@media (max-width: 600px) {
  .tiles-row {
    flex-direction: column;
    gap: 1em;
  }
  .tile {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
  }
}

/* Dashboard-Container und Tabelle: Flexibles, responsives Layout */
.dashboard-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  box-sizing: border-box;
  padding: 0 1vw;
}

.dashboard-container table {
  width: 100%;
  max-width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  overflow-x: auto;
  background: var(--light);
}

/* Tabellenzellen: Kein Umbruch für Nummern und IDs */
.dashboard-container td[data-label="#"],
.dashboard-container td[data-label="ID"] {
  white-space: nowrap;
}

/* Responsive Tabellen-Wrapper für alle Tabellen im Dashboard */
@media (max-width: 1200px) {
  .dashboard-container table {
    min-width: 900px;
  }
}

@media (max-width: 900px) {
  .dashboard-container table {
    min-width: 700px;
  }
}

/* Scrollbar Styling für Dark Theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
} 