#test_mode_indicator {
  position: fixed;
  width: fit-content;
  height: min-content;
  color: red;
  background-color: rgba(255, 255, 255, 0.7);
  font-weight: bolder;
  font-size: x-large;
  z-index: 999999;
  pointer-events: none;
}

/* ToggleablePasswordInputWidget */

.toggleable-password .toggle-addon {
    display: flex;
    right: 0;
    padding-right: 30px;
    padding-top: 10px;
    max-width: 40px;
    background-color: lightgrey;
    border: silver 1px solid;
}

/* TranslatableFieldWidget */
.translation-toggle-widget input[type="checkbox"]:not(:checked) + .field {
    display: none;
}

.translation-toggle-widget .language-labels {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.translation-toggle-widget .language-labels label {
    background: #eee;
    padding: 0.1em 0.35em;
    font-weight: bold;
    cursor: pointer;
}

.translation-toggle-widget .language-labels label.active {
    background: #0b5ed7;
    color: white;
}

.translation-toggle-widget .language-fields > div {
    margin-bottom: 15px;
}

.translation-toggle-widget .language-title {
    margin-bottom: 5px;
}

/* ImageChooserWidget */
.image-chooser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 8px;
}

.image-chooser-item {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ddd;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.image-chooser-item:hover {
  box-shadow: 0 0 0 2px #0077cc;
  transform: translateY(-2px);
}

.image-chooser-thumbnail {
  background: #fff;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-chooser-thumbnail img {
  height: 150px;
  width: 150px;
  object-fit: contain;
}

.image-chooser-caption {
  padding: 6px 8px;
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}


/* Hintergrund-Overlay */
#popup-modal {
    position: fixed;
    inset: 0; /* top, right, bottom, left = 0 */
    background: rgba(0, 0, 0, 0.5); /* halbtransparent schwarz */
    display: none; /* per JS ein-/ausblenden */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal-Box */
#popup-modal .modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.2s ease-out;
    background-color: white;
}

/* Close-Button */
#popup-close {
    margin-top: 15px;
    padding: 6px 12px;
    background: #dc3545; /* rot */
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

#popup-close:hover {
    background: #b02a37;
}

/* kleine Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

