body {
  height: 100%;
  width: 100%;
}

#prompt {
  min-width: 240px;
}

/* START uikit overrides */
.uk-modal-close.hide-modal {
  padding: 10px;
  font-size: 12px;
  line-height: 12px;
  position: fixed;
  right: 0;
  top: 0;
  cursor: pointer;
}

.module-link:hover {
  text-decoration-line:none;
}

.uk-card-header {
  border-bottom: none !important;
}

.uk-card-footer {
  border-top: none !important;
}
/* END */

.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  display: flex;
}

.modal-content {
  background-color: #fefefe;
  padding: 30px;
  border: 1px solid #888;
  width: 90%; /* Or a fixed size e.g. '600px' */
  max-width: 800px; /* Maximum width of the modal */
  height: auto; /* Height based on content*/
  max-height: 90vh;
  overflow-y: auto; /* Enable scroll if content is too long*/
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  border-radius: 5px; /* Optional: for rounded corners */
}

.close-modal,
.close-modal-captivate {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  height: 28px;
  width: 28px;
  line-height: 28px;
  text-align: center;
}

.iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px); 
  z-index: 999; /* below the modal but above everything else */
}

#chat-history {
  min-width: 23vw;
}

#ai-chat,
[id*='modal-content-wrap-'] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#ai-chat-wrap {
  display: flex;
  flex-direction: column;
  max-height: 78vh;
}

#ai-chat {
  max-height: 95%;
  flex: 1 1 auto;
  overflow: auto;
  flex-direction: column;
}

#assist {
  margin-top: 10px;
}

.chat-prompt {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt {
  align-self: flex-end;
  color: white;
  background-color: #a1ac8c;
}

.ai-resp {
  color: white;
  background-color: #8c97ac;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

zero-md {
  width: 100%;
}

.prompt,
.ai-resp {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
}

.show-chat {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Keep at bottom for overrides */
.hidden {
  display: none;
}
