* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: white;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Camweara Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 12px;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #25c6ce;
  text-shadow: 0 2px 4px rgba(37, 198, 206, 0.2);
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.title {
  font-size: 2.8rem;
  color: black;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.subtitle {
  font-size: 1.3rem;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 300;
  margin-bottom: 20px;
}

.input-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 12px;
}

.prompt-textarea {
  width: 100%;
  min-height: 60px;
  max-height: 200px;
  padding: 18px 22px;
  font-size: 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  resize: vertical;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.prompt-textarea:focus {
  outline: none;
  border-color: #25c6ce;
  box-shadow: 0 0 0 3px rgba(37, 198, 206, 0.1);
  background: white;
}

.char-counter {
  position: absolute;
  right: 15px;
  bottom: 12px;
  font-size: 0.9rem;
  color: #666;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
}

.generate-btn {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.2rem;
  font-weight: 600;
  background: #25c6ce;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 198, 206, 0.3);
}

.generate-btn:hover {
  /* background: #1fb3bb; */
  border: 1px solid #1fb3bb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 198, 206, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

.generate-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-icon {
  font-size: 1.3rem;
}

.result-section {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.loading {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #25c6ce;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading p {
  font-size: 1.1rem;
  color: #4a5568;
  margin: 10px 0;
}

/* Updated image container - no background styling */
.image-container {
  padding: 20px 0;
  text-align: center;
}

/* Updated generated image - full width display */
.generated-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.generated-image:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.download-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: #25c6ce;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 198, 206, 0.3);
}

.download-btn:hover {
  /* background: #1fb3bb; */
  border: 1px solid #1fb3bb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 198, 206, 0.4);
}

.error-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #e53e3e;
  font-size: 1.1rem;
  border-left: 5px solid #e53e3e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px 15px 20px;
  }
  
  .logo {
    height: 35px;
  }
  
  .brand-name {
    font-size: 1.5rem;
  }
  
  .title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .input-section {
    padding: 25px;
  }
  
  .generated-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-section {
    margin-bottom: 20px;
    gap: 8px;
  }
  
  .logo {
    height: 30px;
  }
  
  .brand-name {
    font-size: 1.3rem;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  .input-section {
    padding: 20px;
  }
  
  .prompt-textarea {
    font-size: 1rem;
    padding: 15px;
  }
}
