/*
 * 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.
 *

 */

/* Werk Edit Styles */
.image-tooltip {
  position: fixed;
  z-index: 9999;
  background: white;
  border: 3px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 12px;
  pointer-events: none;
  max-width: 500px;
  max-height: 500px;
}

.image-tooltip img {
  width: 100%;
  height: auto;
  max-width: 480px;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
}

.hover-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Verwaltung: Bild-Tooltip beim Hover über Bild-Icon */
.werk-tooltip-image-only {
  position: fixed !important;
  z-index: 99999 !important;
  padding: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid #ddd;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: block !important;
}

.werk-tooltip-image-only.show {
  opacity: 1;
  transform: scale(1);
}

.tooltip-image-container {
  position: relative;
  width: 220px;
  min-height: 160px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f8f9fa;
}

.tooltip-image-container img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: top;
}

.tooltip-overlay-button {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(255,255,255,0.95);
  color: #212529;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-error-container {
  width: 220px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
}

.hover-image-icon {
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.hover-image-icon:hover {
  transform: scale(1.2);
  color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.1);
}
