@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Outer wrapper: also sets the background and font */
.main-container {
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* Main Title */
.title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

/* Flex container for form (left) and image (right) */
.flex-container {
  display: flex;
  gap: 2rem;
}

/* Columns within the flex container */
.form-col,
.image-col {
  flex: 1;
  min-width: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
  }
  .form-col,
  .image-col {
    margin-bottom: 1rem;
  }
}

/* Make the form stand out (border, background, subtle shadow) */
#t2i-form {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

/* Labels and form inputs */
.form-label {
  display: block;
  margin: 0.75rem 0 0.5rem 0;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.styled-input,
.styled-textarea {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #f9f9f9;
  color: #333;
}

.styled-input:focus,
.styled-textarea:focus {
  border-color: #3c82f6;
  box-shadow: 0 0 0 3px rgba(60, 130, 246, 0.1);
}

.styled-textarea {
  resize: vertical;
}

/* Width/Height row */
.size-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.size-col {
  flex: 1;
}

/* Radio options */
.options {
  margin: 0.75rem 0 1rem 0;
  display: flex;
  align-items: center;
}
.options label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #555;
  margin-right: 1rem;
}
.options input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: #3c82f6;
}

/* Generate button styles */
.gradient-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(45deg, #3c82f6, #6a9df7);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: transform 0.1s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(60, 130, 246, 0.2);
}
.gradient-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(60, 130, 246, 0.3);
}
.gradient-btn:active {
  transform: scale(0.98);
}
.generating-btn {
  background: #e0e0e0 !important;
  cursor: not-allowed !important;
  position: relative;
  box-shadow: none !important;
}
.generating-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; 
  top: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* Optional "..." blinking effect */
@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.blinking-dots::after {
  content: "...";
  display: inline-block;
  animation: blink 1.4s infinite;
}

/* Image column preview */
.image-col h2 {
  margin-top: 0;
  font-size: 1.25rem;
  text-align: center;
}
.placeholder-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  opacity: 0.7;
}
.generated-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border: 3px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Download button for generated image */
.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #10b981, #34d399);
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.download-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}
.download-btn:active {
  transform: scale(0.98);
}
