/* Poppins Font Import */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", Arial, sans-serif;
  background-color: #ffffff;
  box-sizing: border-box;
}

/* Dark button (shared) */
.btn-dark {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
  border-radius: 12px;
  padding: 12px 22px;
  line-height: 1;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn-dark:hover {
  background: #3a3a3a !important;
  border-color: #3a3a3a !important;
}
/* Layout variables and content offset to account for the fixed sidebar */
:root {
  --sidebar-width: 250px;
  /* Default content max width; pages may override this if they need a different width */
  --content-max-width: 1000px;
}

/* Ensure main content reserves space for the sidebar on larger screens */
#content,
.content {
  margin-left: var(--sidebar-width);
  transition:
    margin-left 0.2s ease,
    padding 0.2s ease;
  padding: 20px;
  box-sizing: border-box;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  /* Mobile: sidebar becomes part of flow and content uses full width */
  #content,
  .content {
    margin-left: 0;
    padding: 12px;
  }
}

/* Helper class to indicate sidebar is present; JS may toggle this if needed */
.with-sidebar #content,
.with-sidebar .content {
  margin-left: var(--sidebar-width);
}

/* Ensure high-level UI elements like topbar and modals stay above content */
.top-bar,
.confirmation-modal,
.notification-container {
  z-index: 8000;
}

/* Page-specific skeleton utilities */
body.use-page-skeleton #load {
  display: none;
}

.page-skeleton {
  display: none;
  gap: 18px;
}

.page-content {
  display: block;
}

body.is-loading .page-skeleton {
  display: grid;
}

body.is-loading .page-content {
  display: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 8px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.6s infinite;
}

.skeleton-title {
  height: 32px;
  width: 260px;
}

.skeleton-subtitle {
  height: 18px;
  width: 520px;
}

.skeleton-block {
  height: 140px;
  width: 100%;
  border-radius: 12px;
}

.skeleton-row {
  height: 44px;
  width: 100%;
  border-radius: 10px;
}

.skeleton-hero {
  height: 220px;
  width: 100%;
  border-radius: 16px;
}

/* Skeleton loader overlay */
#load {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 110px 24px 24px calc(var(--sidebar-width) + 36px);
  box-sizing: border-box;
  overflow: hidden;
}

#load::before {
  content: "";
  width: min(1200px, 100%);
  height: 560px;
  border-radius: 12px;
  background:
    linear-gradient(#f2f2f2 26px, transparent 0) 0 0 / 60% 26px,
    linear-gradient(#f2f2f2 16px, transparent 0) 0 42px / 40% 16px,
    linear-gradient(#f2f2f2 160px, transparent 0) 0 78px / 100% 160px,
    linear-gradient(#f2f2f2 26px, transparent 0) 0 260px / 50% 26px,
    linear-gradient(#f2f2f2 160px, transparent 0) 0 296px / 100% 160px;
  background-repeat: no-repeat;
}

#load::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.6s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}
/* Main Content Layout */

a {
  text-decoration: underline;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #333;
}
/* General Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left; /* Default alignment for tables */
  line-height: 1.5;
  white-space: nowrap; /* Prevent line breaks in cells */
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

td:first-child {
  text-align: left;
  font-weight: bold;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:nth-child(odd) {
  background-color: #e0e0e0;
}

/* Table Header Colors */
th.primary {
  color: #8b0000;
}

th.secondary {
  color: #333;
}

/* Highlighted Column Styles */
.highlight-column {
  border-left: 3px solid #ff4500;
  border-right: 3px solid #ff4500;
}

th.highlight-column,
td.highlight-column {
  color: #ff4500;
  font-weight: bold;
}

tr:last-child td.highlight-column {
  border-bottom: 3px solid #ff4500;
}
/* notification auf jeder Seite */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px xrrgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  max-width: 300px;
  z-index: 8000;
  transition: opacity 0.5s ease-out;
}

.notification-container.fade-out {
  opacity: 0;
}

.notification-icon {
  margin-right: 10px;
}

.icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle.success {
  background-color: #4caf50;
}

.icon-circle.success::before {
  content: "\2713"; /* Unicode für den grünen Haken */
  color: white;
  font-size: 16px;
}

.icon-circle.error {
  background-color: #f44336;
}

.icon-circle.error::before {
  content: "\2716"; /* Unicode für das rote Kreuz */
  color: white;
  font-size: 16px;
}

.notification-title {
  font-weight: bold;
  font-size: 16px;
  margin-right: 8px;
}

.notification-message {
  flex-grow: 1;
  margin-right: 8px;
}
.notification-container.success {
  opacity: 1;
  animation: fadeOut 3s ease forwards;
}

/* Confirmation modal */
.confirmation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.confirmation-modal {
  background: #ffffff;
  color: #111827;
  padding: 32px 36px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(520px, 92vw);
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.12);
  color: #ff7a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.confirmation-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.confirmation-message {
  font-size: 16px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 24px 0;
}

.confirmation-modal .modal-buttons {
  display: flex;
  gap: 14px;
}

.confirmation-modal button {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirmation-modal .confirm-button {
  background: var(--akzent, #00c8c8);
  color: #ffffff;
  border-color: transparent;
}

.confirmation-modal .confirm-button:hover {
  filter: brightness(0.95);
}

.confirmation-modal .cancel-button {
  background: #ffffff;
  color: #111827;
}

.confirmation-modal .cancel-button:hover {
  background: #f3f4f6;
}

/*loading symbol*/
/* Ladebildschirm */
/* Ladebildschirm */
#load {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background: rgba(
    255,
    255,
    255,
    0.9
  ); /* Minimalistischer weißer, leicht durchsichtiger Hintergrund */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-in-out; /* Weicher Übergang beim Ausblenden */
}

/* Lade-Animation */
#load::after {
  content: "";
  width: 50px; /* Etwas kleiner für einen dezenteren Look */
  height: 50px;
  border: 4px solid rgba(0, 0, 0, 0.1); /* Dezente Farbe für den Kreisrand */
  border-top: 4px solid #888; /* Moderne, ansprechende Farbe (blau) für den animierten Teil */
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.42, 0, 0.58, 1) infinite; /* Weichere, angenehmere Spin-Animation */
}

/* Animation für das Drehen des Symbols */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hauptinhalt ausblenden (Startzustand) */

/* Beim vollständigen Laden der Seite den Inhalt anzeigen */
body.loaded #content {
  opacity: 1; /* Inhalt wird sichtbar */
}

/* Den Ladebildschirm ausblenden */
body.loaded #load {
  opacity: 0;
  pointer-events: none; /* Ladebildschirm nach dem Laden unbenutzbar machen */
}

/* Styles for the help icon and tooltip text */
.help-icon {
  margin-left: 5px;
  color: #888;
  cursor: pointer;
  position: relative;
  font-size: 1.2em;
  display: inline-block;
  z-index: 1000; /* Ensure the icon is on top */
}

/* Tooltip-Text */
.help-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  display: none;
  z-index: 2000; /* Ensure the tooltip text is above other content */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none; /* Tooltip should not catch mouse events */
}

/* Tooltip Arrow */
.help-icon::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  display: none;
  z-index: 2000;
  pointer-events: none;
}

/* Tooltip anzeigen bei Hover oder Fokus */
.help-icon:hover::after,
.help-icon:hover::before,
.help-icon:focus::after,
.help-icon:focus::before {
  display: block;
}

/* Alternative: Visibility statt Display für reibungslose Übergänge */
.help-icon:hover::after,
.help-icon:focus::after {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.help-icon::after {
  visibility: hidden;
  opacity: 0;
}

.help-icon:hover::before,
.help-icon:focus::before {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.help-icon::before {
  visibility: hidden;
  opacity: 0;
}

/*auswahlmenü wie bei der Musikrichtung*/
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}
select:hover {
  border-color: #007bff;
  background-color: #f9f9f9;
}
select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
select[multiple] {
  height: auto; /* Höhe an die Anzahl der Optionen anpassen */
  min-height: 150px; /* Mindesthöhe */
  padding: 10px;
  overflow-y: auto; /* Scrollen erlauben */
}
select option {
  padding: 10px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
}
select option:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10000; /* Sicherstellen, dass das Menü im Vordergrund bleibt */
  display: none; /* Anfangs versteckt */
  list-style: none;
  padding: 10px;
  margin: 0;
}

.dropdown-menu.show-dropdown {
  display: block !important; /* Zeigt das Menü an, wenn es aktiv ist */
}

.dropdown-menu.show {
  display: block !important; /* Zeigt das Menü an, wenn es aktiv ist */
}
.dropdown-menu li {
  display: flex; /* Verwende Flexbox, um Checkbox und Label in einer Linie zu halten */
  align-items: center; /* Zentriert die Checkbox und das Label vertikal */
  padding: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #333; /* Sichtbare Textfarbe */
  background-color: #fff; /* Weißer Hintergrund für jede Option */
}

.dropdown-menu li:hover {
  background-color: #f1f1f1; /* Hervorhebung beim Hover */
}
.dropdown-menu li input[type="checkbox"] {
  margin-right: 10px; /* Fügt Abstand zwischen Checkbox und Label hinzu */
  flex-shrink: 0; /* Verhindert das Verkleinern der Checkbox */
}
.dropdown-menu li label {
  cursor: pointer; /* Zeigt den Pointer-Cursor an, um anzuzeigen, dass der Text auswählbar ist */
  white-space: nowrap; /* Verhindert, dass der Text umbrechen muss */
  flex-grow: 1; /* Das Label nimmt den restlichen Platz ein, um die Linie zu füllen */
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #333; /* Sicherstellen, dass der Text des Buttons sichtbar ist */
}

.dropdown-toggle::after {
  content: "\f078"; /* Unicode für FontAwesome Chevron Down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #333;
}
.custom-dropdown.open .dropdown-menu {
  display: block;
  transform: translateY(-50%) rotate(180deg);
}

/*header info box design*/
.info-box {
  background-color: #eef5ff;
  border-left: 4px solid #00c8c8;
  padding: 10px 15px;
  margin-top: 15px;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #006666;
  max-width: 800px;
  line-height: 1.5;
  word-break: break-word;
  margin-bottom: 20px;
}
.info-box i {
  margin-top: 2px;
}
