/*
* Style file for User Private Files plugin
*/

.upf_clsc_files_sec a {
  color: var(--primary-color);
}

.upf_clsc_files_sec a:hover {
  color: var(--hover-color);
}

.upf_clsc_hidden {
  display: none;
}

#upf_clsc_upload_sec,
.upf_clsc_files_sec,
.upf_clsc_swm_all_items {
  padding: 25px;
}

.upf_clsc_uploader,
.upf_clsc_doc_prvw {
  text-align: center;
}

.upf_clsc_upload-area {
  width: 50%;
  background: #f7f7f7;
  margin: 0 auto 25px;
  padding: 2rem 0;
  border: 2px dashed #ddd;
}

.upf_clsc_uploader button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 50px;
  box-shadow: 0 0 10px 5px #ccc;
  transition-duration: 0.3s;
}

.upf_clsc_uploader button:hover,
#upf_clsc_allowed_usr_sbmt:hover {
  background: var(--hover-color);
}

.upf_clsc_uploaded-doc {
  float: left;
  padding: 15px;
  width: 100%;
}

.upf_clsc_doc_prvw_img {
  max-width: 100%;
  max-height: 350px;
}

/* New file upload popup */
.upf_clsc_popup {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgb(0, 0, 0, 0.3);
  z-index: 99999;
  overflow-y: scroll;
}

.upf_clsc_popup .upf_clsc_inner {
  width: 50%;
  background: #eee;
  margin: auto;
  margin-top: auto;
  margin-top: 10%;
  position: relative;
  padding: 30px;
}


#upf_clsc_allow_file_access_frm {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.upf_clsc_inner .uploader button,
.upf_clsc_inner .fill-dets #submitFile,
.upf_clsc_popup input:is([type="submit"]) {
  background: var(--primary-color);
  border: 0;
  color: #fff;
  padding: 10px 30px;
  width: 160px;
  max-width: 160px;
  font-weight: normal;
  text-transform: capitalize;
  min-width: 160px;
  height: 40px;
}

.upf_clsc_inner .uploader button:hover,
.upf_clsc_inner .fill-dets #submitFile:hover,
.upf_clsc_popup input:is([type="submit"]):hover {
  background: var(--hover-color);
  cursor: pointer;
  box-shadow: 0 2px 4px 0 rgba(90, 141, 238, .5);
}

.upfp_row .upf_clsc_inner h4 {
  margin: 0 0 20px;
  padding: 0;
}

.upf_clsc_popup .upf_clsc_inner form {
  margin: 0;
}

.upf_clsc_share_file_popup .upf_clsc_inner form {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.upf_clsc_inner .uploader button,
.upf_clsc_inner .fill-dets #submitFile,
.upf_clsc_popup input:is([type="submit"]):hover {
  text-decoration: none;
}

.settings_popup .upf_clsc_inner {
  text-align: left;
}

.upf_clsc_doc_view.loading:after {
  content: ' ';
  position: absolute;
  z-index: 999;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: beige;
  background-image: url(../images/upf_doc_loading.gif);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 50px;
}

@media only screen and (max-device-width: 425px) {
  .upf_clsc_popup .upf_clsc_inner {
    min-width: 95%;
  }
}



.upf_clsc_popup .upf_clsc_closePopup,
.upf_clsc_popup .upf_slec_closePopup {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 20px;
  background: #0071a1;
  z-index: 9999;
}

.upf_clsc_popup .upf_clsc_action {
  float: right;
}

.upf_clsc_fill-dets {
  padding-top: 15px;
  margin: 0;
  display: flex;
}

.upf_clsc_fill-dets input {
  width: 47%;
  margin: 0 1.3%;
  border: none;
  background: transparent;
  border-bottom: 1px solid #aaa;
  font-size: 15px;
  padding: 5px 10px;
  width: 45%;
}

#upf_clsc_submitFile {
  float: left;
  margin: 17px 0 0 0;
  padding: 0 25px;
  text-transform: uppercase;
  background: var(--primary-color);
  border: none;
  color: #fff;
  height: 30px;
  box-shadow: 0px 0px 10px 5px #ccc;
  width: 20%;
}

#upf_clsc_submitFile:hover {
  background: var(--hover-color);
}

.upf_clsc_progress_bar {
  background: #0071a1;
  height: 5px;
  width: 0%;
  float: left;
  transition-duration: 0.3s;
}

/* file preview - edit name/desc popups */
.upf_clsc_edit_pp .upf_clsc_inner {
  width: 50%;
  background: #fff;
  margin: auto;
  margin-top: 10%;
  position: relative;
  padding: 30px;
  max-width: 750px;
  min-width: 425px;
}

.upf_clsc_edit_pp h4 {
  margin: 0 0 20px;
  padding: 0;
  font-weight: bold;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
}

.upf_clsc_edit_pp .upf_clsc_popup_close_btn {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 20px;
  background: var(--hover-color);
  z-index: 1;
}

.upf_clsc_edit_pp form {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.upf_clsc_edit_pp form input[type="submit"] {
  background: var(--primary-color);
  border: 0;
  color: #fff;
  padding: 10px 30px;
  width: 160px;
  max-width: 160px;
  font-weight: normal;
  text-transform: capitalize;
  min-width: 160px;
  height: 40px;
}

.upf_clsc_edit_pp form input[type="submit"]:hover {
  background: var(--hover-color);
  cursor: pointer;
}

/* files list */
.upf_clsc_all-docs.upf_clsc_docs-list,
.upf_clsc_swm_all_items {
  display: flex;
  flex-wrap: wrap;
}

.upf_clsc_all-docs.upf_clsc_docs-list .upf_clsc_doc-item a img,
.upf_clsc_swm_all_items .upf_clsc_doc-item a img {
  border: 1px solid #ccc;
  width: 150px;
  height: 150px;
}

.upf_clsc_doc-item,
.upf_clsc_swm-doc-item {
  margin: 5px;
  position: relative;
  display: inline-block;
  max-width: 150px;
}

.upf_clsc_edit-file img {
  border: 1px solid #ddd;
  height: 150px;
  width: 150px;
}

.upf_clsc_doc_inner {
  width: 94%;
  height: 90%;
  margin: 3%;
  background: #fff;
  padding: 25px;
  position: relative;
}

.upf_clsc_doc_view {
  width: 75%;
  float: left;
  height: 100%;
  overflow: auto;
  text-align: center;
}

.upf_clsc_doc_tool {
  width: 25%;
  float: left;
  margin: 0;
  background: #ddd;
  padding: 25px;
  height: 100%;
  overflow-y: scroll;
  box-sizing: border-box;
}

.upf_clsc_doc_view img {
  max-width: 100%;
}

.upf_clsc_doc_view object {
  height: 100%;
}

#upf_clsc_allow_access_frm input#upf_clsc_allowed_usr_mail {
  border: none;
  padding: 5px 10px;
  width: 100%;
  border-bottom: 2px solid #ccc;
  margin-bottom: 15px;
}

.upf_clsc_rmv-file-acs {
  cursor: pointer;
  color: orangered;
}

.upf_clsc_file_actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

#upf_clsc_dlt-doc-file,
#upf_clsc_share-doc-file {
  margin-bottom: 10px;
  clear: both;
}

#upf_clsc_allowed_usr_sbmt,
#upf_clsc_dlt-doc-file,
#upf_clsc_share-doc-file {
  float: right;
  padding: 5px;
  text-transform: uppercase;
  background: var(--primary-color);
  color: #fff;
  width: 100%;
  margin: 0;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

#upf_clsc_allowed_usr_sbmt:hover,
#upf_clsc_dlt-doc-file:hover,
#upf_clsc_share-doc-file:hover {
  background: var(--hover-color);
}

.upf_clsc_doc_tool h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

.upf_clsc_doc_tool p {
  min-height: 25px;
  color: var(--primary-color);
}

/* ------------------- File Type Filter CSS --------*/


.upf_clsc_filter_box {
  width: 100%;
  display: inline-block;
}

.upf_clsc_switch_btn {
  float: right;
}

.upf_clsc_filter_box h3 {
  float: left;
}

#upf_clsc_grp_by {
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  border: 0;
  outline: 0;
  cursor: pointer;
  margin: 10px;
  float: right;
}

#upf_clsc_grp_by:after {
  content: '';
  width: 60px;
  height: 28px;
  display: inline-block;
  background: rgba(196, 195, 195, 0.55);
  border-radius: 18px;
  clear: both;
}

#upf_clsc_grp_by:before {
  content: '';
  width: 32px;
  height: 32px;
  display: block;
  position: absolute;
  left: 0;
  top: -3px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

#upf_clsc_grp_by:checked:before {
  left: 32px;
  box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.6);
}

#upf_clsc_grp_by:checked:after {
  background: #16a085;
}

/* -------- SELECTED FILES SHORTCODE CSS -------- */

.upf_clsc_fldr-item .upf_clsc_fldr_ttl,
.upf_clsc_doc-item .upf_clsc_doc_ttl,
.upf_clsc_doc-item .upf_clsc_doc_desc {
  word-wrap: break-word;
  text-align: center;
}

#upf_clsc_download-doc-file {
  padding: 5px;
  text-transform: uppercase;
  background: var(--primary-color);
  color: #fff;
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
#upf_clsc_download-doc-file:hover {
  background: var(--hover-color);
}

.upf_clsc_fldr-item {
  margin: 5px;
  position: relative;
  display: inline-block;
  max-width: 150px;
}

#upfp_slec_pl_home {
  text-decoration: none;
}

.upfp_slec_parmalink span {
  cursor: pointer;
}

.upfp_slec_parmalink span:last-child {
  cursor: auto;
}

.upf_clsc_inner input,
.upf_clsc_inner select {
  flex: auto;
  padding: 10px;
}

.upf_clsc_share_file_popup input:not(input[type=radio]),
.upf_clsc_share_file_popup select {
  width: 150px;
}

.upf_clsc_share_file_popup #allowed_usr_mail {
  width: 250px;
}

.upf_clsc_share_file_popup .upf_clsc_inner form {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.upf_clsc_share_file_popup p input {
  float: left;
  min-height: 22px;
}

.upf_clsc_close_share_file_popup {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 20px;
  background: var(--hover-color);
  z-index: 1;
}

.upf_clsc_file_access_list {
  border-bottom: 1px solid #cccccc;
  padding: 0 0 10px 10px !important;
  margin: 0;
  line-height: 1 !important;
  margin-bottom: 10px;
}

.upf_clsc_file_access_list li {
  padding: 7px 10px;
  font-size: 10pt;
}

.upf_clsc_rmv-file-acs,
.upf_clsc_rmv-file-acs-role {
  float: right;
  width: 15px;
  text-align: center;
  cursor: pointer;
}

.upf_clsc_rmv-file-acs::before,
.upf_clsc_rmv-file-acs-role::before {
  content: "\f056";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  color: #ee101f;
  font-size: 11pt;
}

.upf_clsc_file_upload_error {
  width: auto;
  float: left;
  word-break: break-all;
  height: auto;
  color: red;
}

/* -------------------- MOBILE CSS ------------------ */
@media only screen and (max-width: 950px) {
  .upf_clsc_popup .upf_clsc_inner {
    width: 90%;
    margin-top: 15%;
  }

  .upf_clsc_fill-dets input {
    width: 94%;
    margin: 0 2%;
  }

  .upf_clsc_fill-dets {
    width: 100%;
  }

  #upf_clsc_submitFile {
    float: right;
    width: 50%;
  }

  .upf_clsc_doc_view,
  .upf_clsc_doc_tool {
    width: 100%;
    height: auto;
  }

  .upf_clsc_doc_inner {
    height: 95%;
    padding: 0;
  }

  #upf_clsc_dlt-doc-file,
  #upf_clsc_share-doc-file {
    width: 48%;
    float: right;
    position: relative;
    bottom: auto;
    right: auto;
    clear: none;
    margin-top: 0;
    padding: 10px;
  }

  #upf_clsc_allowed_usr_sbmt {
    float: left;
    width: 48%;
    padding: 10px 5px;
  }
}

@media only screen and (max-width: 374px) {

  #upf_clsc_allowed_usr_sbmt,
  #upf_clsc_dlt-doc-file,
  #upf_clsc_share-doc-file {
    font-size: 12px;
  }
}



/* Classic progress bar CSS */

.upf_clsc_file-container {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  transition: 0.3s;
}

.upf_clsc_top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.upf_clsc_top-row .upf_clsc_file-icon {
  font-size: 15px;
  color: #444444;
}

.upf_clsc_file-name {
  font-weight: bold;
  display: block;
}

.upf_clsc_file-size {
  color: #444444;
  font-size: 15px;
}

.upf_clsc_delete-icon {
  font-size: 15px;
  cursor: pointer;
  color: #444444;
}

.upf_clsc_delete-icon.upf-success {
  color: green;
}

.upf_clsc_delete-icon.upf-error {
  color: red;
}

.upf_clsc_progress {
  position: relative;
  width: 100%;
  background: #e9ecef;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.upf_clsc_progress-bar {
  width: 0%;
  height: 100%;
  background: green;
  transition: width 0.4s ease-in-out;
}

.upf_clsc_progress-bar.upf-success {
  background: green;
}

.upf_clsc_progress-bar.upf-error {
  background: red;
}

.upf_clsc_progress-info {
  display:flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 15px;
  font-weight: bold;
  color: green;
}

.upf_clsc_file-error {
  color: red;
}

.upf_clsc_percent {
  color: #444444;
  font-size: 15px;
}

.upf_clsc_percent.upf-success {
  color: green;
}

.upf_clsc_percent.upf-error {
  color: red;
}
