@import url(https://fonts.googleapis.com/css?family=Open+Sans:700,300);

/* Context menu styles */
#context-menu {
  display: none;
  position: absolute;
  background: var(--context-bg-color);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 3;
  border-radius: 8px;
  width: 186px;
  padding: 12px 0px;
}

#context-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#context-menu ul li {
  padding: 8px 12px;
  text-align: left;
  color: var(--main-text-color);
}

#context-menu ul li:hover {
  background-color: var(--context-selected-bg-color);
  cursor: pointer;
  transition: all 0.6s;
}

#context-menu ul li a {
  text-decoration: none;
  color: var(--main-text-color);
}

#context-menu ul li i {
  color: var(--main-text-color);
}

#document-menu {
  display: none;
  position: absolute;
  background: var(--context-bg-color);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 3;
  border-radius: 8px;
  width: 186px;
  padding: 12px 0px;
}

#document-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#document-menu ul li {
  padding: 8px 12px;
  text-align: left;
  color: var(--main-text-color);
}

#document-menu ul li:hover {
  background-color: var(--context-selected-bg-color);
  cursor: pointer;
  transition: all 0.6s;
}

#document-menu ul li a {
  text-decoration: none;
  color: var(--main-text-color);
}

#document-menu ul li i {
  color: var(--main-text-color);
}

/* Context menu styles */
#file-context-menu {
  display: none;
  position: absolute;
  background: var(--context-bg-color);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 3;
  /* border-radius: 8px; */
  width: 186px;
  padding: 12px 0px;
}

#file-context-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#file-context-menu ul li {
  padding: 8px 12px;
  text-align: left;
  color: var(--main-text-color);
}

#file-context-menu ul li:hover {
  background-color: var(--context-selected-bg-color);
  cursor: pointer;
  transition: all 0.6s;
}

#file-context-menu ul li a {
  text-decoration: none;
  color: var(--main-text-color);
}

#file-context-menu ul li i {
  color: var(--main-text-color);
}

.title-bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items:normal;
  padding: 14px;
  padding-bottom: 0px;
  height: 6%;
}

.title-bar a {
  text-decoration: none;
  color: var(--disabled-background-color);
  cursor: pointer;
}

.title-bar i {
  color: var(--disabled-background-color);
}

.title-bar i:hover {
  color: var(--main-text-color);
  transition: all 0.6s;
}

.folder-list {
  height: 90%;
  overflow-y: auto;
}

.source-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 8%;
  /* border-radius: 10px; */
  padding: 10px;
  /* box-shadow: rgba(0, 0, 0, 0.295) 0px 1px 3px, rgba(0, 0, 0, 0.562) 0px 1px 2px; */
}

.source-header #browser_path{
  width: 100%;
  background-color: var(--main-button-color);
  padding: 0px 20px;
  color: var(--main-text-color);
  border-radius: 4px;
  line-height: 30px;
  border: none;
  margin: 0 50px;
}

.source-header #browser_path:focus{
  outline: none;
}

.source-section {
  display: flex;
  flex-direction: row;
  height: 92%;
  /* border: solid white 1px; */
}

.source-container {
  /* border: white 1px solid; */
  /* padding:10px; */
  color: var(--main-text-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.source-menu {
  background-color: var(--second-bg-color);
  /* border-radius: 8px; */
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  /* box-shadow: rgba(0, 0, 0, 0.295) 0px 1px 3px, rgba(0, 0, 0, 0.562) 0px 1px 2px; */
  /* border:1px solid yellow; */
}

.folder_text {
  margin: auto;
  text-align: center;
  font-size: 18px;
}

.source-menu ul {
  list-style-type: none;
  /* background-color: aqua; */
  /* margin-top: 20px; */
  display: flex;
  flex-direction: column;
  align-items: left;
  padding-left: 0;  
}

.source-menu ul li {
  font-size: 14px;
  list-style-type: none;
  margin: 5px 15px;
}

.source-menu ul li a.active {
  background-color: var(--note-head-background-color);
}

.source-menu ul li button p {
  display: inline-block;
  width: 60%;
  margin: auto;
}

.menu-section {
  min-height: 100%;
  width: 20%;
  /* border: solid white 1px; */
}

.preview-section {
  height: 100%;
  width: 20%;
  border: solid white 1px;
}

.content-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 60%;
  padding-left: 0px;
  /* background-color: #1a2027; */
  background-color: var(--main-bg-color);
}

.floating-upload{
  font-size: 14px;
  padding: 10px;
}

.floating-file{
  height: 100%;
}

.button-bar{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.no-back-button{
  background: none;
  border: none;
  margin: auto;
}

.file-checkbox{
  margin-right:10px;
  display: none;
  z-index: 20;
  cursor: pointer;
}

.file-button .file-checkbox, .folder-button .file-checkbox{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.file-button .file-checkbox[type="checkbox"]:before, .folder-button .file-checkbox[type="checkbox"]:before{
  border: 1px solid #00ff00;
}

#fileToUpload{
  display: none;
}

#multi-download-button{
  display: none;
}

#multi-remove-button{
  display: none;
}


/* =============================================================== SCROLLBAR ===================================================== */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  box-shadow: inset 0 0 5px grey;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #303030;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* =============================================================== SCROLLBAR ===================================================== */

.search-form {
  color: white;
  display: flex;
  padding: 2px;
  border: 1px solid #3b4758;
  border-radius: 50px;
  max-width: fit-content;
}

.search-form input[type="search"] {
  border: none;
  background: #3b4758;
  margin: 0;
  padding: 12px 18px;
  font-size: 14px;
  color: inherit;
  border: 1px solid transparent;
  border-radius: inherit;
}

.search-form input[type="search"]::placeholder {
  color: #bbb;
}

.search-form button[type="submit"] {
  text-indent: -999px;
  overflow: hidden;
  width: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E")
    no-repeat center;
  cursor: pointer;
  opacity: 0.7;
}

.search-form button[type="submit"]:hover {
  opacity: 1;
}

.search-form button[type="submit"]:focus,
input[type="search"]:focus {
  box-shadow: 0 0 3px 0 #1183d6;
  border-color: #1183d6;
  outline: none;
}

.source-content {
  /* background-color: #1d232c; */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.titling {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 92%;
  border-radius: 10px;
  align-items: center;
}

.right-buttons{
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* =============================================== TABS ================================================ */
.breadcrumb {
  margin: 10px;
  padding: 16px;
  font-style: italic;
  background-color: #2a323f;
}
.breadcrumb a {
  text-decoration: none;
}

/* ============================== DATA TABLE ============================= */
.data-table {
  width: 100%;
  margin-bottom: 1rem;
  color: white;
  overflow-y: hidden;
  background-color: #364353;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.data-table td:hover {
  background-color: #50637b;
  transition: 6ms;
}

.data-table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

.table-bordered {
  border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6;
}

.table-bordered thead th,
.table-bordered thead td {
  border-bottom-width: 2px;
}

/* Add more styles as needed */

#row0 {
  background-color: #212529;
  color: white;
  position: sticky;
  top: -20px;
}

/* SWAL MULTIPLE FILE UPLOAD */
.custom-file-upload {
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  color: #333;
  transition: background-color 0.3s;
}

.custom-file-upload:hover {
  background-color: #e0e0e0;
}

/* Hide the default file input style */
/* .swal2-popup input[type="file"] {
  display: none;
} */


/* =============================================== TABS for treeview version ================================================ */

.tree-folder-btn {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  padding: 0;
  margin: 0;
  color:var(--main-text-color);
  margin-right: 10px;
}

.select_files_icon{
  display: block;
}

.tree-folder-btn:hover .select_files_icon{
  display: block;
}

.tree-folder-btn:focus{
  outline: none;
}

.tree-folder-btn:disabled{
  color: rgb(146, 146, 146);
  cursor: default;
}

/* .folder-icon::before {
  content: '📁';
  margin-right: 5px;
}

.file-icon::before {
  content: '📄';
  margin-right: 5px;
} */

.file-text {
  cursor: pointer;
}

#fileTree{
  overflow-y: auto;
  overflow-x: auto;
  height: 100%;
}

.main-folder-info-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 92%;
  margin: 0 auto;
  text-align: center;
  /* border:1px solid yellow; */
  height: 10%;
}

.simple-folder-info-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  margin: 0 auto;
  text-align: center;
  height: 100%;
  width: 100%;
  /* border:1px solid red; */
  overflow-y: hidden;
  overflow-x: hidden;
}

.simple-folder-info-container #info-img-placeholder{
  height: 17%;
}

.simple-folder-info-container .prop-desc-list{
  width: 100%;
  height: 93%;
  overflow-y: auto;
}

.folder-info-progressbar{
  width: 100%;
}

.folder-info-progressbar progress{
  width: 100%;
}

.treeViewTitleBar{
  display: flex;
  flex-direction: row;
}

.toggleFileSelector{
  color:var(--disabled-background-color);
  margin-left: 20px;
}

.toggleFileSelector:hover{
  color: var(--main-text-color);
  cursor: pointer;
}
/* ==================================================================================== Big Icon File browser ================================================================= */

.folder-view-title{
  width: 100%;
  height: 6%;
  padding: 8px 30px;
  /* background-color: #1d232c; */
  /* box-shadow: rgba(0, 0, 0, 0.295) 0px 1px 3px, rgba(0, 0, 0, 0.562) 0px 1px 2px; */
  display: flex;
  flex-direction: row;
  /* border: 1px solid white; */
  justify-content: space-between;
}

.folder-view-title p{
  display: inline;
  font-weight: bold;
}

.folder-view-title a{
  color: var(--main-bg-color);
  margin-right: 10px;
}

.folder-field{
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  height: 94%;
}

.folder-field .folder-control {
  width: 100%;
  height: 6%;
  padding: 0px 20px;
  display: flex;
  flex-direction: row;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  /* border: 1px solid blue; */
  align-items: center;
}

.folder-field .folder-control p{
  font-weight:bold;
  /* border:1px solid red; */
  margin: auto 0;
}

.folder-field .folder-control .pdir{
  border:none;
  background: var(--main-button-color);
  color:var(--main-text-color);
  padding:2.5px 20px;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  margin-right: 20px;
}

.folder-field .folder-control .pdir:hover{
  background:var(--main-bg-color);
  color:var(--main-text-color);
  transition: all 0.3s;
}

.folder-field .folder-control .pdir:focus{
  outline: none;
}

.add-folder{
  border:none;
  background: var(--main-text-color);
  color:var(--second-bg-color);
  border-radius: 5px;
  padding:2.5px 20px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.add-folder:hover{
  background:var(--second-bg-color);
  color:var(--main-text-color);
  transition: all 0.3s;
}

.add-folder:focus{
  outline: none;
}

.upload-button{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border:none;
  background: var(--main-button-color);
  color:var(--main-text-color);
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  width:200px;
  height: 30px;
}

.upload-button div{
  margin-left: 10px;
}

.upload-button:hover{
  background:var(--second-bg-color);
  cursor: pointer;
  transition: all 0.3s;
}

.upload-button:focus{
  outline: none;
}

.folder-field #browsing-section{
  width: 100%;
  height: 96%;
  /* border: 1px solid red; */
  padding: 30px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
  /* margin: 0 50px; */
}

.folder-field .folder-button {
  display: flex;
  flex-direction: row;
  border: none;
  min-width: 200px;
  max-width: 200px;
  height: 85px;
  margin-right: 18px;
  margin-bottom: 30px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  background: var(--second-bg-color);
  border-radius: 5px;
  color:var(--main-text-color);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.folder-field .folder-button:focus {
  outline: none;
}

.folder-field .folder-button:hover {
  cursor: pointer;
  background-color: rgb(235, 235, 235);
  transform: scale(1.04);
}

.folder-field .folder-button .folder-button-icon{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 40%;
  height: 100%;
  color: var(--file-folder-icon);
  align-items: center;
  align-content: center;
  /* border:1px solid white; */
}

.folder-field .folder-button .folder-button-text{
  text-overflow: ellipsis;
}

.folder-field .folder-button .folder-button-icon p{
  display: block;
  font-size: 45px;
  text-align: center;
  /* border: 1px solid red; */
  line-height: 50px;
}

.folder-field .folder-button .folder-button-info{
  display: flex;
  flex-direction: column;
  width: 60%;
  height: 100%;
  padding: 10px;  
}

.folder-field .folder-button .folder-button-info p{
  display: inline;
  margin:0;
  line-height: 20px;
  text-wrap: nowrap;
  text-align: left;
  overflow: hidden;
  /* border: 1px solid white; */
}

/* ============= File ================= */
.folder-field .file-button {
  display: flex;
  flex-direction: row;
  border: none;
  min-width: 200px;
  max-width: 200px;
  height: 85px;
  margin-right: 18px;
  margin-bottom: 30px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  background: var(--second-bg-color);
  border-radius: 5px;
  color:var(--main-text-color);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.previewInfo{
  position: absolute;
  margin-left: 6px;
  margin-top: 6px;
  width: 10px;
  height: 10px;
  background-color: #00ff00; /* Bright green color */
  border-radius: 50%; /* Makes the dot circular */
  display: inline-block; /* Allows it to be placed inline with text or other elements */
  border: 2px solid white; /* Optional: white border around the dot, like in Facebook */
  /* position: relative; */
}

.folder-field .file-button:focus {
  outline: none;
}

.folder-field .file-button:hover {
  cursor: pointer;
  background-color: rgb(238, 238, 238);
  transform: scale(1.04);
}

.folder-field .file-button .file-button-icon{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 40%;
  height: 100%;
  color: var(--file-folder-icon);
  align-items: center;
  align-content: center;
  /* border:1px solid white; */
}

.folder-field .file-button .file-button-innerText{
  text-overflow: ellipsis;
}

.folder-field .file-button .file-button-icon p{
  display: block;
  font-size: 45px;
  text-align: center;
  /* border: 1px solid red; */
  line-height: 50px;
  color: var(--file-folder-icon);
}

.folder-field .file-button .file-button-info{
  display: flex;
  flex-direction: column;
  width: 60%;
  height: 100%;
  padding: 10px;
  color: var(--main-text-color);
}

.folder-field .file-button .file-button-info p{
  display: inline;
  margin:0;
  line-height: 20px;
  text-wrap: nowrap;
  text-align: left;
  overflow: hidden;
  color: var(--main-text-color);
  /* border: 1px solid white; */
}

/* ============================== user  */

/* .folder-field .file-button {
  display: flex;
  flex-direction: row;
  border: none;
  min-width: 200px;
  max-width: 200px;
  height: 85px;
  margin-right: 18px;
  margin-bottom: 30px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  background: var(--second-bg-color);
  border-radius: 5px;
  color:var(--main-text-color);
} */

.folder-field .file-button:focus {
  outline: none;
}

.folder-field .file-button .file-button-icon{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 40%;
  height: 100%;
  color: var(--main-text-color);
  align-items: center;
  align-content: center;
  /* border:1px solid white; */
}

.folder-field .file-button .file-button-icon p{
  display: block;
  font-size: 45px;
  text-align: center;
  /* border: 1px solid red; */
  line-height: 50px;
}

.folder-field .file-button .file-button-info{
  display: flex;
  flex-direction: column;
  width: 60%;
  height: 100%;
  padding: 10px;  
}

.folder-field .file-button .file-button-info p{
  display: inline;
  margin:0;
  line-height: 20px;
  text-wrap: nowrap;
  text-align: left;
  overflow: hidden;
  /* border: 1px solid white; */
}

.multi-download-form{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:94%;
}

.multi-download-form2{
  display:flex;
  flex-direction:column;
  height: 94%;
}

.form-download-btn{
  display: none;
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
  
  border: none;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  margin:auto;
  margin-top:10px;
}

.form-download-btn2{
  display: none;
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
  font-size: 14px;
  width: 80px;
  border: none;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  margin: 20px;
}

.tree-file-button{
  cursor: pointer;
}

.tree-folder-button{
  cursor: pointer;
  background-color: #00ff00;
}

.tree-folder-label{
  padding:2px 8px;
  margin: 0px 4px;
  background-color: #f1f1f1;
  border-radius: 4px;
  transition: background 0.3s ease-in-out;
}

.tree-folder-label:hover{
  background-color: var(--file-folder-icon);
  color : var(--second-bg-color);
  cursor: pointer;
}