.show-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  z-index: 1050;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  margin: 0 auto;
  height: 64px;
  width: 64px;
  animation: rotate 0.8s infinite linear;
  border: 5px solid rgba(75, 113, 221, 1);
  border-right-color: transparent;
  border-radius: 50%;
  z-index: 9999;
}

.Error {
  color: red;
}

.Success {
  color: lime;
}

.Processed {
  color: lime;
}

.Pending {
  color: #fdb100;
}

.cursor-pointer {
  cursor: pointer;
}

.icon {
  display: inline-block;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  vertical-align: -10px;
  text-align: center;
  position: relative;
}

.icon i {
  border-radius: 50%;
  width: 2px;
  height: 2px;
  display: inline-block;
  vertical-align: 12px;
}

.tree-icon-repository {
  background-size: cover;
  background-image: url('../img/folder-icons/repository.png');
}

.tree-icon-fonds {
  background-size: cover;
  background-image: url('../img/folder-icons/fonds.png');
}

.tree-icon-sub-fonds {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-fonds.png');
}

.tree-icon-sub-sub-fonds {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-sub-fonds.png');
}

.tree-icon-series {
  background-size: cover;
  background-image: url('../img/folder-icons/series.png');
}

.tree-icon-sub-series {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-series.png');
}

.tree-icon-sub-sub-series {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-sub-series.png');
}

.tree-icon-file {
  background-size: cover;
  background-image: url('../img/folder-icons/file.png');
}

.tree-icon-sub-file {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-file.png');
}

.tree-icon-sub-sub-file {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-sub-file.png');
}

.tree-icon-item {
  background-size: cover;
  background-image: url('../img/folder-icons/item.png');
}

.tree-icon-sub-item {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-item.png');
}

.tree-icon-sub-sub-item {
  background-size: cover;
  background-image: url('../img/folder-icons/sub-sub-item.png');
}

.tree-icon-unknown {
  background-size: cover;
  background-image: url('../img/folder-icons/unknown.png');
}

@keyframes anim-glow-negative {
  0% {
    box-shadow: 0 0 rgba(231, 74, 59, 1);
  }

  100% {
    box-shadow: 0 0 10px 8px transparent;
    border-width: 2px;
  }
}

.icon-negative {
  animation: anim-glow-negative 2s ease infinite;
  border: 2px solid #e74a3b;
}

.icon-negative i {
  border: 2px solid #e74a3b;
  background-color: #e74a3b;
}

@keyframes anim-glow-positive {
  0% {
    box-shadow: 0 0 rgba(97, 239, 97, 1);
  }

  100% {
    box-shadow: 0 0 10px 8px transparent;
    border-width: 2px;
  }
}

.icon-positive {
  animation: anim-glow-positive 2s ease infinite;
  border: 2px solid #61ef61;
}

.icon-positive i {
  border: 2px solid #61ef61;
  background-color: #61ef61;
}


.switch {
  position: relative;
  display: inline-block;
  width: 35px;
  height: 20px;
  margin-bottom: 0px;
}


.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}


.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}


.slider.round {
  border-radius: 17px;
}

.slider.round:before {
  border-radius: 50%;
}


.ck-editor__editable {
  min-height: 500px;
  max-height: 500px;
}

#resource-collection-modal-short-description-editor .ck-editor__editable {
  min-height: 100px;
  max-height: 100px;
}


.ck-rounded-corners .ck.ck-balloon-panel,
.ck.ck-balloon-panel.ck-rounded-corners {
  z-index: 10055 !important;
}

.more-info::after {
  content: "\f107";
  font-family: "FontAwesome"
}

.more-info[aria-expanded="true"]::after {
  content: "\f106";
}

.fa-zotero:before {
  font-family: "FontAwesome";
  font-weight: bold;
  content: 'Z';
  font-size: 1.35em;
  vertical-align: middle;
}

blockquote {
  background: #f9f9f9;
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
}

blockquote p {
  display: inline;
}

.editor {
  width: 100%;
  border: 1px solid #d3d3d3;
  padding: 10px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  resize: both;
}

.content {
  width: 100%;
  height: 650px;
  overflow-y: scroll;
  border: 1px solid #d3d3d3;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  background-color: white;
  border-radius: 4px;
  resize: vertical;
  overflow-wrap: break-word;
}

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

.left-buttons {
  display: flex;
  gap: 5px;
}

.right-search {
  display: flex;
  align-items: center;
}

.icon,
.toolbar button {
  background-color: #f5f5f5;
  border: 1px solid #d3d3d3;
  font-size: 16px;
  cursor: pointer;
  width: 110px;
  height: 32px;
  padding: 0 10px;
  margin-right: 2px;
  border-radius: 1px;
  transition: background-color 0.2s ease;
  text-align: center;
}

.icon {
  color: #555;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon:hover,
.toolbar button:hover {
  background-color: #e0e0e0;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.buttons button {
  margin-left: 10px;
}

.editor:-webkit-full-screen {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px;
  z-index: 9999;
  border: 1px solid blue;
  /* or any other color you want */
}

.editor:-moz-full-screen {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px;
  z-index: 9999;
  border: 1px solid blue;
}

.editor:fullscreen {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px;
  z-index: 9999;
  border: 1px solid blue;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

#searchButton:hover {
  background-color: #2196F3;
  color: white;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
}

.ck-editor__editable {
  max-width: 100%;
  min-height: 400px;
  word-wrap: break-word;
}

.table-container {
  overflow-x: auto;
  overflow-y: hidden;
  max-height: auto;
  padding: 10px;
}

.table-responsive {
  width: auto;
  margin: 0 auto;
  /* Center the table */
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}


.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.table td {
  max-width: auto;
}

.table th {
  max-width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  vertical-align: top;
}

.table-view-container {
  background-color: rgba(255, 255, 255, 0);
}

#refreshIcon {
  cursor: pointer;
  margin-top: 5px;
}

.transcription-info {
  border: 1px solid #d3d3d3;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-size: 0.9em;
}

.transcription-info-header {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.transcription-info-item {
  margin-bottom: 3px;
}

.transcription-info-item span {
  font-weight: bold;
}

.transcription-info-not-available {
  color: #d4d4d4;
  font-style: italic;
}

.created-by-container {
  display: flex;
  align-items: center;
}

.created-by-field {
  background-color: #f0f0f0;
  border: 0px solid #bebdbd;
  padding: 2px 5px;
  margin-left: 10px;
  border-radius: 2px;
}

.file-upload-container label {
  cursor: pointer;
}

.file-upload-container #fileUploadName {
  margin-top: 5px;
}

.file-name-container {
  border-right: 1px solid #ccc;
  padding-right: 20px;
  margin-right: 20px;
}

#transcriptionList li {
  background-color: #ffffff;
  padding: 10px;
  margin-bottom: 10px;
}

.transcription-info {
  font-size: 0.9rem;
}

.highlight-selector {
  border: 2px solid #007bff;
  background-color: #e7f5ff;
}

.editable-status {
  display: inline-block;
  width: 50px;
  height: 20px;
  border-radius: 4px;
  color: white;
  text-align: center;
  line-height: 20px;
  margin-left: 10px;
}

.editable-yes {
  background-color: green;
}

.editable-no {
  background-color: red;
}

.highlight-invalid {
  background-color: #f8d7da !important;
  color: #c6525e !important;
}

.highlight-invalid-column {
  background-color: #f8d7da !important;
  color: #4b2c2f !important;
}

.modal-container {
  padding-top: 0px;
}

#page-top {
  background-color: #f8f9fc;
}

.sticky-footer {
  background-color: #fff;
  padding: 10px 0;
}


.show-box .spinner {
  margin-right: 10px;
}

.custom-nav {
  background-color: rgba(255, 255, 255, 0.074);
  box-shadow: 0 4px 6px rgba(135, 135, 135, 0.181);
  border-radius: 0.3px;
  padding: 0.2rem 1.5rem;
}

.custom-nav-buttons .nav-link {
  padding: 1rem 1rem;
  margin-right: 2rem;
  border-radius: 0.3px;
  transition: background-color 0.1s, color 0.1s, box-shadow 0.2s;
  color: #131b52;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.custom-nav-buttons .nav-link:hover,
.custom-nav-buttons .nav-link.active {
  background-color: #c2c2c23e;
  color: #000000;
  border-bottom: 2px solid #007bff;
  /* Add bottom border to indicate active tab */
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%2810, 10, 10, 0.7%29' stroke-width='2' linecap='round' linejoin='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  /* Custom hamburger icon */
}

.search-bar-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.search-bar-container label {
  font-weight: bold;
  margin-right: 8px;
}

.search-bar-container .form-control {
  width: 400px;
  max-width: 100%;
  margin-right: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .search-bar-container .form-control {
    width: 100%;
  }

  .custom-nav-buttons {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.5rem;
  }

  .custom-nav-buttons .nav-item {
    text-align: center;
    width: 100%;
    margin: 0.5rem 0;
  }

  .custom-nav-buttons .nav-link {
    margin-right: 0;
  }

  .navbar-search {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .navbar-search-input {
    width: 100%;
  }

  .navbar-search-button {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 4px;
  }
}

.carousel-inner {
  height: 100%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: transparent;
  border: none;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  display: inline-block;
  border: solid black;
  border-width: 0 0px 0px 0;
  padding: 0px;
}

.carousel-control-prev-icon::after {
  transform: rotate(135deg);
}

.carousel-control-next-icon::after {
  transform: rotate(-45deg);
}

.carousel {
  width: 100%;
}

.carousel-item {
  padding: 0px;
  box-sizing: border-box;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.card-body .carousel-inner {
  max-width: 100%;
  overflow: hidden;
}

.card-body .carousel-item {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-editor__editable {
  background-color: #eaeaead0;
  /* White background */
  color: #000000;
  /* Really dark text */
}

.ck-content {
  color: #000000;
  /* Ensures all content inside the editor matches the dark text color */
}

.card {
  border: none;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

.card-header h6 {
  color: #4e73df;
}

.card-header .btn-link {
  color: #4e73df;
}

#savedItemsTable {
  border: none;
}

#savedItemsTable thead th {
  background-color: #f8f9fc;
  color: #4e73df;
  font-weight: bold;
  border: none;
  border-bottom: 2px solid #e3e6f0;
}

#savedItemsTable td {
  border: none;
  border-bottom: 1px solid #e3e6f0;
}

#savedItemsTable tbody tr:hover {
  background-color: #f8f9fc;
}

.badge {
  font-size: 0.85em;
  padding: 0.35em 0.65em;
  border-radius: 0.25rem;
}

.badge-success {
  background-color: #1cc88a;
  color: #fff;
}

.badge-danger {
  background-color: #e74a3b;
  color: #fff;
}

#reportSelector {
  max-width: 300px;
}

.table-responsive {
  overflow-x: auto;
}

#reports-tab {
  transition: all 0.3s ease-out;
}

#savedItemsTable {
  font-size: 0.9rem;
}

.btn-block {
  transition: all 0.2s ease-in-out;
}

.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#ref-code-results,
#ref-code-results-row {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-radius: 0 0 4px 4px;
  background-color: white;
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

#ref-code-results .list-group-item,
#ref-code-results-row .list-group-item {
  border-left: none;
  border-right: none;
  transition: background-color 0.2s ease;
}

#ref-code-results .list-group-item:first-child,
#ref-code-results-row .list-group-item:first-child {
  border-top: none;
}

#ref-code-results .list-group-item:last-child,
#ref-code-results-row .list-group-item:last-child {
  border-bottom: none;
}

#ref-code-results .list-group-item:hover,
#ref-code-results-row .list-group-item:hover {
  background-color: #f8f9fa;
}

#ref-code-results h6,
#ref-code-results-row h6 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

#ref-code-results p,
#ref-code-results-row p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

#editErrorMessage {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.9em;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

#searchResultsContainer .card {
  transition: all 0.3s ease;
}

#searchResultsContainer .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-5px);
}

.card-header .btn-group .btn {
  margin-left: 5px;
}

.card-header .btn-group .btn:first-child {
  margin-left: 0;
}

#uploadedTableContainer .card {
  border: 1px solid #e3e6f0;
  border-radius: 0.35rem;
}

#uploadedTableContainer .card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

#uploadedTableContainer .card-body {
  padding: 1.25rem;
}

#bulkUploadTab {
  background-color: #f8f9fc;
}

.card {
  border: none;
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

.btn-group .btn {
  margin-left: -1px;
}

.btn-group .btn:first-child {
  margin-left: 0;
}

.table-responsive {
  max-height: 600px;
  overflow-y: auto;
}

#uploadedCsvTable,
#savedItemsTable {
  width: 100%;
  /* Ensure table doesn't stretch beyond its content */

  margin-bottom: 0;
}

#uploadedCsvTable thead th,
#savedItemsTable thead th {
  position: sticky;
  top: 0;
  background-color: #f8f9fc;
  z-index: 1;
}

.card-footer {
  background-color: #f8f9fc;
  border-top: 1px solid #e3e6f0;
}

#reportSelector {
  font-size: 0.875rem;
}

.spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

.card .nav-tabs {
  font-size: 0.9rem;
}

.card .nav-tabs .nav-link {
  padding: 0.5rem 1rem;
}

.card .tab-content {
  font-size: 0.9rem;
}

.card {
  transition: all 0.3s ease;
}

.myclass:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.text-break {
  word-break: break-word;
}

.table td,
.table th {
  padding: 0.5rem;
  /* Reduce padding for a more compact look */
  white-space: nowrap;
  /* Prevent text wrapping inside table cells */
  text-align: left;
  /* Align text to the left for readability */
}

.btn-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
}

.btn-remove:hover {
  color: #bd2130;
}

.btn-apply {
  margin-left: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  background-color: #28a745;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.btn-apply:hover {
  background-color: #218838;
}