@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  /* background-image: url("https://www.centreeatondemontreal.com/media//v1/396/2022/09/CEM_300x60_7pxPadding-01.svg"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  width: 20%; /* Set a fixed width to make the sidebar narrower */
  background: rgba(0, 0, 0, 0.7); /* Translucent black background */
  color: #fff;
  border-radius: 8px;
}

#sidebarMessage {
  max-height: 450px; /* Adjust based on the available space */
  overflow-y: auto;  /* Adds a vertical scrollbar if content overflows */
  padding: 8px;      /* Adds padding for better readability */
  font-size: 14px;   /* Adjust the font size to fit more content */
  line-height: 1.6;  /* Increase line height for better readability */
  background-color: rgba(0, 111, 32, 0.6); /* Keeps the translucent black background */
  color: white;      /* Keeps the text color consistent with the rest */
  border-radius: 8px; /* Adds rounded corners for a clean look */
}


.actionRow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-section {
  margin-top: auto; /* Align to the bottom of the sidebar */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.material-select {
  padding: 8px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  width: 100%; /* Fit within the sidebar width */
}


.content {
  margin-left: 320px; /* Leave space for the sidebar */
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures alignment of video, input, and transcript */
  gap: 24px;
  overflow-y: auto;
}

.videoSectionWrap {
  position: relative;
  padding: 0; /* Remove padding to ensure transparency */
  background: none; /* No background to keep it fully transparent */
}

.videoWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none; /* Ensures video container has no background */
}

.videoWrap .videoEle {
  width: 100%;
  max-height: 400px;
  border-radius: 10px;
  border: none; /* No border to keep transparency clean */
  background: transparent; /* Set video element background to transparent */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Remove shadow for complete transparency */
}

.material-card {
  background-color: rgba(0, 0, 0, 0.75); /* Translucent black */
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.material-button {
  display: inline-block;
  padding: 0 16px;
  border-radius: 8px;
  height: 40px;
  background-color: #3b6782; /* Green */
  border: none;
  color: #fff;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  transition-duration: 0.4s;
}

.inputRow {
  display: flex;
  align-items: center;
  gap: 12px; /* Add some space between the input and buttons */
}

.material-input {
  flex: 1; /* Ensure the input takes up the available space */
  height: 40px;
  padding: 0 12px;
  font-size: 16px;
  width: 100%; /* Ensure input fields take up available width */
  box-sizing: border-box;
}

.material-icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3b6782; /* Match color with other buttons */
  color: #fff;
  border: none;
  cursor: pointer;
  transition-duration: 0.4s;
}

.material-icon-button:hover {
  background-color: #0b9aca;
}


.material-button:hover {
  background-color: #0b9aca;
}

.material-status {
  padding: 12px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
  color: #fff;
  border-radius: 8px;
  line-height: 1.6;
  margin-top: 16px;
}


.chatInputRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px; /* Adds spacing between input and buttons */
  flex-wrap: wrap;
}

.material-icon-button:focus {
  box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.4); /* Purple outline when focused */
}

.material-icon-button .material-icons {
  font-size: 24px; /* Adjust icon size */
}

.chatTranscriptWrap {
  max-height: 300px; /* Limit height for the chat transcript area */
  overflow-y: hidden;  /* Enable vertical scroll if content exceeds */
  overflow-x: hidden; /* Disable horizontal scroll */
  padding: 10px;
  background: rgba(0, 0, 0, 0.5); /* Keep the translucent black background */
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
}

h3 {
  margin-bottom: 16px;
  font-weight: 500;
}

.stream-quality {
  top: 50px;
}

/* Add animation for listening button */
@keyframes pulse {
   0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.listening {
  animation: pulse 1s infinite;
}

.videoSectionWrap .hide {
  display: none;
}

.videoSectionWrap .show {
  display: flex;
}

.hide {
  display: none;
}

.show {
  display: flex;
}

#mediaElement {
  position: relative;
  z-index: 1; /* Ensure it is visible above other elements */
}
#canvasElement {
  position: absolute;
  z-index: 2; /* Canvas should layer above video when used */
}

.chat-transcript {
  max-height: 200px; /* Set the maximum height of the chat transcript area */
  overflow-y: auto; /* Allow vertical scrolling */
  padding: 12px;
  background: rgba(0, 0, 0, 0.6); /* Translucent black background */
  color: #fff;
  border-radius: 8px;
}

.chat-message {
  margin-bottom: 8px;
}

.user-message {
  color: #4caf50; /* Green for user messages */
}

.ai-message {
  color: #ffa500; /* Orange for AI messages */
}

.preset-pill {
  padding: 8px 16px;
  border-radius: 16px;
  background-color: #2196f3;
  color: white;
  border: none;
  cursor: pointer;
  margin: 4px;
  transition: background-color 0.3s ease;
}

.preset-pill:hover {
  background-color: #1976d2;
}

/* Authentication Section Styling */
.auth-section {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.auth-section h3 {
  margin-bottom: 30px;
  font-weight: 500;
  color: #424242;
}

.auth-error {
  margin-top: 20px;
  color: #f44336;
  font-weight: 500;
}