/* =========================
   GRUNDFARBEN & RESET
========================= */

:root {
  --bg-main: #1e1e1e;
  --bg-card: #2a2a2a;
  --bg-header: #0d47a1;
  --accent: #2196f3;
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* =========================
   LOGIN
========================= */

.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 14px;
  width: 320px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.login-box h1 {
  color: var(--accent);
  font-size: 30px;
  margin-bottom: 30px;
}

.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
}

.login-box button {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  font-weight: bold;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.login-box button:hover {
  background: #1976d2;
}

#error {
  color: #f44336;
  margin-top: 10px;
}

/* =========================
   HEADER / STEUERUNG
========================= */

/* Header Container */
/* =========================
   HEADER / TOPBAR
========================= */
.topbar {
  display: flex;
  justify-content: space-between; /* Links + Rechts */
  align-items: center;            /* Vertikal zentrieren */
  padding: 15px 30px;
  background: var(--bg-header);
  flex-wrap: wrap;                /* Für kleine Bildschirme */
  gap: 10px;
}

/* Links: Abteilung + Datum */
.topbar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.control-group {
  display: flex;
  flex-direction: column; /* Label über Input */
  gap: 4px;
}

.control-group label {
  color: var(--text-main);
  font-size: 14px;
  font-weight: bold;
}

.control-group select,
.control-group input {
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  min-width: 180px;
  height: 38px;
}

/* Rechts: Logout */
.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-right button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  height: 38px;
}

.topbar-right button:hover {
  background: #c0392b;
}



/* =========================
   SCHICHTPLAN TABELLE
========================= */

main {
  padding: 20px;
  padding-bottom: 70px;
}

.shift-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-size: 18px;
}

.shift-table thead th {
  background: #333;
  padding: 14px;
  text-align: left;
}

.shift-table tbody tr {
  background: var(--bg-card);
}

.shift-table td {
  padding: 14px;
  vertical-align: middle;
}

/* =========================
   STATUS BADGES
========================= */

.status {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  min-width: 140px;
  text-align: center;
}

.status.läuft {
  background: #2e7d32;
}

.status.rüsten {
  background: #ef6c00;
}

.status.wartung {
  background: #0277bd;
}

.status.defekt {
  background: #c62828;
}

.status.ungeplanter {
  background: #6a1b9a;
}

/* =========================
   BEMERKUNG
========================= */

.shift-table td:last-child {
  color: var(--text-muted);
  font-size: 16px;
}

/* =========================
   NEWS TICKER
========================= */

.news-ticker {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 12px;
  font-size: 18px;
  border-top: 3px solid var(--accent);
}
