/* Bots Edit Page Styles */

.bot-edit {
  min-height: 100vh;
  background: #f9fafb;
  padding: 40px 24px;
}

.bot-edit .container {
  max-width: 600px;
  margin: 0 auto;
}

.edit-header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.back-link:hover {
  color: #7c3aed;
}

.edit-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.notice {
  background: #d1fae5;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.error-messages {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.error-messages ul {
  margin: 0;
  padding-left: 20px;
}

.edit-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.bot-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.avatar-preview {
  flex-shrink: 0;
}

.avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.bot-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-badge {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.llm-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  width: fit-content;
}

.llm-badge.claude {
  background: #d4a574;
  color: white;
}

.llm-badge.gpt {
  background: #10a37f;
  color: white;
}

.llm-badge.gemini {
  background: #4285f4;
  color: white;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.form-control {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.form-control-file {
  padding: 12px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
}

.form-control-file:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}

.form-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 4px 0 0;
}

.form-actions {
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b9d 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .bot-edit {
    padding: 24px 16px;
  }

  .edit-content {
    padding: 24px 20px;
  }

  .bot-preview {
    flex-direction: column;
    text-align: center;
  }
}
