body {
    font-family: Arial, sans-serif;
    background-color: #f3f6fb;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    color: #333;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tabs button {
    background-color: #3498db;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s ease-in-out;
}

.tabs button:hover {
    background-color: #2980b9;
}

.form-section {
    margin-bottom: 20px;
    text-align: center;
}

.form-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
}

#category-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

#category-container .flex {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

#category-container input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#category-container button {
    background-color: #e74c3c;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

#category-container button:hover {
    background-color: #c0392b;
}

button[type="submit"],
button[type="button"] {
    margin: 5px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background-color: #3498db;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

button[type="submit"]:hover,
button[type="button"]:hover {
    background-color: #2980b9;
}

.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-separator {
    border: none;
    border-top: 9px solid #444; /* dunkler Strich */
    margin: 20px 0;
}

.role-heading {
    display: block;
    font-size: 1.25rem; /* etwas größer */
    font-weight: bold; /* fett */
    text-decoration: underline; /* unterstrichen */
    margin-top: 20px; /* Abstand nach oben */
    margin-bottom: 10px; /* Abstand nach unten */
}
/* Navbar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2d2f3a;
  padding: 10px 20px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
}

.nav-brand {
  font-weight: bold;
  color: #fff;
  margin-right: 20px;
  text-decoration: none;
}

.nav-link {
  margin-right: 15px;
  text-decoration: none;
  color: #ddd;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.nav-user {
  margin-right: 10px;
  color: #ccc;
}

.logout {
  color: #f66;
}
.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  background: #2d8dd8;
  color: #fff;
  font-weight: 600;
  transition: transform .02s ease, opacity .2s ease;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }

/* --- Form Enhancements --- */
.pretty-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px 24px;
}

@media (max-width: 700px) {
  .pretty-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.pretty-form .form-item label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.pretty-form .input {
  width: 100%;
  box-sizing: border-box;
}

.fieldset {
  border: 1px solid #e6e8ef;
  border-radius: 10px;
  padding: 16px;
  margin-top: 16px;
  background: #fff;
}

.fieldset legend {
  font-weight: 700;
  padding: 0 8px;
}

.input-suffix {
  position: relative;
}

.input-suffix .suffix {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hint {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.gamekeys-box {
    background: #222;
    color: #0f0;
    padding: 10px;
    border-radius: 6px;
    white-space: pre-wrap;
}
