//import markdown.scss file
@use 'markdown';
@use 'recording';
@import url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css');

// Colours
// TODO: Colours should be in a separate file
$primary: #007bff;
$secondary: #6c757d;
$success: #28a745;
//TODO: One for text area and one for input
.beautiful-input {
  border: none;
  padding: 10px 10px;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  width: 100%;
}
.beautiful-input:focus {
  box-shadow: 0px 0px 20px 7px $primary;
}

.beautiful-button {
  display: inline-block;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: $primary;
  border: none;
  box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  // Position text in middle of button
  width: fit-content;

  cursor: pointer;
}

.beautiful-button:hover {
  background-color: $primary;
}

.beautiful-button:active {
  background-color: $primary;
  box-shadow: none;
}

.file-move-suggestions {
  // Bold text
  font-weight: 900;
}

// Chat styles
%last-at-bottom {
  display: flex;
  flex-direction: column;
  & > *:last-child {
    order: 9999;
  }
}

%chat-message {
  width: 100%;
  border-block-end: 2px solid #ddd;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.chat-message-user {
  @extend %chat-message;
  background-color: #fff0;
}

.chat-message-ai {
  @extend %chat-message;
  background-color: #ffffff10;
}

.conversation {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.dialogue {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  overflow-y: auto;
}

.no-padding {
  padding: 0;
}
