/* -- Poppins -- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");
/* ==================== File Upload Styling ==================== */
body {
  background-color: #f5f5f5;
  font-family: "Poppins", "sans-serif";
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bimCT-file-upload-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bimCT-file-upload-container,
#bimCT-file-upload-progress-container {
  position: relative;
  width: 50%;
  background-color: #fff;
  border: 1px dashed #cdcdcd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

#bimCT-file-upload-progress-container {
  height: 505px;
  display: none;
}

#bimCT-file-upload-container.drop_opened {
  border: 4px dashed #cdcdcd;
}

/* image */
#bimCT-file-upload-container img {
  margin-top: 70px;
}

#bimCT-file-upload-container > h3,
#bimCT-file-upload-selector {
  margin-top: 30px;
}

/* h3 */
#bimCT-file-upload-container > h3 {
  font-weight: 400;
  font-size: 20px;
}

/* Paragraph */
#bimCT-file-upload-container > p {
  margin-top: 100px;
  margin-bottom: 30px;
}

/* Button */
#bimCT-file-upload-selector,
#bimCT-file-upload-upload {
  cursor: pointer;
  background-color: #b42d41;
  padding: 0 16px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bimCT-file-upload-selector span,
#bimCT-file-upload-upload span {
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-size: 14px;
  text-transform: uppercase;
}

.bimCT-file-upload-drop-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #fff 0%,
    #fff 5%,
    #f5f5f5 4%,
    #f5f5f5 12%
  );
  display: none;
  justify-content: center;
  align-items: center;
}

.bimCT-file-upload-drop-background h3 {
  color: #9e9e9e;
  font-size: 50px;
  font-weight: normal;
}

.bimCT-file-upload-drop-background * {
  pointer-events: none;
}

#bimCT-file-upload-container.drop_opened .bimCT-file-upload-drop-background {
  display: flex;
}

#bimCT-file-upload-container.drop_opened .bimCT-file-drop-wrapper {
  display: block;
}

.bimCT-file-drop-wrapper span {
  color: rgb(247, 247, 247);
  font-weight: 500;
  font-size: 20px;
}

#bimCT-files-container {
  margin-top: 30px;
}

#bimCT-file-upload-parent-wrapper {
  margin-top: 6%;
}

#bimCT-file-upload-references-wrapper {
  display: flex;
  flex-direction: column-reverse;
  max-height: 140px;
  overflow-y: scroll;
  margin-top: 2%;
  margin-left: 15px;
}

#bimCT-file-upload-references-wrapper::-webkit-scrollbar {
  /* Setting just the width of the scrollbar */
  width: 15px;
}

#bimCT-file-upload-references-wrapper::-webkit-scrollbar-track {
  /* Setting the background of the scrollbar */
}

#bimCT-file-upload-references-wrapper::-webkit-scrollbar-thumb {
  background-color: #cdcdcd;
  border: 5px solid rgba(0, 0, 0, 0);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border-radius: 15px;
}

.bimCT-file-upload-parent,
.bimCT-file-upload-references {
  width: 350px;
}

.bimCT-file-upload-references {
  margin-top: 1%;
}

.bimCT-file-container,
#bimCT-file-upload-parent-error,
#bimCT-file-upload-references-error {
  position: relative;
  width: 350px;
  padding: 12px 15px;
  background-color: #b42d412a;
  border-radius: 5px;
  display: flex;
  align-items: center;
  margin-bottom: 2%;
}

#bimCT-file-upload-parent-error,
#bimCT-file-upload-references-error {
  display: none;
}

#bimCT-file-upload-parent-error.opened {
  display: flex;
}

#bimCT-file-upload-references-error.opened {
  display: flex;
}

#bimCT-file-upload-parent-error p,
#bimCT-file-upload-references-error p {
  margin-left: 5%;
}

#bimCT-file-upload-references-wrapper .bimCT-file-container:first-child {
  margin: 0;
}

.bimCT-files-type {
  width: 350px;
}

.bimCT-file-container i,
#bimCT-file-upload-parent-error i,
#bimCT-file-upload-references-error i {
  color: #b42d41;
  font-size: 32px;
}

.bimCT-file-description {
  margin-left: 5%;
  margin-top: 2%;
}

.bimCT-file-description p {
  font-size: 13.5px;
  line-height: 10px;
}

.bimCT-file-details {
  display: flex;
  align-items: center;
}

.bimCT-file-details i {
  font-size: 5px;
  margin: 0 5px;
  margin-top: 2px;
  color: #151515;
}

span.bimCT-file-size {
  font-size: 12px;
}

i.bimCT-status-icon {
  position: absolute;
  right: 15px;
  margin-left: 6%;
  font-size: 18px;
}

.bimCT-file-upload-type {
  display: none;
}

.bimCT-file-upload-type.opened {
  display: block;
}

/* ============ FIle Upload Progress ============ */
#bimCT-file-upload-progress-wrapper {
  width: 350px;
}

#bimCT-file-upload-progress-wrapper h3 {
  font-size: 20px;
  font-weight: 500;
}

#bimCT-file-upload-time p {
  font-size: 14px;
  color: #616261;
}

#bimCT-file-upload-time p#bimCT-file-upload-percentage-time {
  font-weight: 600;
}

#bimCT-file-upload-time {
  display: flex;
  justify-content: space-between;
}

#bimCT-file-upload-progress-bar {
  width: 100%;
  height: 4px;
  background-color: #cdcdcd;
  margin: 5px 0px;
  position: relative;
}

#bimCT-file-upload-progress-bar-loaded {
  position: absolute;
  top: 50%;
  transform: translate(0%, -50%);
  left: 0;
  width: 0%;
  height: 6px;
  background-color: #b42d41;
}

/* ============ Error Message ============ */
#bimCT-file-upload-time p#bimCT-file-upload-error-message {
  display: none;
  color: #c62828;
}

#bimCT-file-upload-upper-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#bimCT-file-upload-progress-back-arrow {
  font-size: 20px;
  color: #616261;
  display: none;
  cursor: pointer;
}

/* ============ Animated Loading Status ============ */
#bimCT-file-upload-loading-status {
  width: 25px;
  height: 25px;
  border: 3px solid #616261;
  border-radius: 50%;
  border-top-color: #fff;
  animation: bimCT-loading-status-spin 2s linear infinite;
}

@keyframes bimCT-loading-status-spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ============ Responsiveness ============ */

/* ============ Laptops, Tablets ============ */
@media only screen and (max-width: 1000px) {
  #bimCT-file-upload-container {
    width: 80%;
  }
}

@media only screen and (max-width: 550px) {
  #bimCT-file-upload-container {
    width: 100%;
  }

  .bimCT-file-upload-wrapper {
    justify-content: unset;
    align-items: unset;
  }
}

@media only screen and (max-width: 550px) {
  #bimCT-file-upload-container h3 {
    font-size: 15px;
  }
}
