/* General styles */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

/* Styling the fixed top bar */
#topbar {
    width: 100%;
    color: white; /* White text color */
    position: sticky;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: sticky;
    z-index: 1100;
    top: 0px;
    left: auto;
    right: 0px;
    background-color: rgb(0, 128, 128);
    height: 52px;
    border-bottom: 2px dotted rgba(254, 254, 254, 0.4);
}

#edocrLogo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  a img {
    height: 30px;
  }
  padding-left: 26px;
  padding-right: 26px;
  height: 100%;
}

#upload, #search {
  display: flex;
}
button.documentDetails {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0px;
  border: 0px currentcolor;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  text-transform: uppercase;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  color: inherit;
  font-weight: bold;
}

div.documentDetails {
  width: 100%;
}

#documentDetails {
  flex: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-width: 50%;
  padding-right: 20px;
  background-color: rgb(0, 77, 71);
  border-radius: 10px;
  margin-left: 10px;
  margin-right: 10px;
  margin: 2px;
  a:link, a:visited, a:active, a:hover {
    color: #e69307;
  }
  .detailValue {
    padding-left: 5px;
    font-weight: bold;
  }
}

#upload-login {
  a:link, a:visited, a:active, a:hover {
    color: #e69307;
  }
}
.file-tree {
  list-style: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding-left: 0;
  margin: 0;
}

.folder-root > .folder-label,
.folder-item > .folder-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  user-select: none;
}

.folder-icon-wrapper {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.lock-icon {
  position: absolute;
  bottom: -2px;
  right: -6px;
}

.folder-name {
  white-space: nowrap;
}

.folder-children {
  list-style: none;
  margin-left: 20px;
  padding-left: 12px;
  border-left: 1px dashed #bbb;
  display: block;
}

.folder-item {
  position: relative;
  margin-left: 0;
  padding-left: 0;
}

.folder-label.selected {
  background-color: #008080;
  color: #fff;
  border-radius: 4px;
}

.folder-label:hover {
  background-color: #00bbbb;
}

.thumbnail-drop-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: #777;
  background-color: #f9f9f9;
}

.thumbnail-drop-area.dragover {
  border-color: #007bff;
  background-color: #eef6ff;
}

#thumbnail-wrapper {
  position: relative;
  display: inline-block;
  width: 25%;
  margin: 0 auto;
  margin-top: 25px;
  text-align:center;
}

.preview-container {
  position: relative;
  display: inline-block;
  max-height: 100px;
  margin-top: 10px;
}

.preview-container img {
  max-height: 100px;
  border-radius: 6px;
  display: block;
}

.checkbox-label.disabled {
  color: gray;
  cursor: not-allowed;
  pointer-events: auto;
}

.checkbox-label.disabled input {
  pointer-events: none;
}


.remove-btn, .replace-document-btn {
  text-align: center;
  background-color: #ff4444;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  line-height: 24px;
  padding: 0;
}

.replace-document-btn {
  position: absolute;
  top: -8px;
  right: -8px;
}

.remove-logo-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: red;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  line-height: 24px;
  padding: 0;
}


#esign-details, #existingSource {
  a:link, a:visited, a:active, a:hover {
    color: #e69307;
  }
  margin: 0 auto;
}

.doc-info {
  a:link, a:visited, a:active, a:hover {
    color: #e69307;
  }
}
.doc-info .tagCloud {
  a:link, a:visited, a:active, a:hover {
    color: #fff;
  }
}

#likes {
  a:link, a:visited, a:active, a:hover {
    color: #fff;
  }
  .detailValue {
    color: #e69307;
    font-weight: bold;
  }
}

#indexStatus {
  display: flex;
  justify-content: left ;
  flex-grow: 0;
  color: #fe9a00;
}

/* Container for sidebar and viewerdiv */
#content {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 50px; /* Height of the topbar */
    bottom: 0;
    left: 0;
    right: 0;
}

/* Styling the details div */
#sidebardiv {
    width: 350px; /* Fixed width */
    background-color: #f4f4f4; /* Light grey background */
    overflow-y: auto; /* Allows vertical scrolling if content overflows */
    display: block; /* Default display */
}

#detailsTitleShort, #detailsTitleLong {
  flex: 1;
  display: flex;
  height: 26px;
  width: 100%;
  p {
    text-align: center;
    min-width: 100%;
    height: 26px;
    margin-top: 0;
    overflow: hidden;
    margin-left: 5px;
    margin-right: 5px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.00938em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

#additionalDetails {
  flex: 1;
  height: 26px;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-flex: 1;
  flex-grow: 1;
  flex-basis: max-content;
  min-width: 100%;
  margin-top: -5px;
}

#publisher, #collection, #category, #title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#publisher, #collection, #category, #title, #views, #likes, #link-div {
  display: flex;
  align-items: center;
  margin-left: 10px;
  margin-right: 10px;
}

#collection {
  max-width: 33%;
}

/* Styling the viewer div */
#viewerdiv {
    flex-grow: 1; /* Takes up remaining space */
    background-color: #ddd; /* Lighter grey background */
    overflow-y: auto; /* Allows vertical scrolling if content overflows */
}

.vertical-hr {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  height: 100%;
  margin: 0 20px;
}

#links {
    margin-top: 2px;
    display: 'flex';
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 33%;
    color: #e69307;
}

.dropdown {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.btn {
  padding: 10px;
  border: none;
}
.dropdown-btn {
  height: 50px;
  /* Set the height of the button */
  line-height: 50px;
  /* Align text vertically */
  padding: 0 20px;
  /* Padding for the text */
  background-color: rgb(0, 128, 128);
}

.dropdown-content {
  position: absolute;
  background-color: rgb(0, 128, 128);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 50px;
}

.dropdown-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-content ul li a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content ul li a:hover {
  background-color: lightgray;
}

.profileAd {
  margin-top: 20px;
  margin-bottom: 20px;;
}

ul.tagCloud {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tagCloud li {
  display: inline-block;
  line-height: 1.5rem;
}

.tagCloud li a {
  color:#f1f1f1;
  background-color: #fe9a00;
  text-decoration: none;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 10px;
  border-radius: 10px;
}

.doc-info a {
  text-decoration: underline;
  color: orange;
  font-weight: bold;
}

.adspace {
  background:#f1f1f1;
  max-width: 160px;
  margin: 5px;
  flex-grow: 0;
  text-align: center;
  display: flex;
  align-items: center;
}

div.topbar-menu {
   display: flex;
   margin-top: 8px;
   min-width: 400px;
}

.alert-message {
  z-index: 4;
  padding: 16px;
  position: relative;
  margin: 0 0;
  text-align: center;
  background-color: rgb(240, 248, 255);
}

a:link.alert-message-link {
  color: #008080;
  background-color: transparent;
  text-decoration: underline;
}
a:visited.alert-message-link {
  color: #008080;
  background-color: transparent;
  text-decoration: underline;
}
a:hover.alert-message-link {
  color: #008080;
  background-color: transparent;
  text-decoration: underline;
}
a:active.alert-message-link {
  color: #008080;
  background-color: transparent;
  text-decoration: underline;
}

.close-alert-button {
  position: absolute;
  top: 8px;
  right: 8px;
  color: black;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  text-align: center;
  line-height: 24px;
}
.close-modal-button {
  float: right;
  color: black;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  text-align: center;
  line-height: 24px;
}

div.edocr-tabs a:link, a:visited, a:hover, a:active {
  color: #fff;
  background-color: transparent;
  text-decoration: none;
}

.spinner {
  border: 16px solid #f3f3f3;
  /* Light grey */
  border-top: 16px solid orange;
  /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

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

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #008080;
  color: white;
  margin: 15% auto;
  padding: 10px;
  border: 1px solid #888;
  width: 80%;
}

.modal-content input {
  color: black;
}
.modal-content button {
  color: black;
}

.item {
  margin-top: 10px;
}

.item input {
  margin-right: 10px;
}

table.embed-table td {
  padding: 10px;
}

.material-icons {
  vertical-align: middle;
  margin-right: 4px;
}
span {
  vertical-align: middle;
}

#dropdown-content {
  top: 50px;
}

#esign-drop-area {
  border: 2px dashed #ccc;
  border-radius: 20px;
  width: 300px;
  height: 200px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

#esign-drop-area.highlight {
  border-color: purple;
}
#esign-fileElem {
  display: none;
}
#esign-progress-bar {
  width: 100%;
  background: #4caf50;
  height: 25px;
  margin-top: 10px;
  display: none;
}

#collection-select-area {
  border: 2px dashed #ccc;
  border-radius: 20px;
  width: 100%;
  height: 100px;
  overflow-y: scroll;
  font-family: Arial, sans-serif;
}

#publish-drop-area {
  border: 2px dashed #ccc;
  border-radius: 20px;
  width: 100%;
  height: 100px;
  margin: 50px auto;
  text-align: center;
  font-family: Arial, sans-serif;
}
#description-wrapper {
  width: 100%;
  text-align: left;
  font-family: Arial, sans-serif;
}

#publishDiv {
  width: 100%;
  margin: 0 auto;
  margin-left: 5px;
  margin-right: 5px;
}

#publish-drop-area.highlight {
  border-color: purple;
}
#publish-fileElem {
  display: none;
}
#publish-progress-bar {
  width: 100%;
  background: #4caf50;
  height: 25px;
  margin-top: 10px;
  display: none;
}

input:required:invalid {
  border: 2px solid red;
  background-color: #ffe6e6;
}
button:disabled, button[disabled] {
  background-color: #8e8e8e !important;
  color: #4f575b !important;
}

div.esign-request {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0 auto;
    margin-top: 50px;
    display: flex;
    flex-direction: column
    justify-content: center;
    align-items: center;
    width: 350px;
}

.form-container-esign-request {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 400px;
}

form.esign-request {
    display: flex;
    flex-direction: column;
}

label.esign-request {
    margin-bottom: 8px;
    font-weight: bold;
}

input.esign-request {
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
select.esign-request {
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button.esign-request {
    padding: 10px;
    background-color: #008080;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button.esign-request:hover {
    background-color: #007070;
}

#publish-button {
  margin-top: 15px;
}
.edocr-button {
  color: black;
  background-color: gray;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: default;
  transition: background-color 0.3s, cursor 0.3s;
}

.edocr-button.enabled {
  background-color: orange;
  cursor: pointer;
}

.edocr-button:disabled {
  opacity: 0.6;
}

#file-table {
  margin: 50px auto;
  padding: 20px;
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}

#file-table th,
#file-table td {
  text-align: left;
  padding: 5px !important;
  border-bottom: 1px solid #ddd;
  width: auto;
}

#file-table td a,
#file-table td a:visited {
  color: white;
  background-color: #FE9A00;
  padding: 4px 8px;
  text-decoration: none;
  border-radius: 4px; /* Optional, for a smoother look */
  display: inline-block; /* Helps with padding */
}

th {
  background-color: #f0f0f0;
}

.editable-field {
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  position: relative;
}

.editor-toolbar {
  background-color: #7DA1B2
}
.editable-text {
  margin-left: 5px;
  min-height: 40px;
  padding: 4px;
  outline: none;
  background: #f9f9f9;
  height: 150px;
  overflow-y: scroll;
}

.editor-toolbar button {
  margin: 5px;
  font-size: 0.8em;
  cursor: pointer;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 -1px 0;
}

.tab-btn {
  all: unset;
  background: #f3f3f3;
  background-image: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: 1px solid #ccc;
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
  transition: background 0.3s;
}

.tab-btn.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  position: relative;
  z-index: 2;
}

.tab-content {
  display: none;
  border: 1px solid #ccc;
  padding: 16px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 1;
}

.tab-content.active {
  display: block;
}

.tab-buttons, .tab-content, .tab-btn, .tabs {
  background-image: none;
  background-color: #f3f3f3;
}

.tag-container {
  border-radius: 6px;
  font-family: sans-serif;
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  background-color: orange;
  color: black;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-weight: bold;
}

.tag .remove-btn {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
}

#tag-input {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
}

.hidden {
  display: none;
}

.help-text {
  font-size: 0.8125rem;
  font-style: italic;
}

.slideshow-spinner {
  border: 3px solid #FE9A00;
  border-radius: 50%;
  border-top: 3px solid #fefefe;
  width: 10px;
  height: 10px;
  animation: spin2 2s linear infinite;
}
.editable-text:empty:before {
  content: attr(data-placeholder);
  color: #888;
  pointer-events: none;
}

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

/* Media query for responsiveness */
@media (min-width: 769px) {
  #detailsTitleShort {
    display: none;
  }
  #links-regular {
    display: flex;
  }
  .mobile-menu, #links-mobile {
    display: none;
  }
}

@media (max-width: 992px) {
  #sidebardiv, #edocr-expand-viewer {
      display: none !important; /* Hide detailsdiv on mobile devices */
  }
}

@media (max-width: 860px) {
  #esign-details {
    display: none !important;
  }
}
@media (max-width: 768px) {
  #detailsTitleLong {
    display:none;
  }
  #upload {
    display: none;
  }
  #indexStatus {
    display: none;
  }
  #links-regular {
    display: none;
  }
  .desktop-menu {
    display:none;
  }
  #dropdown-content {
    top: 35px;
  }
  #links-mobile {
    display: flex;
  }
  #search {
    display: none;
  }
  #esign-drop-area {
    flex: 100%;
    min-width: 100%;
  }
  #docubeeFrame {
    flex: 100%;
    width: 100%;
    margin: 5px;
  }
}
@media (max-width: 992px) {
  #category, #collection, #views, #likes {
    display: none;
  }
  div.topbar-menu {
    display: none;
  }
}
