* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IBM Plex Sans', sans-serif;
}

.chat-container h1, .chat-container h2, .chat-container h3, .chat-container h4, .chat-container h5, .chat-container h6, .chat-container ul, .chat-container ol, .chat-container p {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.chat-container h1:first-child, .chat-container h2:first-child, .chat-container h3:first-child, .chat-container h4:first-child, .chat-container h5:first-child, .chat-container h6:first-child, .chat-container ul:first-child, .chat-container ol:first-child, .chat-container p:first-child {
  margin-top: 0;
}

.chat-container h1:last-child, .chat-container h2:last-child, .chat-container h3:last-child, .chat-container h4:last-child, .chat-container h5:last-child, .chat-container h6:last-child, .chat-container ul:last-child, .chat-container ol:last-child, .chat-container p:last-child {
  margin-bottom: 0;
}

.chat-container ol, .chat-container ul{
  padding-left: 2rem;
}

.chat-container ol li {
  list-style: decimal;
}

.chat-container ul li {
  list-style: disc;
}

body {
  background-color: #0A0A20;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  flex-shrink: 0;
}

.provias {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.provias span{
  color: #00e673;
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1024px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.welcome-container {
  text-align: center;
  padding: 1.5rem;
}

.welcome-title {
  font-size: 2.25rem;
  color: #00e673;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.file-info {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem 1rem;
  display: none;
  flex-shrink: 0;
}

.file-info.active {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-icon {
  width: 24px;
  height: 24px;
  background: #00e673;
  border-radius: 6px;
}

.file-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.upload-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4em;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.upload-area svg {
  margin-bottom: 1rem;
}

.upload-area.drag-over {
  border-color: #00e673;
  background: rgba(0, 230, 115, 0.1);
}

.upload-area.hidden {
  display: none;
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  display: none;
}

.chat-container.active {
  display: block;
}

.wrapper-message-user {
  text-align: right;
}

.message {
  max-width: 70%;
  margin-bottom: 20px;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  word-wrap: break-word;
  display: inline-block;
}

.bot-message {
  background: rgba(255, 255, 255, 0.05);
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.user-message {
  background: #00e673;
  color: #0A0A20;
  margin-left: auto;
  text-align: left;
}

.input-container {
  padding: 2rem 0 4rem;
  flex-shrink: 0;
}

.input-group {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 8px;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.input-group input:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.4);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
  align-items: center;
  background: #00e673;
  display: flex;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  justify-content: center;
  transition: all 0.3s ease;
  color: #0A0A20;
  font-weight: 500;
  height: 48px;
  width: 48px;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
  background: #00ff80;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  flex-direction: column;
  color: white;
  font-size: 18px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #00e673;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.loading-bot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #00e673;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.details{
  padding: 2rem 0 4rem;
}

.details h2{
  margin-bottom: 1rem;
}

.table {
  width: 100%;
  border-spacing: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.table thead {
  background-color: rgba(255, 255, 255, 0.04);
}

.table th {
  padding: 16px;
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #e0e0e0;
}

.table td {
  padding: 16px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.4;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

@media screen and (max-width: 767px) {
  .logo img{
    width: 160px;
    height: auto;
    margin-bottom: -6px;
  }
  .provias{
    font-size: 1rem;
    line-height: 1em;
    text-align: right;
  }
}