#flash_messages {
  max-width: 600px;
  margin: 0 auto;
  z-index: 1050; /* Ensure it appears above other content */
}

#flash_messages .alert {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  text-align: center;
  border-radius: 30px;
}

#flash_messages .btn-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}
/* Main container and selection - height applied globally */
.select2-container--bootstrap-5 .select2-selection {
  height: 2rem !important;
  min-height: 2rem !important;
}

/* Dark theme styling */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
  background-color: #293042 !important;
  border-color: #3a4158 !important;
  color: #fff !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  line-height: 1 !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  color: #fff !important;
}

/* SVG styles - only for dark theme */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear,
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a7adc2'%3e%3cpath d='M.293.293a1%201%200%20011.414%200L8%206.586%2014.293.293a1%201%200%20111.414%201.414L9.414%208l6.293%206.293a1%201%200%2001-1.414%201.414L8%209.414l-6.293%206.293a1%201%200%2001-1.414-1.414L6.586%208%20.293%201.707a1%201%200%20010-1.414z'/%3e%3c/svg%3e") !important;
  color: #a7adc2 !important;
}

/* Hover state for clear button - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover,
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1%201%200%20011.414%200L8%206.586%2014.293.293a1%201%200%20111.414%201.414L9.414%208l6.293%206.293a1%201%200%2001-1.414%201.414L8%209.414l-6.293%206.293a1%201%200%2001-1.414-1.414L6.586%208%20.293%201.707a1%201%200%20010-1.414z'/%3e%3c/svg%3e") !important;
  color: #ffffff !important;
}

/* Dropdown and results - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
  background-color: #293042 !important;
  border-color: #3a4158 !important;
  color: #fff !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-results__option {
  color: #fff !important;
}

/* Search field - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-search__field {
  background-color: #1e2433 !important;
  border-color: #3a4158 !important;
  color: #fff !important;
}

/* Highlighted and selected options - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted {
  background-color: #4e5d84 !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-results__option[aria-selected=true] {
  background-color: #3a4158 !important;
  color: #fff !important;
}

/* Multiple selection - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  background-color: #3a4158 !important;
  border-color: #4e5d84 !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
  color: #d0d6e3 !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #fff !important;
  background-color: #4e5d84 !important;
}

/* Focus and open states - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5.select2-container--focus .select2-selection,
html[data-bs-theme="dark"] .select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: #5e6da0 !important;
  box-shadow: 0 0 0 0.25rem rgba(94, 109, 160, 0.25) !important;
}

/* Placeholder text - line-height applied to all themes */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
  line-height: 1 !important;
}

/* Placeholder color - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
  color: #a7adc2 !important;
}

/* Disabled state - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--disabled {
  background-color: #1e2433 !important;
  opacity: 0.6 !important;
}

/* Validation states - dark theme only */
html[data-bs-theme="dark"] .is-valid + .select2-container--bootstrap-5 .select2-selection {
  border-color: #38cb89 !important;
}

html[data-bs-theme="dark"] .is-invalid + .select2-container--bootstrap-5 .select2-selection {
  border-color: #ff5c75 !important;
}

/* Arrow icons - dark theme only */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
  border-color: #fff transparent transparent transparent !important;
}

html[data-bs-theme="dark"] .select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #fff transparent !important;
}

/* Replace dark caret with white one for dark theme */
html[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection.select2-selection--single {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
}

.flatpickr-time input.flatpickr-hour,
.flatpickr-time input.flatpickr-minute,
.flatpickr-time input.flatpickr-second {
  font-size: 16px;
  color: white;
  background: transparent;
}

.flatpickr-time {
  display: flex;
  align-items: center;
}

.flatpickr-seconds {
  display: block !important;
}
.tracks-new {
  .border-dashed {
    border: 2px dashed var(--bs-border-color) !important
  }

  .art-cover-height {
    height: 125px;
    max-height: 125px;
  }


  .art-cover-fit {
    object-fit: cover;
    z-index: 1;
  }
}

.tracks-show {
  .art-cover-height {
    height: 120px;
    width: 120px;
  }

  .audio-container {
    height: 30px;
  }

  .art-cover-fit {
    object-fit: cover;
    z-index: 1;
  }

  .file-item {
    min-height: 48px;
  }

  .file-icon {
    width: 48px;
    height: 48px;
  }
}

.tracks-index {
  .art-cover-box {
    width: 50px;
    height: 50px;
    object-fit: cover;
  }

  .dataTables_filter {
    text-align: left !important;
  }

  .upload-buttons {
    position: relative;
    right: 1.5rem;
    margin-bottom: 1rem;
    z-index: 1;
  }

  .dt-buttons {
    margin-bottom: 1rem;
  }

  div.dataTables_wrapper div.dataTables_filter input {
    margin-left: 0 !important;
  }
}

.stepper-container {
  width: 100%;
  padding-bottom: 20px;
}

.stepper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.stepper-item.completed:not(:last-child)::after {
  background-color: #4A6FFF;
}

.step-counter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.stepper-item.active .step-counter {
  border-color: #4A6FFF;
  background-color: #4A6FFF;
}

.stepper-item.completed .step-counter {
  background-color: #4A6FFF;
  border-color: #4A6FFF;
}

.checkmark {
  color: white;
}

.step-name {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

.stepper-item.active .step-name {
  color: #4A6FFF;
  font-weight: 500;
}

.upload-title {
  text-align: left;

  h2 {
    margin-bottom: 15px;
    font-size: 20px;
  }

  p {
    max-width: 493px;
    margin-bottom: 35px;
    font-size: 16px;
  }
}

.mp4a-upload {
 .upload_wrap {
    padding-bottom: 0;
  }

  .upload-input {
    display: flex;
    max-width: 493px;
    height: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .upload-list {
    padding-left: 40px;

    h3 {
      font-size: 18px;
    }
  }

  ul {
    padding: 0;
  }

  li {
    padding-bottom: 12px;
    font-size: 14px;
    text-align: left;
    list-style-type: none;

    p {
      padding-bottom: 0;
      margin-bottom: 0;
    }
  }
}

.menu-toggle {
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 12px 15px;
}

.dropdown-button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: #e1e5ee;
  padding: 12px 15px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.dropdown-button:hover {
  background-color: #3d4058;
}

.dropdown-menu {
  right: 0;
}

.dropdown-menu form:not(:last-child) .dropdown-button {
  border-bottom: 1px solid #3a3f55;
}

.encoded-files {
  .upload-list {
    height: max-content;
    margin: auto;
  }
}

.select2-search__field {
  color: var(--bs-body-color) !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
