/* ST Gallery Selection Styles */

.st-gallery-image-container {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.st-gallery-image-container.selected {
  border: 5px solid #68B42D;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

/* ST Gallery Selection Styles */

/* Bestehende Overlay-Styles */
.st-galerie-item-no {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff0;
  color: black;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  user-select: none;
  border: 2px solid transparent;
}

.st-galerie-item-no:hover {
  background: rgba(186, 121, 0, 0.9);
  transform: scale(1.05);
}

.st-galerie-item-no.selected {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border-color: #fff;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Container-Styles */
.st-gallery-image-container,
.st-galerie-item-img {
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.st-gallery-image-container.selected,
.st-galerie-item-img.selected {
  transform: scale(0.98);
  box-shadow: 0 0 0 3px #4CAF50;
  border-radius: 8px;
}

/* Button-Styles */
.st-gallery-proceed-button, .st-gallery-clear-button {
	position: fixed;
	right: 20px;
	padding: 5px 13px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1000;
	transition: all 0.3s ease;
	opacity: 0;
	visibility: hidden;
	transform: translateX(100px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.st-gallery-proceed-button {
  bottom: 63px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.st-gallery-proceed-button:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateX(0) scale(1.05);
  box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.st-gallery-clear-button {
  bottom: 20px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.st-gallery-clear-button:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  transform: translateX(0) scale(1.05);
  box-shadow: 0 6px 25px rgba(244, 67, 54, 0.4);
}

.st-gallery-proceed-button.visible,
.st-gallery-clear-button.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Benachrichtigungs-Styles */
.st-gallery-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  padding: 16px 20px;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInRight 0.4s ease-out;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 300px;
  max-width: 450px;
}

.st-gallery-notification-success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border-left: 4px solid #2e7d32;
}

.st-gallery-notification-warning {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  border-left: 4px solid #E65100;
}

.st-gallery-notification-info {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  border-left: 4px solid #0D47A1;
}

.st-gallery-notification span {
  flex: 1;
  line-height: 1.4;
}

.st-gallery-notification-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.st-gallery-notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bestätigungs-Modal Styles */
.st-gallery-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  animation: modalFadeIn 0.3s ease-out forwards;
}

.st-gallery-modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  animation: modalScaleIn 0.3s ease-out 0.1s forwards;
}

.st-gallery-modal-header {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 20px 24px;
  border-bottom: 1px solid #dee2e6;
}

.st-gallery-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #495057;
}

.st-gallery-modal-body {
  padding: 24px;
}

.st-gallery-modal-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #6c757d;
}

.st-gallery-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.st-gallery-modal-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.st-gallery-modal-btn-cancel {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.st-gallery-modal-btn-cancel:hover {
  background: #e9ecef;
  color: #495057;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.st-gallery-modal-btn-confirm {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.st-gallery-modal-btn-confirm:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

@keyframes modalFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes modalScaleIn {
  to {
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .st-gallery-proceed-button,
  .st-gallery-clear-button {
    right: 15px;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .st-gallery-notification {
    right: 15px;
    left: 15px;
    min-width: auto;
    max-width: none;
  }
  
  .st-gallery-modal-container {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .st-galerie-item-no {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* WDSB Extended Gallery: Root-Container (GCB + Selection/Loading-JS) */
#st-gallery-content-view.st-gallery-content-view {
  background-color: #fff;
  margin: 10px;
  position: relative;
}