/* TezImageSelect component styles */

.tez-imageselect-container {
  /* Extends shared styles from form-fields.css */
}

.tez-imageselect-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.tez-imageselect-label-container {
  flex: 1;
}

.tez-imageselect-field-container {
  flex: 1;
  max-width: 300px;
}

.tez-imageselect-preview {
  width: 100%;
  height: 150px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tez-imageselect-preview:hover {
  border-color: rgba(231, 76, 60, 0.5);
  background-color: rgba(0, 0, 0, 0.4);
}

.tez-imageselect-preview.drag-over {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  transform: scale(1.02);
}

.tez-imageselect-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #888;
  transition: all 0.3s ease;
}

.tez-imageselect-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.tez-imageselect-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.tez-imageselect-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.tez-imageselect-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 6px;
}

.tez-imageselect-preview:hover .tez-imageselect-overlay {
  opacity: 1;
}

.tez-imageselect-change-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* Error state */
.tez-imageselect-container.error .tez-imageselect-preview {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

.tez-imageselect-container.error .tez-imageselect-placeholder {
  color: #e74c3c;
}

/* Disabled state */
.tez-imageselect-container.disabled .tez-imageselect-preview {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.tez-imageselect-container.disabled .tez-imageselect-placeholder {
  opacity: 0.5;
}

/* Has image state */
.tez-imageselect-container.has-image .tez-imageselect-preview {
  border-style: solid;
  border-color: rgba(231, 76, 60, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .tez-imageselect-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .tez-imageselect-field-container {
    max-width: none;
  }
  
  .tez-imageselect-preview {
    height: 120px;
  }
} 