/* ===========================
   Glassmorphism für Login/Register
   =========================== */
.glass-card {
  margin: 10rem auto 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  min-height: 360px;
}
.glass-button {
  margin-top: 1.5rem;
}

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.auth-page .auth-wrapper {
  flex: 1;
  min-height: 0;
  padding: 7vh 1rem;
}
.auth-page .glass-card {
  max-width: 480px;
  width: 90%;
}

/* ===========================
   Custom Checkbox‐Styles
   =========================== */

/* Grund‐Reset, damit wir das native Aussehen loswerden */
.content input[type="checkbox"],
form input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1.25rem;              /* quadratische Box */
  height: 1.25rem;
  margin: 0;                   /* Rand steuern wir über label */
  background: rgba(255, 255, 255, 0.1);  /* leicht durchsichtiges Weiß */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  vertical-align: middle;
  cursor: pointer;
  position: relative;          /* für das Häkchen‐Pseudoelement */
  transition: background 0.2s, border-color 0.2s;
}

/* Häkchen einblenden, wenn gecheckt */
.content input[type="checkbox"]:checked,
form input[type="checkbox"]:checked {
  background: var(--accent);            /* Akzentfarbe */
  border-color: var(--accent);
}

/* Das Häkchen‐Icon */
.content input[type="checkbox"]:checked::after,
form input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: solid var(--text-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hover‐Effekt: leicht aufhellen, wenn man über die Box fährt */
.content input[type="checkbox"]:hover,
form input[type="checkbox"]:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Label‐Styles, damit der Text schön neben der Checkbox sitzt */
.content .form-group label,
form .form-group label {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
}

/* Falls du mehrere Checkboxen in einer Zeile hast */
.content .form-group .checkbox-wrapper,
form .form-group .checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* Beispiel: Wenn du Checkbox + Label in ein DIV packst */
.content .form-group .checkbox-wrapper input[type="checkbox"] {
  margin: 0; /* Rand entfernen, wir haben margin-left beim Label */
}
.content .form-group .checkbox-wrapper label {
  margin: 0 1rem 0 0.5rem;
}

/* ===========================
   Checkboxen‐Styling (Abstand & Layout)
   =========================== */
.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;    /* Abstand zwischen den Checkboxen */
  margin-bottom: 0.5rem; /* etwas Abstand nach unten, falls mehrzeilig */
}

.checkbox-wrapper input[type="checkbox"] {
  /* Größe und Glass‐Look wie zuvor definiert */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px; left: 5px;
  width: 4px; height: 8px;
  border: solid var(--text-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper input[type="checkbox"]:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.checkbox-wrapper label {
  margin-left: 0.5rem;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
}

/* ===========================
   Action‐Buttons nebeneinander
   =========================== */
.action-buttons {
  display: flex;
  gap: 0.5rem;   /* Abstand zwischen Bearbeiten- und Löschen-Button */
}

.action-buttons a.glass-button,
.action-buttons form .glass-button {
  /* Damit beide Buttons gleich groß sind und nebeneinander stehen */
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

/* Falls deine .glass-button‐Klasse bereits block‐weit definiert ist,
   überschreiben wir sie hier für Action‐Buttons: */
.action-buttons a.glass-button {
  display: inline-block;   /* Override: nicht 100% Breite */
  width: auto;
}

.action-buttons form .glass-button {
  display: inline-block;   /* Override: nicht 100% Breite */
  width: auto;
}

/* Optional: Knopf‐Hover für Action‐Buttons */
.action-buttons a.glass-button:hover,
.action-buttons form .glass-button:hover {
  background: rgba(255, 255, 255, 0.1); /* etwas Heller beim Hover */
}

/* ===========================
   Tabelle: Einheitliche Button‐Abstände
   =========================== */
.content table tbody tr td form,
.content table tbody tr td a {
  margin: 0; /* Entferne ungewollte Abstände */
  padding: 0;
}

/* ===========================
   Einheitliches Button‐Styling für Actions
   =========================== */

/* 1) Basis‐Regeln für beide Button‐Typen: */
.action-buttons .glass-button {
  display: inline-flex;               /* nebeneinander, Inhalt zentriert */
  align-items: center;                /* vertikale Zentrierung */
  justify-content: center;            /* horizontale Zentrierung */
  padding: 0.5rem 1rem;               /* gleiche Polsterung */
  margin: 0;                          /* kein zusätzlicher Rand */
  background: rgba(0, 0, 0, 0.6);     /* dunkles, halbtransparentes Matte */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--text-light);
  font-weight: bold;
  font-size: 0.9rem;
  text-decoration: none;              /* Links unterstreichen nicht */
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;                /* Inhalt nicht umbrechen */
  box-sizing: border-box;
}

/* 2) Hover‐Effekt für beide Button‐Typen */
.action-buttons .glass-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 3) Spezielle Anpassung für <button>, um Standard‐Defaults zu entfernen */
.action-buttons button.glass-button {
  /* Setze die browser‐eigenen Button‐Defaults zurück */
  border: none;               /* Browser‐Default entfernen */
  background-clip: padding-box; 
}

/* 4) Für <a> sicherstellen, dass es block‐ähnlich aussieht wie der <button> */
.action-buttons a.glass-button {
  /* Ersetzt das standardmäßige inline‐Verhalten von Links */
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 5) Abstand zwischen den beiden Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;  /* jeweils 0.5rem Abstand zwischen Bearbeiten + Löschen */
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  html, body {
    flex-direction: column;
  }
}