/**
Ion.RangeSlider, 2.3.1
© Denis Ineshin, 2010 - 2019, IonDen.com
Build date: 2019-12-19 16:51:02
*/
.irs {
  position: relative;
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-size: 12px;
  font-family: Arial, sans-serif;
}
.irs-line {
  position: relative;
  display: block;
  overflow: hidden;
  outline: none !important;
}
.irs-bar {
  position: absolute;
  display: block;
  left: 0;
  width: 0;
}
.irs-shadow {
  position: absolute;
  display: none;
  left: 0;
  width: 0;
}
.irs-handle {
  position: absolute;
  display: block;
  box-sizing: border-box;
  cursor: default;
  z-index: 1;
}
.irs-handle.type_last {
  z-index: 2;
}
.irs-min,
.irs-max {
  position: absolute;
  display: block;
  cursor: default;
}
.irs-min {
  left: 0;
}
.irs-max {
  right: 0;
}
.irs-from,
.irs-to,
.irs-single {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  cursor: default;
  white-space: nowrap;
}
.irs-grid {
  position: absolute;
  display: none;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
}
.irs-with-grid .irs-grid {
  display: block;
}
.irs-grid-pol {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  background: #000;
}
.irs-grid-pol.small {
  height: 4px;
}
.irs-grid-text {
  position: absolute;
  bottom: 0;
  left: 0;
  white-space: nowrap;
  text-align: center;
  font-size: 9px;
  line-height: 9px;
  padding: 0 3px;
  color: #000;
}
.irs-disable-mask {
  position: absolute;
  display: block;
  top: 0;
  left: -1%;
  width: 102%;
  height: 100%;
  cursor: default;
  background: rgba(0, 0, 0, 0);
  z-index: 2;
}
.lt-ie9 .irs-disable-mask {
  background: #000;
  filter: alpha(opacity=0);
  cursor: not-allowed;
}
.irs-disabled {
  opacity: 0.4;
}
.irs-hidden-input {
  position: absolute !important;
  display: block !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  outline: none !important;
  z-index: -9999 !important;
  background: none !important;
  border-style: solid !important;
  border-color: transparent !important;
}
.irs--flat {
  height: 40px;
}
.irs--flat.irs-with-grid {
  height: 60px;
}
.irs--flat .irs-line {
  top: 25px;
  height: 12px;
  background-color: #e1e4e9;
  border-radius: 4px;
}
.irs--flat .irs-bar {
  top: 25px;
  height: 12px;
  background-color: #ed5565;
}
.irs--flat .irs-bar--single {
  border-radius: 4px 0 0 4px;
}
.irs--flat .irs-shadow {
  height: 1px;
  bottom: 16px;
  background-color: #e1e4e9;
}
.irs--flat .irs-handle {
  top: 22px;
  width: 16px;
  height: 18px;
  background-color: transparent;
}
.irs--flat .irs-handle > i:first-child {
  position: absolute;
  display: block;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background-color: #da4453;
}
.irs--flat .irs-handle.state_hover > i:first-child,
.irs--flat .irs-handle:hover > i:first-child {
  background-color: #a43540;
}
.irs--flat .irs-min,
.irs--flat .irs-max {
  top: 0;
  padding: 1px 3px;
  color: #999;
  font-size: 10px;
  line-height: 1.333;
  text-shadow: none;
  background-color: #e1e4e9;
  border-radius: 4px;
}
.irs--flat .irs-from,
.irs--flat .irs-to,
.irs--flat .irs-single {
  color: white;
  font-size: 10px;
  line-height: 1.333;
  text-shadow: none;
  padding: 1px 5px;
  background-color: #ed5565;
  border-radius: 4px;
}
.irs--flat .irs-from:before,
.irs--flat .irs-to:before,
.irs--flat .irs-single:before {
  position: absolute;
  display: block;
  content: "";
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -3px;
  overflow: hidden;
  border: 3px solid transparent;
  border-top-color: #ed5565;
}
.irs--flat .irs-grid-pol {
  background-color: #e1e4e9;
}
.irs--flat .irs-grid-text {
  color: #999;
}
.irs--big {
  height: 55px;
}
.irs--big.irs-with-grid {
  height: 70px;
}
.irs--big .irs-line {
  top: 33px;
  height: 12px;
  background-color: white;
  background: linear-gradient(to bottom, #ddd -50%, white 150%);
  border: 1px solid #ccc;
  border-radius: 12px;
}
.irs--big .irs-bar {
  top: 33px;
  height: 12px;
  background-color: #92bce0;
  border: 1px solid #428bca;
  background: linear-gradient(to bottom, #ffffff 0%, #428bca 30%, #b9d4ec 100%);
  box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.5);
}
.irs--big .irs-bar--single {
  border-radius: 12px 0 0 12px;
}
.irs--big .irs-shadow {
  height: 1px;
  bottom: 16px;
  background-color: rgba(66, 139, 202, 0.5);
}
.irs--big .irs-handle {
  top: 25px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background-color: #cbcfd5;
  background: linear-gradient(to bottom, white 0%, #B4B9BE 30%, white 100%);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2), inset 0 0 3px 1px white;
  border-radius: 30px;
}
.irs--big .irs-handle.state_hover,
.irs--big .irs-handle:hover {
  border-color: rgba(0, 0, 0, 0.45);
  background-color: #939ba7;
  background: linear-gradient(to bottom, white 0%, #919BA5 30%, white 100%);
}
.irs--big .irs-min,
.irs--big .irs-max {
  top: 0;
  padding: 1px 5px;
  color: white;
  text-shadow: none;
  background-color: #9f9f9f;
  border-radius: 3px;
}
.irs--big .irs-from,
.irs--big .irs-to,
.irs--big .irs-single {
  color: white;
  text-shadow: none;
  padding: 1px 5px;
  background-color: #428bca;
  background: linear-gradient(to bottom, #428bca 0%, #3071a9 100%);
  border-radius: 3px;
}
.irs--big .irs-grid-pol {
  background-color: #428bca;
}
.irs--big .irs-grid-text {
  color: #428bca;
}
.irs--modern {
  height: 55px;
}
.irs--modern.irs-with-grid {
  height: 55px;
}
.irs--modern .irs-line {
  top: 25px;
  height: 5px;
  background-color: #d1d6e0;
  background: linear-gradient(to bottom, #e0e4ea 0%, #d1d6e0 100%);
  border: 1px solid #a3adc1;
  border-bottom-width: 0;
  border-radius: 5px;
}
.irs--modern .irs-bar {
  top: 25px;
  height: 5px;
  background: #20b426;
  background: linear-gradient(to bottom, #20b426 0%, #18891d 100%);
}
.irs--modern .irs-bar--single {
  border-radius: 5px 0 0 5px;
}
.irs--modern .irs-shadow {
  height: 1px;
  bottom: 21px;
  background-color: rgba(209, 214, 224, 0.5);
}
.irs--modern .irs-handle {
  top: 37px;
  width: 12px;
  height: 13px;
  border: 1px solid #a3adc1;
  border-top-width: 0;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 3px 3px;
}
.irs--modern .irs-handle > i:nth-child(1) {
  position: absolute;
  display: block;
  top: -4px;
  left: 1px;
  width: 6px;
  height: 6px;
  border: 1px solid #a3adc1;
  background: white;
  transform: rotate(45deg);
}
.irs--modern .irs-handle > i:nth-child(2) {
  position: absolute;
  display: block;
  box-sizing: border-box;
  top: 0;
  left: 0;
  width: 10px;
  height: 12px;
  background: #e9e6e6;
  background: linear-gradient(to bottom, white 0%, #e9e6e6 100%);
  border-radius: 0 0 3px 3px;
}
.irs--modern .irs-handle > i:nth-child(3) {
  position: absolute;
  display: block;
  box-sizing: border-box;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 5px;
  border-left: 1px solid #a3adc1;
  border-right: 1px solid #a3adc1;
}
.irs--modern .irs-handle.state_hover,
.irs--modern .irs-handle:hover {
  border-color: #7685a2;
  background: #c3c7cd;
  background: linear-gradient(to bottom, #ffffff 0%, #919ba5 30%, #ffffff 100%);
}
.irs--modern .irs-handle.state_hover > i:nth-child(1),
.irs--modern .irs-handle:hover > i:nth-child(1) {
  border-color: #7685a2;
}
.irs--modern .irs-handle.state_hover > i:nth-child(3),
.irs--modern .irs-handle:hover > i:nth-child(3) {
  border-color: #48536a;
}
.irs--modern .irs-min,
.irs--modern .irs-max {
  top: 0;
  font-size: 10px;
  line-height: 1.333;
  text-shadow: none;
  padding: 1px 5px;
  color: white;
  background-color: #d1d6e0;
  border-radius: 5px;
}
.irs--modern .irs-from,
.irs--modern .irs-to,
.irs--modern .irs-single {
  font-size: 10px;
  line-height: 1.333;
  text-shadow: none;
  padding: 1px 5px;
  background-color: #20b426;
  color: white;
  border-radius: 5px;
}
.irs--modern .irs-from:before,
.irs--modern .irs-to:before,
.irs--modern .irs-single:before {
  position: absolute;
  display: block;
  content: "";
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -3px;
  overflow: hidden;
  border: 3px solid transparent;
  border-top-color: #20b426;
}
.irs--modern .irs-grid {
  height: 25px;
}
.irs--modern .irs-grid-pol {
  background-color: #dedede;
}
.irs--modern .irs-grid-text {
  color: silver;
  font-size: 13px;
}
.irs--sharp {
  height: 50px;
  font-size: 12px;
  line-height: 1;
}
.irs--sharp.irs-with-grid {
  height: 57px;
}
.irs--sharp .irs-line {
  top: 30px;
  height: 2px;
  background-color: black;
  border-radius: 2px;
}
.irs--sharp .irs-bar {
  top: 30px;
  height: 2px;
  background-color: #ee22fa;
}
.irs--sharp .irs-bar--single {
  border-radius: 2px 0 0 2px;
}
.irs--sharp .irs-shadow {
  height: 1px;
  bottom: 21px;
  background-color: rgba(0, 0, 0, 0.5);
}
.irs--sharp .irs-handle {
  top: 25px;
  width: 10px;
  height: 10px;
  background-color: #a804b2;
}
.irs--sharp .irs-handle > i:first-child {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #a804b2;
}
.irs--sharp .irs-handle.state_hover,
.irs--sharp .irs-handle:hover {
  background-color: black;
}
.irs--sharp .irs-handle.state_hover > i:first-child,
.irs--sharp .irs-handle:hover > i:first-child {
  border-top-color: black;
}
.irs--sharp .irs-min,
.irs--sharp .irs-max {
  color: white;
  font-size: 14px;
  line-height: 1;
  top: 0;
  padding: 3px 4px;
  opacity: 0.4;
  background-color: #a804b2;
  border-radius: 2px;
}
.irs--sharp .irs-from,
.irs--sharp .irs-to,
.irs--sharp .irs-single {
  font-size: 14px;
  line-height: 1;
  text-shadow: none;
  padding: 3px 4px;
  background-color: #a804b2;
  color: white;
  border-radius: 2px;
}
.irs--sharp .irs-from:before,
.irs--sharp .irs-to:before,
.irs--sharp .irs-single:before {
  position: absolute;
  display: block;
  content: "";
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -3px;
  overflow: hidden;
  border: 3px solid transparent;
  border-top-color: #a804b2;
}
.irs--sharp .irs-grid {
  height: 25px;
}
.irs--sharp .irs-grid-pol {
  background-color: #dedede;
}
.irs--sharp .irs-grid-text {
  color: silver;
  font-size: 13px;
}
.irs--round {
  height: 50px;
}
.irs--round.irs-with-grid {
  height: 65px;
}
.irs--round .irs-line {
  top: 36px;
  height: 4px;
  background-color: #dee4ec;
  border-radius: 4px;
}
.irs--round .irs-bar {
  top: 36px;
  height: 4px;
  background-color: #006cfa;
}
.irs--round .irs-bar--single {
  border-radius: 4px 0 0 4px;
}
.irs--round .irs-shadow {
  height: 4px;
  bottom: 21px;
  background-color: rgba(222, 228, 236, 0.5);
}
.irs--round .irs-handle {
  top: 26px;
  width: 24px;
  height: 24px;
  border: 4px solid #006cfa;
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 255, 0.3);
}
.irs--round .irs-handle.state_hover,
.irs--round .irs-handle:hover {
  background-color: #f0f6ff;
}
.irs--round .irs-min,
.irs--round .irs-max {
  color: #333;
  font-size: 14px;
  line-height: 1;
  top: 0;
  padding: 3px 5px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
  font-size: 14px;
  line-height: 1;
  text-shadow: none;
  padding: 3px 5px;
  background-color: #006cfa;
  color: white;
  border-radius: 4px;
}
.irs--round .irs-from:before,
.irs--round .irs-to:before,
.irs--round .irs-single:before {
  position: absolute;
  display: block;
  content: "";
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -3px;
  overflow: hidden;
  border: 3px solid transparent;
  border-top-color: #006cfa;
}
.irs--round .irs-grid {
  height: 25px;
}
.irs--round .irs-grid-pol {
  background-color: #dedede;
}
.irs--round .irs-grid-text {
  color: silver;
  font-size: 13px;
}
.irs--square {
  height: 50px;
}
.irs--square.irs-with-grid {
  height: 60px;
}
.irs--square .irs-line {
  top: 31px;
  height: 4px;
  background-color: #dedede;
}
.irs--square .irs-bar {
  top: 31px;
  height: 4px;
  background-color: black;
}
.irs--square .irs-shadow {
  height: 2px;
  bottom: 21px;
  background-color: #dedede;
}
.irs--square .irs-handle {
  top: 25px;
  width: 16px;
  height: 16px;
  border: 3px solid black;
  background-color: white;
  transform: rotate(45deg);
}
.irs--square .irs-handle.state_hover,
.irs--square .irs-handle:hover {
  background-color: #f0f6ff;
}
.irs--square .irs-min,
.irs--square .irs-max {
  color: #333;
  font-size: 14px;
  line-height: 1;
  top: 0;
  padding: 3px 5px;
  background-color: rgba(0, 0, 0, 0.1);
}
.irs--square .irs-from,
.irs--square .irs-to,
.irs--square .irs-single {
  font-size: 14px;
  line-height: 1;
  text-shadow: none;
  padding: 3px 5px;
  background-color: black;
  color: white;
}
.irs--square .irs-grid {
  height: 25px;
}
.irs--square .irs-grid-pol {
  background-color: #dedede;
}
.irs--square .irs-grid-text {
  color: silver;
  font-size: 11px;
}

@charset "UTF-8";
/**
 * Стили для кастомных селектов и выпадающих меню
 * Переиспользуемые компоненты
 */
select.custom-select {
  display: none !important;
}

.select-wrapper {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  display: inline-block;
  width: auto;
}
.select-wrapper#model-select-wrapper .select-icon {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.select-wrapper#model-select-wrapper .select-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: none;
}
.select-wrapper#model-select-wrapper .option-icon {
  width: 1.5rem;
  height: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.select-wrapper#aspect-ratio-select-wrapper .select-option {
  justify-content: flex-start;
}

.icon-ratio {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  position: relative;
}
.icon-ratio::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: calc(100% * var(--aspect-two) / var(--aspect-one));
  max-height: 100%;
  max-width: calc(100% * var(--aspect-one) / var(--aspect-two));
  border: 1px solid #888;
  border-radius: 2px;
}

.select-trigger {
  position: relative;
  width: 100%;
  background: var(--bg-secondary, #18181b);
  border: 1px solid var(--border-color, #3f3f46);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary, #ffffff);
  padding: 8px 40px 8px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.select-trigger:hover {
  background: var(--bg-hover, rgba(63, 63, 70, 0.5));
  border-color: var(--border-hover, #52525b);
}
.select-trigger__content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.select-trigger__content .select-icon,
.select-trigger__content .option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.select-trigger__content .select-icon svg,
.select-trigger__content .option-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}
.select-trigger__content .option-icon {
  font-size: 1.1rem;
}
.select-trigger__content .option-icon svg {
  width: 18px;
  height: 18px;
}
.select-trigger__content span:first-child {
  color: var(--text-secondary, #a1a1aa);
}
.select-trigger__content span:last-child,
.select-trigger__content .select-value {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a1a1aa;
}
.select-trigger__content .range-wrapper {
  width: 100%;
  background-color: #252525;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  display: flex;
  align-items: center;
}
.select-trigger__content .irs-hidden-input {
  opacity: 0;
  visibility: hidden;
}
.select-trigger__content .irs {
  width: 100%;
  height: 16px;
}
.select-trigger__content .irs .irs-line {
  top: 6px;
  height: 4px;
  background-color: #888;
}
.select-trigger__content .irs .irs-bar {
  top: 6px;
  height: 4px;
  background: linear-gradient(180deg, #3A83F5 0%, #07B6D5 100%);
}
.select-trigger__content .irs .irs-handle {
  top: 0;
  width: 10px;
  height: 16px;
  background-color: #DBDBDB;
  border-radius: 1.125rem;
  cursor: pointer;
}
.select-trigger__content .irs .irs-handle i {
  display: none;
}
.select-trigger__content .irs .irs-single {
  display: none;
}
.select-trigger__content .irs .irs-min,
.select-trigger__content .irs .irs-max {
  display: none;
}
.select-trigger__content .range-value {
  min-width: 48px;
  text-align: right;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #A1A1A1;
  font-weight: 400;
  padding-left: 0.5rem;
}
.select-trigger__content .random-number {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
}
.select-trigger__content .random-number .number-input {
  width: 100%;
}
.select-trigger__content .random-btn {
  padding: 2px;
  display: flex;
  cursor: pointer;
  transition: all 0.2s ease;
}
.select-trigger__content .random-btn:hover {
  transform: scale(1.05);
}
.select-trigger__content .random-btn.clicked {
  transform: scale(0.95);
  opacity: 0.8;
}
.select-trigger__arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-secondary, #a1a1aa);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.select-trigger[aria-expanded=true] .select-trigger__arrow {
  transform: translateY(-50%) rotate(180deg);
}

.select-wrapper .select-trigger__arrow {
  transform: translateY(-50%) rotate(0deg);
}
.select-wrapper.dropdown-up:not(.hidden) .select-trigger__arrow {
  transform: translateY(-50%) rotate(180deg);
}
.select-wrapper.dropdown-down:not(.hidden) .select-trigger__arrow {
  transform: translateY(-50%) rotate(0deg);
}

.select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 100%;
  max-height: 240px;
  background: rgba(29, 29, 29, 0.8);
  border-radius: 12px;
  z-index: 1000;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: all 0.15s ease;
}
.select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.select-dropdown::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, rgba(156, 163, 175, 0.5));
  border-radius: 3px;
}
.select-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover, rgba(156, 163, 175, 0.7));
}
.select-dropdown.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
}

.select-option,
.custom-option,
.model-option,
.version-option,
.ratio-option,
.resolution-option,
.duration-option,
.style-option,
.quality-option,
.fps-option {
  width: 100%;
  font-size: 0.875rem;
  line-height: 1rem;
  color: #DBDBDB;
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  margin: 0;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}
.select-option:not(:last-child),
.custom-option:not(:last-child),
.model-option:not(:last-child),
.version-option:not(:last-child),
.ratio-option:not(:last-child),
.resolution-option:not(:last-child),
.duration-option:not(:last-child),
.style-option:not(:last-child),
.quality-option:not(:last-child),
.fps-option:not(:last-child) {
  margin-bottom: 0.25rem;
}
.select-option:hover,
.custom-option:hover,
.model-option:hover,
.version-option:hover,
.ratio-option:hover,
.resolution-option:hover,
.duration-option:hover,
.style-option:hover,
.quality-option:hover,
.fps-option:hover {
  background: rgba(42, 42, 42, 0.95);
}
.select-option.selected,
.custom-option.selected,
.model-option.selected,
.version-option.selected,
.ratio-option.selected,
.resolution-option.selected,
.duration-option.selected,
.style-option.selected,
.quality-option.selected,
.fps-option.selected {
  background: linear-gradient(180deg, #3A83F5 0%, #07B6D5 100%);
  color: #fff;
}
.select-option.selected .icon-ratio::before,
.custom-option.selected .icon-ratio::before,
.model-option.selected .icon-ratio::before,
.version-option.selected .icon-ratio::before,
.ratio-option.selected .icon-ratio::before,
.resolution-option.selected .icon-ratio::before,
.duration-option.selected .icon-ratio::before,
.style-option.selected .icon-ratio::before,
.quality-option.selected .icon-ratio::before,
.fps-option.selected .icon-ratio::before {
  border-color: #fff;
}
.select-option .option-icon,
.custom-option .option-icon,
.model-option .option-icon,
.version-option .option-icon,
.ratio-option .option-icon,
.resolution-option .option-icon,
.duration-option .option-icon,
.style-option .option-icon,
.quality-option .option-icon,
.fps-option .option-icon {
  margin-right: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}
.select-option .option-text,
.custom-option .option-text,
.model-option .option-text,
.version-option .option-text,
.ratio-option .option-text,
.resolution-option .option-text,
.duration-option .option-text,
.style-option .option-text,
.quality-option .option-text,
.fps-option .option-text {
  flex: 1;
}

.select-search-input {
  width: calc(100% - 16px);
  margin: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary, #27272a);
  border: 1px solid var(--border-color, #3f3f46);
  border-radius: 6px;
  color: var(--text-primary, #ffffff);
  font-size: 14px;
  outline: none;
}
.select-search-input::-moz-placeholder {
  color: var(--text-secondary, #a1a1aa);
}
.select-search-input::placeholder {
  color: var(--text-secondary, #a1a1aa);
}
.select-search-input:focus {
  border-color: var(--accent-color, #3b82f6);
}

.dropdown-menu {
  position: fixed;
  min-width: 180px;
  max-width: 280px;
  background: rgba(29, 29, 29, 0.5);
  border-radius: 0.5rem;
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 192px;
    max-width: 192px;
    padding: 0.25rem;
  }
}
.dropdown-menu.hidden {
  opacity: 0;
  visibility: hidden;
}
.dropdown-menu.menu-uploaded .menu-divider {
  display: block;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1rem;
  color: #DBDBDB;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0.5rem;
}
.menu-item:hover {
  background: rgba(42, 42, 42, 0.95);
}
.menu-item:active {
  background: linear-gradient(180deg, #3A83F5 0%, #07B6D5 100%);
  color: #fff;
}
@media (max-width: 768px) {
  .menu-item {
    font-size: 0.75rem;
    padding: 0.25rem;
    color: #A1A1A1;
  }
  .menu-item:active .menu-icon {
    color: #fff;
  }
}
.menu-item .menu-icon {
  display: flex;
  align-items: center;
  margin-right: 0.375rem;
  width: 1rem;
  height: 1rem;
  color: #fff;
}
@media (max-width: 768px) {
  .menu-item .menu-icon {
    color: #A1A1A1;
    margin-right: 1rem;
  }
}
.menu-item .menu-icon svg {
  width: 100%;
  height: 100%;
}
.menu-item .menu-text {
  flex: 1;
  font-weight: 400;
}
.menu-item[data-item-id*=delete], .menu-item[data-item-id*=remove] {
  color: #f87171;
}
.menu-item[data-item-id*=delete]:hover, .menu-item[data-item-id*=remove]:hover {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}
.menu-item[data-item-id*=edit]:hover {
  background: var(--warning-bg, rgba(245, 158, 11, 0.1));
  color: var(--warning-color, #f59e0b);
}
.menu-item[data-item-id*=add]:hover, .menu-item[data-item-id*=create]:hover {
  background: var(--success-bg, rgba(34, 197, 94, 0.1));
  color: var(--success-color, #22c55e);
}

.menu-divider {
  display: none;
  height: 1px;
  background: var(--border-color, #3f3f46);
  margin: 4px 12px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .select-dropdown {
    max-height: 200px;
    font-size: 16px;
  }
}
.theme-light {
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8f9fa;
  --bg-hover: rgba(0, 0, 0, 0.05);
  --border-color: #e5e7eb;
  --border-hover: #d1d5db;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --accent-color: #3b82f6;
  --accent-shadow: rgba(59, 130, 246, 0.1);
  --option-hover: rgba(59, 130, 246, 0.08);
  --option-selected: rgba(59, 130, 246, 0.12);
  --scrollbar-thumb: rgba(0, 0, 0, 0.2);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.3);
  --danger-color: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --warning-color: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --success-color: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
}
.select-loading {
  pointer-events: none;
  opacity: 0.6;
}
.select-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color, #3f3f46);
  border-top: 2px solid var(--accent-color, #3b82f6);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
.select-wrapper--small .select-trigger {
  min-height: 32px;
  padding: 6px 32px 6px 10px;
  font-size: 13px;
}
.select-wrapper--small .select-trigger__arrow {
  right: 10px;
  width: 14px;
  height: 14px;
}

.select-wrapper--large .select-trigger {
  min-height: 44px;
  padding: 12px 44px 12px 16px;
  font-size: 16px;
}
.select-wrapper--large .select-trigger__arrow {
  right: 16px;
  width: 18px;
  height: 18px;
}

.fade {
  transition: opacity 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
  .fade {
    transition: none;
  }
}
.fade:not(.show) {
  opacity: 0;
}

.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .collapsing {
    transition: none;
  }
}
.collapsing.collapse-horizontal {
  width: 0;
  height: auto;
  transition: width 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .collapsing.collapse-horizontal {
    transition: none;
  }
}

.modal {
  --bs-modal-zindex: 1055;
  --bs-modal-width: 500px;
  --bs-modal-padding: 1rem;
  --bs-modal-margin: 0.5rem;
  --bs-modal-color: ;
  --bs-modal-bg: var(--bs-body-bg);
  --bs-modal-border-color: var(--bs-border-color-translucent);
  --bs-modal-border-width: var(--bs-border-width);
  --bs-modal-border-radius: var(--bs-border-radius-lg);
  --bs-modal-box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-body-color-rgb), 0.075);
  --bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));
  --bs-modal-header-padding-x: 1rem;
  --bs-modal-header-padding-y: 1rem;
  --bs-modal-header-padding: 1rem 1rem;
  --bs-modal-header-border-color: var(--bs-border-color);
  --bs-modal-header-border-width: var(--bs-border-width);
  --bs-modal-title-line-height: 1.5;
  --bs-modal-footer-gap: 0.5rem;
  --bs-modal-footer-bg: ;
  --bs-modal-footer-border-color: var(--bs-border-color);
  --bs-modal-footer-border-width: var(--bs-border-width);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--bs-modal-zindex);
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: var(--bs-modal-margin);
  pointer-events: none;
}
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}
.modal.show .modal-dialog {
  transform: none;
}
.modal.modal-static .modal-dialog {
  transform: scale(1.02);
}

.modal-dialog-scrollable {
  height: calc(100% - var(--bs-modal-margin) * 2);
}
.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - var(--bs-modal-margin) * 2);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--bs-modal-color);
  pointer-events: auto;
  background-color: var(--bs-modal-bg);
  background-clip: padding-box;
  border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
  border-radius: var(--bs-modal-border-radius);
  outline: 0;
}

.modal-backdrop {
  --bs-backdrop-zindex: 1050;
  --bs-backdrop-bg: #000;
  --bs-backdrop-opacity: 0.5;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--bs-backdrop-zindex);
  width: 100vw;
  height: 100vh;
  background-color: var(--bs-backdrop-bg);
}
.modal-backdrop.fade {
  opacity: 0;
}
.modal-backdrop.show {
  opacity: var(--bs-backdrop-opacity);
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: var(--bs-modal-header-padding);
  border-bottom: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
  border-top-left-radius: var(--bs-modal-inner-border-radius);
  border-top-right-radius: var(--bs-modal-inner-border-radius);
}
.modal-header .btn-close {
  padding: calc(var(--bs-modal-header-padding-y) * 0.5) calc(var(--bs-modal-header-padding-x) * 0.5);
  margin: calc(-0.5 * var(--bs-modal-header-padding-y)) calc(-0.5 * var(--bs-modal-header-padding-x)) calc(-0.5 * var(--bs-modal-header-padding-y)) auto;
}

.modal-title {
  margin-bottom: 0;
  line-height: var(--bs-modal-title-line-height);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: var(--bs-modal-padding);
}

.modal-footer {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * 0.5);
  background-color: var(--bs-modal-footer-bg);
  border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
  border-bottom-right-radius: var(--bs-modal-inner-border-radius);
  border-bottom-left-radius: var(--bs-modal-inner-border-radius);
}
.modal-footer > * {
  margin: calc(var(--bs-modal-footer-gap) * 0.5);
}

@media (min-width: 576px) {
  .modal {
    --bs-modal-margin: 1.75rem;
    --bs-modal-box-shadow: 0 0.5rem 1rem rgba(var(--bs-body-color-rgb), 0.15);
  }
  .modal-dialog {
    max-width: var(--bs-modal-width);
    margin-right: auto;
    margin-left: auto;
  }
  .modal-sm {
    --bs-modal-width: 300px;
  }
}
@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    --bs-modal-width: 800px;
  }
}
@media (min-width: 1200px) {
  .modal-xl {
    --bs-modal-width: 1140px;
  }
}
.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}
.modal-fullscreen .modal-content {
  height: 100%;
  border: 0;
  border-radius: 0;
}
.modal-fullscreen .modal-header,
.modal-fullscreen .modal-footer {
  border-radius: 0;
}
.modal-fullscreen .modal-body {
  overflow-y: auto;
}

@media (max-width: 575.98px) {
  .modal-fullscreen-sm-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-sm-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-sm-down .modal-header,
  .modal-fullscreen-sm-down .modal-footer {
    border-radius: 0;
  }
  .modal-fullscreen-sm-down .modal-body {
    overflow-y: auto;
  }
}
@media (max-width: 767.98px) {
  .modal-fullscreen-md-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-md-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-md-down .modal-header,
  .modal-fullscreen-md-down .modal-footer {
    border-radius: 0;
  }
  .modal-fullscreen-md-down .modal-body {
    overflow-y: auto;
  }
}
@media (max-width: 991.98px) {
  .modal-fullscreen-lg-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-lg-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-lg-down .modal-header,
  .modal-fullscreen-lg-down .modal-footer {
    border-radius: 0;
  }
  .modal-fullscreen-lg-down .modal-body {
    overflow-y: auto;
  }
}
@media (max-width: 1199.98px) {
  .modal-fullscreen-xl-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-xl-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-xl-down .modal-header,
  .modal-fullscreen-xl-down .modal-footer {
    border-radius: 0;
  }
  .modal-fullscreen-xl-down .modal-body {
    overflow-y: auto;
  }
}
@media (max-width: 1399.98px) {
  .modal-fullscreen-xxl-down {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-fullscreen-xxl-down .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-fullscreen-xxl-down .modal-header,
  .modal-fullscreen-xxl-down .modal-footer {
    border-radius: 0;
  }
  .modal-fullscreen-xxl-down .modal-body {
    overflow-y: auto;
  }
}
