/**
 * @file
 * Styles for AJAX file upload.
 */

/* Upload progress bar */
.upload-progress {
  margin-top: 10px;
  display: block;
  width: 100%;
  padding: 0 50px;
}

.upload-progress .progress {
  height: 30px;
  background-color: #f5f5f5;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  width: 100%;
}

.upload-progress .progress-bar {
  background: linear-gradient(to bottom, #ff7700, #ff5500);
  transition: width 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 13px;
}

/* Uploaded files list */
.uploaded-files-list {
  margin-top: 10px;
  display: block;
  width: 100%;
  padding: 0 50px;
}

.uploaded-files-list .file-item {
  margin-bottom: 10px;
  padding: 15px 18px;
  border-left: 5px solid #fc7d01;
  border-color: white;
  border-width: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fc7d01;
  border-radius: 0;
  transition: all 0.3s ease;
}

.uploaded-files-list .file-item:last-child {
  margin-bottom: 0;
}

.uploaded-files-list .file-info {
  flex: 1;
  text-align: left;
  padding-left: 15px;
}

.uploaded-files-list .file-info i {
  color: #ffffff;
  margin-right: 8px;
  font-size: 18px;
}

.uploaded-files-list .file-info strong {
  color: #ffffff;
  font-weight: 600;
}

.uploaded-files-list .file-info .text-muted {
  color: #ffffff !important;
  font-size: 13px;
  opacity: 0.9;
}

.uploaded-files-list .file-info .small {
  font-size: 12px;
  color: #ffffff;
  margin-top: 4px;
  opacity: 0.9;
}

.uploaded-files-list .delete-file {
  white-space: nowrap;
  background-color: #dc3545;
  color: white;
  padding: 8px 16px;
  border-radius: 0;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uploaded-files-list .delete-file:hover {
  background-color: #c82333;
}

.uploaded-files-list .delete-file i {
  margin-right: 6px;
}

/* Error message */
.upload-error {
  margin-top: 10px;
  padding: 12px 15px;
  border-radius: 8px;
}

/* File input styling - Custom button look */
.teamtailor-file-upload {
  cursor: pointer;
  opacity: 0;
  position: absolute;
  z-index: -1;
  width: 0.1px;
  height: 0.1px;
}

/* Labels styled as buttons - Grey background, white text, uppercase */
fieldset.teamtailor-file-wrapper label,
fieldset.js-form-type-file label {
      border-radius: 32px;
    background: var(--Ellipse-4, #FFCE3A);
  color: var(--Ellipse-8, #000);
text-align: center;
height: 50px;
/* P1 */
font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 27px; /* 150% */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  width: 100%;
  margin-bottom: 5px;
  transition: background 0.2s ease;
}
.js-form-item-files-additional-files- {
  margin-top: 0;
}


fieldset.teamtailor-file-wrapper label:hover,
fieldset.js-form-type-file label:hover {
  background: #FFF;
}

/* Description text below labels - White and override text-muted */
fieldset.teamtailor-file-wrapper .description,
fieldset.teamtailor-file-wrapper .text-muted,
fieldset.js-form-type-file .description,
fieldset.js-form-type-file .text-muted,
.teamtailor-file-wrapper small.description,
.teamtailor-file-wrapper small.text-muted {
  color: #000!important;
  text-align: center;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px; /* 192.857% */
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Force fieldsets to take full width in flex container and override form-group constraints */
.ts-form.ts-profile-form fieldset.teamtailor-file-wrapper,
.ts-form fieldset.teamtailor-file-wrapper,
.teamtailor-application-form.ts-form .form-group.teamtailor-file-wrapper {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 15px 0 5px !important;
}

.ts-form.ts-profile-form fieldset.teamtailor-file-wrapper.js-form-item-files-cv {
  margin-top: 25px;
}
.ts-form.ts-profile-form fieldset.teamtailor-file-wrapper.js-form-item-files-additional-files- {
  
}


/* Icon for uploaded files - white SVG */
.alert-success::before {
  display: inline-block;
  content: "";
  background-image: url(data:image/svg+xml,<svg class="bi bi-check-box" width="1em" height="1em" viewBox="0 0 16 16" fill="%23ffffff" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M15.354 2.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3-3a.5.5 0 11.708-.708L8 9.293l6.646-6.647a.5.5 0 01.708 0z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M1.5 13A1.5 1.5 0 003 14.5h10a1.5 1.5 0 001.5-1.5V8a.5.5 0 00-1 0v5a.5.5 0 01-.5.5H3a.5.5 0 01-.5-.5V3a.5.5 0 01.5-.5h8a.5.5 0 000-1H3A1.5 1.5 0 001.5 3v10z" clip-rule="evenodd"/></svg>);
  background-repeat: no-repeat;
  -webkit-background-size: 1.5rem 1.5rem;
  background-size: 1.5rem 1.5rem;
  background-position: 0 0.4rem;
  width: 1.75rem;
  height: 1.75rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .uploaded-files-list .file-item {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .uploaded-files-list .delete-file {
    margin-top: 10px;
    width: 100%;
  }
}
