/* Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* Chat Container */
.chat-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/Background_chatbot_Professor_Evenaar.webp');
  background-size: cover;
  background-position: center;
}

/* Chat History */
.messages {
  position: absolute;
  width: 80%;
  max-width: 1379px;
  height: calc(100vh - 250px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 20px;
}

/* Message Styles */
.message {
  display: flex;
  align-items: center;
  width: 97%;
  background: linear-gradient(153.32deg, rgba(255, 255, 255, 0.3) -65.62%, rgba(255, 255, 255, 0.1) 83.28%);
  box-shadow: 0px 4px 24px -1px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(25px);
  border-radius: 15px;
  padding: 24px;
  color: #FFFFFF;
  position: relative;
  font-size: 1.5rem;
  line-height: 1.5;
}

.user-message {
  border: 1px solid #09C4D3;
}

.message-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 20px;
  margin-top: auto;
  margin-bottom:auto;
}

.bot-message .message-logo {
  background: linear-gradient(180deg, #14A4F7 0%, #0EBECB 58.85%, #07C6D6 100%);
}

.message-content {
  flex: 1;
  font-size: 1.5rem;
  line-height: 1.5;
}

/* Media Elements */

img {
  margin-top: 10px;
  height:450px;
  width:350px;
}

audio {
  width: 440px;
  height: 55px;
  margin-top: 10px;
}

video {
  width: 632px;
  height: 350px;
  margin-top: 10px;
}

/* Button within message */

button {
  margin-top: 10px;
  padding: 5px 10px;
  background: #09C4D3;
  border: none;
  border-radius: 5px;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s;
}

.message-content button {
  margin-top: 10px;
  padding: 5px 10px;
  background: #09C4D3;
  border: none;
  border-radius: 5px;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s;
}

.message-content button:hover {
  background-color: #07A6B3;
}

/* Input Group */
.input-group {
  position: absolute;
  width: 80%;
  max-width: 1380px;
  height: 60px;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.input-group input {
  flex: 1;
  height: 60px;
  background: #FFFFFF;
  border: 1px solid #09C4D3;
  border-radius: 45px;
  padding: 0 20px;
  font-size: 14px;
  color: #333333;
}

.input-group button {
  width: 192px;
  height: 60px;
  background: #09C4D3;
  border-radius: 45px;
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.input-group button:hover {
  background-color: #07A6B3;
}

/* Scrollbar Styles */
.messages::-webkit-scrollbar {
  width: 10px;
}

.messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
