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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  line-height: 1.5;
  color: #333;
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #f3f4f6, #e5e7eb);
  padding: 1rem;
}

.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.card-header {
  padding: 1.5rem;
  text-align: center;
}

.config-panel .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.header-content {
  display: flex;
  align-items: center;
}

.icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.config-panel .icon {
  margin-bottom: 0;
  margin-right: 1rem;
}

.settings-icon {
  width: 2rem;
  height: 2rem;
  color: #2563eb;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #6b7280;
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#manage-faqs {
  margin-bottom: 2rem;
}

.btn {
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #2563eb;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #1d4ed8;
}

.btn-logout {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.btn-logout:hover {
  background-color: #dc2626;
}

.config-panel {
  max-width: 600px;
}

.upload-form {
  margin-bottom: 2rem;
}

.file-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #e5e7eb;
  color: #374151;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

input[type='file'] {
  display: none;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.document-list ul {
  list-style-type: none;
  padding: 0;
}

.document-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

#faq-list ul {
  list-style-type: none;
  padding: 0;
}

#faq-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.btn-delete {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-edit {
  background-color: #2563eb;
  text-decoration: none;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-delete:hover {
  background-color: #dc2626;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .card,
  .config-panel {
    max-width: 100%;
  }
}

.file-list {
  margin-top: 1rem;
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.file-item {
  background-color: #f3f4f6;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.file-item:last-child {
  margin-bottom: 0;
}

#feed-url {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#feed-url input[type='text'], #chatbot-url {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

#feed-url button, #copy-chatbot-url {
  padding: 0.75rem 1.5rem;
  background-color: #2563eb;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

#feed-url button:hover, #copy-chatbot-url:hover {
  background-color: #1d4ed8;
}

