/* General Styles */
* {
  font-family: Arial, sans-serif;
}

.navbar {
  background-color: white;
  z-index: 1060;
  height: 80px;
  box-shadow: #5e5e5e 0px 0px 5px;
}

.navlogo {
  height: auto;
  width: 300px;
  padding: 10px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  object-fit: contain;
}

.nav-link {
  color: grey;
}

.nav-link:hover,
.nav-item:hover .nav-link {
  color: #014e92;
}

.nav-item {
  margin-bottom: 43px;
  transition: 0.5s;
}

.nav-item:hover {
  transform: translateY(-5px);
  color: #1e73be;
}

.active-page,
.nav-link.active-page {
  color: #014e92 !important;
  border-radius: 6px;
}

.rounded-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-dropdown {
  margin-top: -50px;
}

.btn-outline-danger {
  margin-bottom: 48px;
  color: grey;
  border-color: grey;
}

.btn-outline-danger:hover {
  background-color: white;
  color: red;
  border-color: red;
}

.dropdown-menu {
  background-color: white;
  border-color: #5e5e5e;
}

.dropdown-item {
  color: grey;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  color: #1e73be;
}

/* Login Styles */
.login-body {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 98vh;
}

.login-container {
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 20%;
  border-radius: 8px;
}

.login-container h2 {
  padding-bottom: 10px;
  color: black;
  margin-bottom: 20px;
  text-align: center;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: black;
  border: 1px solid #ddd;
}

.login-container button {
  width: 100%;
  padding: 10px;
  background: #014e92;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  transition: 0.3s ease;
  margin-left: 0px;
}

.login-container button:hover {
  transform: translateY(-3px);
  background-color: #1e73be;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Dashboard Styles */
.dashboard-content,
.dashboard-report-container,
#dashboard-reportContainer {
  height: 100%;
  min-height: 0;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dashboard-report-container {
  width: 100%;
  height: calc(89vh - 85px);
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#dashboard-reportContainer {
  width: 100%;
  height: 100%;
}

/* Assistant Styles */
.assistant-body {
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.assistant-content {
  width: 80%;
  height: calc(100vh - 85px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto auto 0 auto;
}

.assistant-content.shifted {
  margin-left: 200px;
}

.chat-container {
  width: 80%;
  height: 80%;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}

#chatBoxContainer {
  overflow-y: auto;
  height: 1000px;
}

.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-message {
  max-width: 75%;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: pre-wrap;
}

.chat-message img {
  max-width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  align-self: center;
}

.chat-message table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.chat-message table th,
.chat-message table td,
.chat-message table tr {
  background: white;
  color: black;
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}

.chat-message table th {
  background: white;
  color: black;
  font-weight: bold;
}

.user-message {
  background: white;
  color: black;
  align-self: flex-end;
  border: 1px solid #ddd;
  border-bottom-right-radius: 0;
}

.bot-message {
  background: white;
  color: black;
  border: 1px solid #ddd;
  align-self: flex-start;
  border-bottom-left-radius: 0;
  overflow-x: auto;
}

#folderSelect {
  height: 30px;
  font-size: 12px;
  border-radius: 0%;
}

#userInput {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
  background: white;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.chat-input textarea {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  resize: none;
  font-size: 14px;
  outline: none;
  height: 40px;
  overflow-y: hidden;
}

.send-btn {
  background: #014e92;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.send-btn:hover {
  transform: translateY(-1px);
  background-color: #1e73be;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: rgb(0, 0, 0);
  animation: spin 1s ease infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*Document Intelligence Styles */
.doc-body {
  margin: 0;
  padding: 0;
}

.doc-content {
  width: 100%;
  height: calc(100vh - 85px);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
}

.container-fluid {
  margin: 50px auto 0 auto;
  height: 90%;
  width: 95%;
}

.doc-form-container {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.doc-upload-btn {
  color: white;
  background: #014e92;
  border: none;
  border-radius: 8px;
  height: 40px;
}

.doc-upload-btn:hover {
  transform: translateY(-1px);
  background: #1e73be;
}

#filePreviewContainer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  display: none;
}

#filePreviewContent {
  border-color: #5e5e5e;
  border-radius: 0.375rem;
  margin: 40px 30px auto 30px;
  padding: 0.5rem;
  flex-grow: 1;
  overflow: auto;
  align-items: center;
  justify-content: center;
}

.doc-chat-content {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doc-int-assistant-content {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  height: calc(100vh - 85px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto auto 0 auto;
}

#chatBoxContainer {
  flex-grow: 1;
  overflow: auto;
  border: 0;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  width: 100%;
  min-height: 300px;
  max-height: 570px;
}

.dropdown-menu {
  background-color: white;
  border-color: #5e5e5e;
}

.dropdown-item {
  color: grey;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  color: #1e73be;
}
#image-dropdown {
  height: 30px;
  font-size: 12px;
  border-radius: 0%;
  margin: 0%;
  padding: 0%;
}

.doc-send-btn {
  background: #014e92;
  border: none;
}

.doc-send-btn:hover {
  transform: translateY(-1px);
  background: #1e73be;
}

/* Settings Styles */

.main-container {
  padding-top: 2rem;
}

.flash-container {
  min-height: 56px;
  margin-bottom: 1rem;
  position: static;
}

.settings-flash {
  margin-bottom: 0;
  transition: opacity 0.3s;
}

.settings-content {
  background-color: white;
  color: black;
}

.card {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-tabs .nav-link {
  color: #555;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  height: 40px;
}

.nav-tabs .nav-link.active {
  color: #014e92;
  border-color: #014e92;
  background-color: transparent;
}

#add .card {
  background: white;
  padding: 20px;
  border: none;
  box-shadow: none;
}

.btn-success {
  width: 95%;
  height: 55px;
  padding: 18px;
  margin-left: 15px;
  background: #014e92;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-success:hover {
  transform: translateY(-3px);
  background-color: #1e73be;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.form-select-settings {
  width: 100%;
  padding: 10px;
  height: 40px;
  background-color: #fff !important;
  color: #212529;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin-top: 10px;
}

.form-select-btn {
  align-items: center;
  justify-content: center;
  background-color: red;
  height: 40px;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.form-select-settings:focus {
  border-color: #ced4da;
  box-shadow: none;
  outline: none;
}

.reset-form-control {
  max-width: 355px;
}

.reset-form-btn {
  width: 355px;
  padding: 12px;
  background: #014e92;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.reset-form-btn:hover {
  transform: translateY(-3px);
  background-color: #1e73be;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.min-vh-25 {
  min-height: 25vh;
}
.list-group-item {
  transition: background 0.2s;
}
.list-group-item:hover {
  background: #f8f9fa;
  cursor: pointer;
}

.user-save-access {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-right: 10px;
}
