body {
  background-color: #e0e0e0; /* Ein helles Grau */
}

.border-dashed {
    border-style: dashed !important;
}

.sleek-card {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.2;
}

.secured-link-container {
    display: inline-block;
    margin: 1px 0;
    position: relative;
}

.secured-link-toggle {
    cursor: pointer;
    color: #0d6efd;
    text-decoration: underline;
}

.secured-link-content {
    display: none;
    position: absolute;
    z-index: 100;
    width: 380px;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/**
 *  Custom conten container on page background
 */
.custom-container {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background-color: white;
}

/**
 *  Custom Accordion Cards
 */
.custom-accordion-card {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 0.375rem;
}

.custom-accordion-header {
  cursor: pointer;
  position: relative;
  margin: 0;
}

.custom-accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  text-align: left;
  border: 0;
  overflow-anchor: none;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.custom-accordion-button::after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.3s ease;
}

/* Versteckte Checkbox für CSS-only Toggle */
.custom-accordion-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

/* Animation für den Collapse-Bereich */
.custom-accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

/* Wenn die Checkbox gecheckt ist, zeige den Inhalt mit Animation */
.custom-accordion-checkbox:checked ~ .custom-accordion-collapse {
  max-height: 1000px; /* Großer Wert, damit der Inhalt vollständig angezeigt wird */
  transition: max-height 0.5s ease-in;
}

/* Drehe den Pfeil, wenn geöffnet */
.custom-accordion-checkbox:checked ~ .custom-accordion-header .custom-accordion-button::after {
  transform: rotate(-180deg);
}

/* Verbesserter Card-Body mit Animation */
.custom-card-body {
  padding: 0.25rem 0.5rem;
  opacity: 1;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: white;
}

/* Zeige Card-Body mit Animation, wenn geöffnet */
.custom-accordion-checkbox:checked ~ .custom-accordion-collapse .custom-card-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

/* Styling für die verschiedenen Farbvarianten */
.custom-accordion-button.bg-primary,
.custom-accordion-button.bg-secondary,
.custom-accordion-button.bg-success,
.custom-accordion-button.bg-info {
  color: #fff;
}

.custom-accordion-button.bg-warning {
  color: #000;
}

/* Anpassung des Pfeils für dunkle Hintergründe */
.custom-accordion-button.bg-primary::after,
.custom-accordion-button.bg-success::after,
.custom-accordion-button.bg-secondary::after,
.custom-accordion-button.bg-info::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Subtile Hover-Effekte */
.custom-accordion-button:hover {
  filter: brightness(105%);
}

@keyframes flash {
    0% { background-color: transparent; }
    25% { background-color: rgba(0, 123, 255, 0.5); }
    50% { background-color: rgba(0, 123, 255, 0.8); }
    75% { background-color: rgba(0, 123, 255, 0.5); }
    100% { background-color: transparent; }
}

.flash-animation {
    animation: flash 1s ease-in-out;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.pulse-shadow {
    animation: pulse-shadow 1s ease-in-out;
}

/* Loading Overlay Styles */
#global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#global-loading-overlay .overlay-content {
    text-align: center;
    color: white;
}

#global-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

#global-loading-overlay .overlay-message {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* DataTable Loading Overlay */
.dt-bootstrap5 {
    position: relative;
    min-height: 150px; /* Mindesthöhe für den Container */
}

.datatable-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    display: none;
}

.datatable-loading-overlay .overlay-content {
    position: absolute;
    top: 5px; /* Abstand von oben */
    left: 50%;
    transform: translateX(-50%);
}

.datatable-loading-overlay .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Verstecke den Standard-DataTables-Ladeindikator */
.dataTables_processing {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Zusätzliche Regel für den Fall, dass der Indikator dynamisch hinzugefügt wird */
div.dataTables_wrapper div.dataTables_processing {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
