html,
body {
  height: 100%;
}

body {
  background-color: #f5f5f5;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.chat-interface {
  max-width: 600px;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.chat-container {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 250px);
}

.chat-message {
  max-width: 75%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-message p {
  margin: 0;
}

.sent {
  align-self: flex-end;
  background-color: #dcf8c6;
}

.received {
  align-self: flex-start;
  background-color: #e0e0e0;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #e0e0e0;
}

.chat-input textarea {
  flex: 1;
  resize: none;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.chat-input button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.chat-input button i {
  font-size: 16px;
}

.card-header h2 {
  margin-bottom: 0.25rem;
}

.card-header h4 {
  font-size: 1rem;
  color: #6c757d;
}

@media (max-height: 600px) {
  .chat-container {
    height: calc(100vh - 150px);
  }
}

.alert pre {
  margin-bottom: 0;
}

.alert p:last-child {
  margin-bottom: 0;
}

.alert ul,
.alert ol {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.alert blockquote {
  border-left: 3px solid #dee2e6;
  padding-left: 1rem;
  margin-left: 0;
  color: #6c757d;
}

.alert table {
  border-collapse: collapse;
  margin-bottom: 1rem;
  width: 100%;
}

.alert th,
.alert td {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
}

.alert th {
  background-color: #f8f9fa;
}

.input-group textarea {
  border-radius: 0.375rem;
  transition: height 0.1s ease-out;
  min-height: 40px;
  line-height: 1.5;
  padding: 0.5rem;
}

.input-group .btn {
  margin-left: 0.5rem;
  height: 40px;
  width: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.input-group .btn i {
  font-size: 1rem;
}

/* Form styles */
.form-control-wrapper input,
.form-control-wrapper select,
.form-control-wrapper textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-wrapper input:focus,
.form-control-wrapper select:focus,
.form-control-wrapper textarea:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.errorlist {
  color: #dc3545;
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Card styles for forms */
.card.shadow-sm {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  margin-bottom: 2rem;
}

.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
}