/* Dream modal styles */
.dream-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.dream-modal-content {
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.dream-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #777;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.dream-close-btn:hover {
  color: #e74c3c;
  background: rgba(0,0,0,0.05);
}

.dream-bubble-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

.experimental-tag {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff5757;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  transform: rotate(10deg);
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

.dream-bubble {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  color: white;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  max-width: 340px;
  box-shadow: 0 10px 25px rgba(161, 140, 209, 0.3);
  position: relative;
  animation: floatBubble 3s ease-in-out infinite;
}

.dream-bubble:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  transform: translateX(-50%) rotate(45deg);
}

.dream-icon {
  font-size: 36px;
  margin-bottom: 15px;
  animation: sparkle 2s ease infinite;
  color: rgba(255, 255, 255, 0.9);
}

.dream-bubble h3 {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dream-bubble p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.dream-input-container {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#dream-input {
  flex-grow: 1;
  padding: 14px 20px;
  border: 2px solid rgba(161, 140, 209, 0.3);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

#dream-input:focus {
  outline: none;
  border-color: #a18cd1;
  box-shadow: 0 0 0 3px rgba(161, 140, 209, 0.2);
}

#dream-generate-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(161, 140, 209, 0.3);
}

#dream-generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(161, 140, 209, 0.4);
}

#dream-generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sparkle {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}