body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f7fa;
  color: #333;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.create-section {
  display: flex;
  flex-direction: column;
}

.tabs-container {
  margin-bottom: 1rem;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 0;
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  transform: none;
}

.tab-button:hover {
  color: #3498db;
  background-color: #f8f9fa;
  transform: none;
}

.tab-button.active {
  color: #3498db;
  border-bottom-color: #3498db;
  background-color: #fff;
}

.tab-content {
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.form-section, .monitor-section {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  margin-top: 0;
  color: #34495e;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3498db;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: 600;
}

button:hover {
  transform: translateY(-2px);
}

.submit-btn {
  background-color: #3498db;
  color: white;
  width: 100%;
}

.submit-btn:hover {
  background-color: #2980b9;
}

.monitor-controls {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.monitor-controls input {
  flex: 1;
}

.subscribe-btn {
  background-color: #27ae60;
  color: white;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background-color: #219a52;
}

.unsubscribe-btn {
  background-color: #e74c3c;
  color: white;
  white-space: nowrap;
}

.unsubscribe-btn:hover {
  background-color: #c0392b;
}

.unsubscribe-btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  transform: none;
}

.status-indicator {
  text-align: center;
  margin: 1rem 0;
}

.status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status.connected {
  background-color: #d5f4e6;
  color: #27ae60;
}

.status.disconnected {
  background-color: #fadbd8;
  color: #e74c3c;
}

.response-section {
  margin-top: 1.5rem;
}

h3 {
  margin-bottom: 1rem;
  color: #34495e;
}

.response-display {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 8px;
  min-height: 200px;
  max-height: 600px;
  overflow-y: auto;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.2;
  word-wrap: break-word;
}

.no-data {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  margin: 2rem 0;
}

.response-content {
  color: #2c3e50;
  line-height: 1.6;
}

.invocation-data {
  background-color: #e8f4f8;
  border-left: 4px solid #3498db;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.invocation-data h4 {
  margin: 0 0 0.5rem 0;
  color: #2980b9;
}

.invocation-data p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.chatbot-response-section {
  margin-top: 1.5rem;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
}

.status-display {
  background-color: white;
  border-radius: 4px;
  padding: 1rem;
  min-height: 60px;
}

.status-display .success {
  color: #27ae60;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-display .error {
  color: #e74c3c;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-display .warning {
  color: #f39c12;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-display .info {
  color: #3498db;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.status-display .processing {
  color: #9b59b6;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-display code {
  background-color: #f1f3f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  body {
    padding: 10px;
  }
  
  .form-section, .monitor-section {
    padding: 1.5rem;
  }
  
  .monitor-controls {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .monitor-controls input {
    margin-bottom: 0;
  }
}
