/* Input background image styles */
.input-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  z-index: -1;
  opacity: 0.8;
  transition: all 0.3s ease;
  cursor: pointer;
}

.input-background-image::after {
  content: 'Click to show alert';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-background-image:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.input-background-image.hidden {
  opacity: 0;
  pointer-events: none;
}

.bg-image-toggle-btn {
  padding: 10px 15px;
  background: linear-gradient(135deg, #4a6eff 0%, #5e81ff 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bg-image-toggle-btn i {
  font-size: 1.1em;
}

.bg-image-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 110, 255, 0.35);
}

.bg-image-toggle-btn.active {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.input-wrapper {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.input-wrapper:hover .input-background-image::after {
  opacity: 1;
}

/* Adjust the input area elements to have proper z-index */
.input-area {
  position: relative;
  z-index: 1;
}

.input-area input,
.input-area button {
  position: relative;
  z-index: 2;
}