*{
  box-sizing: border-box;
}
/* General Layout */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #F2EEEE;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  max-width: 70vw;
  margin: 0 auto;
  padding: 20px;
}

#chatMessages {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  white-space: pre-wrap;
  max-height: 70vh;
  overflow-y: auto;
  width: 100%;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

#chatMessages p, #chatMessages li {
  margin: -5px 0;
}

.loading {
  display: none;
  margin-top: 20px;
}

.progress-container {
  display: none;
  margin-top: 20px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #4CAF50;
  width: 0%;
  transition: width 0.3s ease-in-out;
}

.progress-text {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
}

#uploadSection, #chatSection {
  display: none;
  background-color: #fff;
  padding: 20px 40px 40px 40px;
  border-radius: 12px;
  text-align: center;
}

.chat-input-container {
  display: flex;
  margin-top: 20px;
  padding: 10px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#chatInput {
  flex-grow: 1;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-right: 10px;
}

#sendMessageBtn {
  padding: 12px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#sendMessageBtn:hover {
  background-color: #45a049;
}

.message {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-message {
  background-color: #e6f7ff;
  text-align: right;
}

.bot-message {
  background-color: #f1f1f1;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.greeting {
  font-size: 1.2em;
  font-weight: bold;
}

#clearRecordsBtn {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 10px 15px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none; /* Hide by default */
}

#uploadForm button[type="submit"]{
  display: none;
}

/* File Upload Box */
#uploadForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 50px;
  gap: 10px;
  border: 1px dashed #972E24;
  border-radius: 8px;
  margin-top: 20px;
}

#uploadForm input[type="file"] {
  display: none;
}

#uploadForm label {
  background: #FFD066;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0px 8px 28px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

#uploadForm label:hover {
  background: #FFC107;
}

/* Buttons */
button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  cursor: pointer;
} 