/* Overlay für den ausgegrauten Hintergrund */
.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Halbdurchsichtiges Grau */
  display: none; /* Unsichtbar, bis das Formular abgesendet wird */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Box für den Spinner und den Text */
.spinner-box {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Spinner Styling */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #42595a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

/* Keyframes für die Drehung des Spinners */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Text in der Box */
.spinner-text {
  font-size: 1.2rem;
  color: #42595a;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-red {
  background-color: red;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-green-primary {
  background-color: darkgreen;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
/* Grundlegendes CSS für die gesamte Seite */
@font-face {
  font-family: "Centra No2";
  src: url("<%= asset_path("Centra-No2-Regular.woff2") %>") format("woff2"),
    url("<%= asset_path("Centra-No2-Regular.woff") %>") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Centra No2";
  src: url("<%= asset_path("Centra-No2-Bold.woff2") %>") format("woff2"),
    url("<%= asset_path("Centra-No2-Bold.woff") %>") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Centra No2";
  src: url("<%= asset_path("Centra-No2-Medium.woff2") %>") format("woff2"),
    url("<%= asset_path("Centra-No2-Medium.woff") %>") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Centra No2";
  src: url("<%= asset_path("Centra-No2-Light.woff2") %>") format("woff2"),
    url("<%= asset_path("Centra-No2-Light.woff") %>") format("woff");
  font-weight: 300;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "Centra No2", ui-sans-serif, system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #f0f0f0;
  color: #262625;
}

a {
  text-decoration: none;
  color: #262625;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Layout für Navigation und Hauptinhalt */
.wrapper {
  display: flex;
  height: 100vh;
}

.navbar {
  background-color: #b7d0bd;
  color: #262625;
  width: 210px; /* Feste Breite */
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Platz zwischen Inhalt und Footer */
  padding: 15px;
  padding-right: 8px;
  box-sizing: border-box;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.navbar a {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.navbar a:hover {
  text-decoration: underline;
}

.navbar .copyright {
  font-size: 12px;
  color: #6b6b6b; /* Hellerer Farbton als der Standardtext */
  text-align: left;
  margin-top: auto; /* Schiebt das Copyright nach unten */
}

.main-content {
  margin-left: 200px; /* Platz für die Navigation (Breite + Padding der Navigation) */
  background-color: #ffffff;
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
  height: 100vh; /* Volle Höhe */
}

/* Buttons Styles */
.btn-base {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  gap: 0.5rem;
  width: fit-content;
  height: fit-content;
  line-height: 22px;
}

.btn-dark-primary {
  background-color: #262625;
  color: #fff;
}

.btn-dark-primary:disabled {
  background-color: #a3b1b2;
  color: #ffffff; /* Falls du den Text auch anpassen möchtest */
  cursor: not-allowed;
}

.btn-disabled {
  background-color: #a3b1b2; /* Deaktivierte Hintergrundfarbe */
  color: #ffffff; /* Textfarbe für den deaktivierten Zustand */
  cursor: wait; /* Verhindert, dass der Button klickbar erscheint */
  opacity: 0.65; /* Optional, um den deaktivierten Button etwas blasser erscheinen zu lassen */
}

.btn-dark-primary:disabled {
  background-color: #a3b1b2; /* Fallback, falls `btn-disabled` nicht angewendet wird */
  cursor: wait;
}

.btn-dark-secondary {
  background-color: #444;
  color: #fff;
}

.btn-green-primary {
  background-color: #42595a;
  color: #fff;
}

.btn-green-secondary {
  background-color: #5a7677;
  color: #262625;
}

.btn-light-primary {
  background-color: #f0f0f0;
  color: #262625;
}

.btn-light-secondary {
  background-color: #e0e0e0;
  color: #444;
}

/* Formular */
.field {
  margin-bottom: 1.5rem;
}

label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

input[type="text"],
input[type="date"],
input[type="password"],
select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  margin-bottom: 1rem;
}

input[type="submit"] {
  border: none;
  outline: none;
}

.actions input[type="submit"] {
  background-color: #42595a;
  color: white;
  cursor: pointer;
}

.actions input[type="submit"]:hover {
  background-color: #5a7677;
}

.notice,
.alert {
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: block;
}

/* Notice Box: Heller Hintergrund wie die Buttons */
.notice {
  background-color: #e8f0f1; /* Leichter Hintergrund passend zu den Button-Farben */
  color: #42595a; /* Textfarbe passend zu den Button-Texten */
  border: none;
}

/* Alert Box: Helles Gelb */
.alert {
  background-color: #fff3cd; /* Helles Gelb für die Warnung */
  color: #856404; /* Passende Textfarbe */
  border: none;
}

/* Responsivität */
@media (max-width: 768px) {
  .navbar {
    width: 200px;
  }

  .navbar-logo {
    font-size: 1.2rem;
  }

  .main-content {
    margin-left: 200px; /* Anpassung für mobile Ansichten */
  }
}

.visible {
  display: flex;
}

.hidden {
  display: none;
}

.login-form {
  max-width: 350px;
  margin: auto;
}

.generic-form {
  max-width: 350px;
}

/* .suggestions {
  border: 1px solid #000;
} */

.suggestion {
  cursor: pointer;
  margin: 5px;
  padding: 5px;
}

.suggestion:hover {
  background-color: #b7d0bd;
}

:disabled,
[disabled],
[aria-disabled="true"] {
  cursor: not-allowed !important;
}
