#chat-pane {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr auto;
  grid-gap: 1rem;
  height: 100%;
}
#chat-pane #chat-window {
  grid-area: 1/1/2/2;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 1rem;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}
#chat-pane #chat-window .message {
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  max-width: 80%;
}
#chat-pane #chat-window .user {
  align-self: flex-start;
  background-color: #007bff;
  color: white;
  border-bottom-right-radius: 2px;
}
#chat-pane #chat-window .assistant {
  align-self: flex-end;
  background-color: #e9e9eb;
  color: #333;
  border-bottom-left-radius: 2px;
}
#chat-pane #chat-window .assistant .markdown-buffer {
  display: none;
}
#chat-pane #chat-window .assistant .markdown-body p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}
#chat-pane #chat-window .assistant .markdown-body p:last-child {
  margin-bottom: 0;
}
#chat-pane #chat-window .assistant .markdown-body ul, #chat-pane #chat-window .assistant .markdown-body ol {
  margin-top: 0;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
}
#chat-pane #chat-window .assistant .markdown-body ul li, #chat-pane #chat-window .assistant .markdown-body ol li {
  margin-bottom: 0.2rem;
}
#chat-pane #chat-window .assistant .markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}
#chat-pane #chat-window .assistant .markdown-body table th, #chat-pane #chat-window .assistant .markdown-body table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
}
#chat-pane #chat-window .assistant .markdown-body table th {
  background-color: #e2e2e4;
  font-weight: bold;
}
#chat-pane #chat-window .assistant .markdown-body table tr:nth-child(even) {
  background-color: #f8f8f9;
}
#chat-pane #chat-window .assistant .markdown-body strong {
  font-weight: 600;
}
#chat-pane #chat-window .assistant .markdown-body h1, #chat-pane #chat-window .assistant .markdown-body h2, #chat-pane #chat-window .assistant .markdown-body h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.25;
}
#chat-pane #chat-window .assistant .markdown-body h1 {
  font-size: 1.8rem;
}
#chat-pane #chat-window .assistant .markdown-body h2 {
  font-size: 1.6rem;
}
#chat-pane #chat-window .assistant .markdown-body h3 {
  font-size: 1.5rem;
}
#chat-pane #chat-window .assistant .markdown-body code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
}
#chat-pane #chat-form {
  grid-area: 2/1/3/2;
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
#chat-pane #chat-form.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#chat-pane #chat-form.disabled textarea {
  background-color: #eee;
}
#chat-pane #chat-form textarea {
  flex-grow: 1;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  overflow-y: hidden;
  min-height: 40px;
  max-height: 200px;
  font-family: inherit;
  font-size: inherit;
}
#chat-pane #chat-leerling-info {
  grid-area: 1/2/3/3;
  border-left: 1px solid #eee;
  padding-left: 1rem;
  overflow-y: auto;
}
#chat-pane #chat-leerling-info form fieldset {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  border: none;
}
#chat-pane #chat-leerling-info form fieldset .hidden {
  visibility: hidden;
}
#chat-pane #chat-leerling-info form fieldset label {
  font-weight: 600;
  font-size: 1.2rem;
}
#chat-pane #chat-leerling-info form fieldset input[type=number],
#chat-pane #chat-leerling-info form fieldset input[type=date],
#chat-pane #chat-leerling-info form fieldset input[type=text],
#chat-pane #chat-leerling-info form fieldset select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.2rem;
  width: 100%;
}
#chat-pane #chat-leerling-info form fieldset textarea {
  grid-column: 1/-1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-height: 80px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-backdrop .modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.modal-backdrop .modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.modal-backdrop .modal-content p {
  margin-bottom: 2rem;
  font-size: 1.3rem;
  line-height: 1.4;
}
.modal-backdrop .modal-content .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-backdrop .modal-content .modal-actions .button {
  width: 100%;
  padding: 1rem;
}

/*# sourceMappingURL=chat.css.map */
