.etg-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.etg-form-wrapper {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.etg-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
}

.etg-form {
  margin-bottom: 30px;
}

.etg-field-group {
  margin-bottom: 20px;
}

.etg-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 16px;
}

.etg-textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.etg-textarea:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.etg-char-counter {
  text-align: right;
  margin-top: 5px;
  font-size: 14px;
  color: #6c757d;
}

.etg-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.etg-col {
  flex: 1;
}

.etg-select,
.etg-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.etg-select:focus,
.etg-input:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.etg-generate-btn {
  width: 100%;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.etg-generate-btn:hover {
  background: linear-gradient(135deg, #4752c4, #3c4693);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

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

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

.etg-loading {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 8px;
  margin-top: 20px;
}

.etg-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5865f2;
  border-radius: 50%;
  animation: etg-spin 1s linear infinite;
  margin: 0 auto 15px;
}

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

.etg-results {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.etg-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f4;
}

.etg-results-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 22px;
}

.etg-copy-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.etg-copy-btn:hover {
  background: #218838;
}

.etg-titles-list {
  display: grid;
  gap: 12px;
}

.etg-title-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #5865f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.etg-title-item:hover {
  background: #e9ecef;
}

.etg-title-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.4;
  color: #2c3e50;
}

.etg-title-copy {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #6c757d;
  font-size: 18px;
  transition: color 0.3s ease;
}

.etg-title-copy:hover {
  color: #5865f2;
}

.etg-error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
  border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .etg-container {
    padding: 15px;
  }

  .etg-form-wrapper {
    padding: 20px;
  }

  .etg-title {
    font-size: 24px;
  }

  .etg-row {
    flex-direction: column;
    gap: 15px;
  }

  .etg-results-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .etg-title-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .etg-title-copy {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .etg-form-wrapper {
    padding: 15px;
  }

  .etg-title {
    font-size: 20px;
  }

  .etg-generate-btn {
    font-size: 16px;
    padding: 15px 25px;
  }
}
