@charset "UTF-8";
@font-face {
  font-family: "flowtask";
  src: url("../fonts/icomoon-manager.eot?p0r8fu");
  src: url("../fonts/icomoon-manager.eot?p0r8fu#iefix") format("embedded-opentype"), url("../fonts/icomoon-manager.ttf?p0r8fu") format("truetype"), url("../fonts/icomoon-manager.woff?p0r8fu") format("woff"), url("../fonts/icomoon-manager.svg?p0r8fu#icomoon-manager") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "material";
  src: url("../fonts/material.eot?p0r8fu");
  src: url("../fonts/material.eot?p0r8fu#iefix") format("embedded-opentype"), url("../fonts/material.ttf?p0r8fu") format("truetype"), url("../fonts/material.woff?p0r8fu") format("woff"), url("../fonts/material.svg?p0r8fu#material") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^=icon-], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "flowtask";
  speak-as: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* _reset.scss */
/* Basic global CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.tagify {
  width: 100%;
  padding-top: 5px !important;
}

.tagify--focus {
  z-index: 999999;
}

.tagify__dropdown {
  z-index: 99999 !important;
}
.tagify__dropdown.dialog-dropdown {
  left: 0 !important;
  top: 100% !important;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: system-ui, -apple-system, "Arial", sans-serif;
  background: #ececec;
  color: #000;
  line-height: 1.5;
  font-size: 14px;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.flex-fill {
  flex-grow: 1;
}

.bold {
  font-weight: bold;
}

.italic {
  font-style: italic;
}

.text-center {
  text-align: center;
}

.disabled,
[disabled],
.processing {
  pointer-events: none;
  opacity: 0.3;
}

h1 {
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 0 0.5rem;
  padding: 0;
}

.btn {
  position: relative;
  user-select: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background-color: var(--primary-color, #000);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn small {
  line-height: 1.1;
  text-align: center;
  display: inline-block;
  font-size: 0.75rem;
  white-space: nowrap;
}
.btn:hover {
  background-color: var(--primary-color-dark, #222);
}
.btn.loading::before {
  z-index: 99;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.46);
  background-image: url(../../images/loading.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;
  cursor: not-allowed;
}

@keyframes loading {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.btn-secondary {
  background-color: transparent !important;
  color: #333 !important;
}
.btn-secondary.delete {
  color: #999 !important;
}
.btn-secondary:hover {
  background-color: #eee !important;
}
.btn-secondary:hover.delete {
  background-color: #f00 !important;
  color: #fff !important;
}

.btn-gray {
  background-color: #eee !important;
  color: #333 !important;
}
.btn-gray:hover {
  background-color: #bbb !important;
}

.btn-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  gap: 6px;
}
.btn-icon img {
  margin-bottom: 0.25rem;
}

.delete-prompt {
  background-color: rgb(247, 183, 183) !important;
}
.delete-prompt:hover {
  background-color: rgb(238, 120, 120) !important;
}

.row {
  --gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: var(--gap);
}
.row .col-12, .row div {
  flex: 0 1 100%;
  max-width: 100%;
}
.row .col-6 {
  flex: 1 1 48%;
  max-width: 50%;
}
.row .col-4 {
  flex: 1 1 30%;
  max-width: 33.3333%;
}
.row .col-5 {
  flex: 1 1 40%;
  max-width: 41.6667%;
}
.row .col-7 {
  flex: 1 1 55%;
  max-width: 58.3333%;
}
.row .col-8 {
  flex: 1 1 65%;
  max-width: 66.6667%;
}
@media (min-width: 1000px) {
  .row .col-md-6 {
    flex: 1 1 calc(50% - var(--gap) / 2);
    max-width: 50%;
  }
  .row .col-md-4 {
    flex: 1 1 calc(33.3333% - var(--gap) / 2);
    max-width: 33.3333%;
  }
  .row .col-md-5 {
    flex: 1 1 calc(41.6667% - var(--gap) / 2);
    max-width: 41.6667%;
  }
  .row .col-md-7 {
    flex: 1 1 calc(58.3333% - var(--gap) / 2);
    max-width: 58.3333%;
  }
  .row .col-md-8 {
    flex: 1 1 calc(66.6667% - var(--gap) / 2);
    max-width: 66.6667%;
  }
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 0.75rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.mt-5 {
  margin-top: 1.25rem !important;
}

.mt-6 {
  margin-top: 1.5rem !important;
}

.mt-7 {
  margin-top: 1.75rem !important;
}

.mt-8 {
  margin-top: 2rem !important;
}

.mt-9 {
  margin-top: 2.25rem !important;
}

.mt-10 {
  margin-top: 2.5rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 0.75rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mb-5 {
  margin-bottom: 1.25rem !important;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}

.mb-7 {
  margin-bottom: 1.75rem !important;
}

.mb-8 {
  margin-bottom: 2rem !important;
}

.mb-9 {
  margin-bottom: 2.25rem !important;
}

.mb-10 {
  margin-bottom: 2.5rem !important;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-5 {
  margin-left: 1.25rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

.ml-7 {
  margin-left: 1.75rem;
}

.ml-8 {
  margin-left: 2rem;
}

.ml-9 {
  margin-left: 2.25rem;
}

.ml-10 {
  margin-left: 2.5rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mr-5 {
  margin-right: 1.25rem;
}

.mr-6 {
  margin-right: 1.5rem;
}

.mr-7 {
  margin-right: 1.75rem;
}

.mr-8 {
  margin-right: 2rem;
}

.mr-9 {
  margin-right: 2.25rem;
}

.mr-10 {
  margin-right: 2.5rem;
}

.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-5 {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.mx-6 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.mx-7 {
  margin-left: 1.75rem;
  margin-right: 1.75rem;
}

.mx-8 {
  margin-left: 2rem;
  margin-right: 2rem;
}

.mx-9 {
  margin-left: 2.25rem;
  margin-right: 2.25rem;
}

.mx-10 {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-5 {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-7 {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.my-9 {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

.my-10 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-top: 6px;
}
.toggle-label input[type=checkbox] {
  display: none;
}
.toggle-label .toggle-slider {
  position: relative;
  width: 40px;
  height: 22px;
  background: #d0d5dd;
  border-radius: 11px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle-label .toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-label input:checked + .toggle-slider {
  background: #27ae60;
}
.toggle-label input:checked + .toggle-slider::after {
  transform: translateX(18px);
}
.toggle-label .toggle-text {
  font-size: 14px;
  color: #344054;
}

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast.toast-success {
  background: #27ae60;
}
.toast.toast-error {
  background: #c0392b;
}
.toast.toast-info {
  background: #2980b9;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #667085;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover {
  color: #101828;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.role-checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.role-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.role-checkbox-item input[type=checkbox] {
  display: none;
}
.role-checkbox-item:has(input:checked) {
  background: #eaf4fd;
  border-color: #2980b9;
  color: #1a5f85;
  font-weight: 600;
}

.app {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  justify-content: stretch;
}

.edit-header {
  border-radius: 10px;
  margin-bottom: 15px;
}
.edit-header h1 {
  margin: 0.3rem 0 0.5rem;
}

.main-navigation {
  padding: 20px 0 20px 15px;
}
.main-navigation .logo-link {
  display: flex;
  margin-bottom: 30px;
  text-align: center;
  justify-content: center;
}
.main-navigation .logo-link:hover {
  background-color: transparent !important;
}
.main-navigation .logo-link .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: white;
}
.main-navigation .logo-link .logo span {
  background: linear-gradient(160deg, #F53939 9.84%, #FFC915 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 30px;
  font-weight: 900;
}
.main-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  font-size: 10px;
}
.main-navigation ul .language-switcher {
  position: relative;
}
.main-navigation ul .language-switcher .dropdown {
  position: relative;
}
.main-navigation ul .language-switcher .dropdown .dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.main-navigation ul .language-switcher .dropdown .dropdown-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.main-navigation ul .language-switcher .dropdown .dropdown-content {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 150px;
}
.main-navigation ul .language-switcher .dropdown .dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}
.main-navigation ul .language-switcher .dropdown .dropdown-content a:hover {
  background-color: #f5f5f5;
}
.main-navigation ul .language-switcher .dropdown .dropdown-content a.active {
  background-color: #e3f2fd;
  color: #1976d2;
}
.main-navigation ul .language-switcher .dropdown .dropdown-content a:first-child {
  border-radius: 8px 8px 0 0;
}
.main-navigation ul .language-switcher .dropdown .dropdown-content a:last-child {
  border-radius: 0 0 8px 8px;
}
.main-navigation ul .language-switcher .dropdown:hover .dropdown-content {
  display: block;
}
.main-navigation ul a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  border-radius: 5px;
  color: #000;
  text-decoration: none;
  background-color: #f0f0f0;
}
.main-navigation ul a:hover {
  background-color: #e0e0e0;
}
.main-navigation ul a.active {
  background-color: white;
}

.sub-nav {
  padding-top: 40px;
}
.sub-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sub-nav ul li {
  margin-bottom: 10px;
}
.sub-nav ul li a {
  display: block;
  padding: 10px 15px;
  border-radius: 5px;
  color: #000;
  text-decoration: none;
}
.sub-nav ul li a:hover {
  background-color: #e0e0e0;
}
.sub-nav ul li a.active {
  background-color: #ddd;
}

.main-content {
  flex: 1;
  padding: 20px 20px 20px 15px;
}

.split-view {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 20px;
  max-height: calc(100vh - 16px);
  height: 100%;
}

.view-side {
  width: 250px;
  background-color: #fff;
  padding: 0 20px 20px;
  border-radius: 15px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  height: 100%;
}

.view-main {
  padding: 30px 30px 10px;
  flex: 1;
  background-color: #fff;
  border-radius: 15px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.view-main header {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.view-main header .breadcrumbs {
  opacity: 0.7;
  font-size: 14px;
}
.view-main .view-content {
  position: relative;
  flex-grow: 1;
  overflow: auto;
  max-height: calc(100vh - 116px);
}

.search-input {
  max-width: 300px;
}

body:has(.edit-header) .split-view {
  max-height: calc(100vh - 116px);
}
body:has(.edit-header) .view-main {
  max-height: calc(100vh - 116px);
}
body:has(.edit-header) .view-side {
  max-height: calc(100vh - 116px);
}

.category--hidden {
  opacity: 0.4;
  font-style: italic;
}

.category-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
@media (min-width: 1000px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.category-grid:empty {
  display: none;
}
.category-grid .category-card {
  border-radius: 3px;
  border: 1px solid #C1C1C1;
  opacity: 0.5;
  background: #EBEBEB;
}
.category-grid .category-card.category--hidden {
  opacity: 0.3;
  border-style: dashed;
}
.category-grid .category-card {
  padding: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.25;
  align-items: center;
  cursor: grab;
}
.category-grid .category-card:hover {
  opacity: 0.8;
}
.category-grid .category-card.dragging {
  opacity: 0.3;
  cursor: grabbing;
}
.category-grid .category-card.drag-over {
  opacity: 1;
  border-color: #666;
  outline: 2px dashed #666;
}
.category-grid .edit-link {
  position: relative;
  flex-shrink: 0;
  z-index: 999;
}
.category-grid .category-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}
.category-grid .category-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.category-grid .category-badge--locked {
  background: #ffeaea;
  color: #c00;
  border: 1px solid #f5b8b8;
}
.category-grid .category-badge--weight {
  background: #eaf0ff;
  color: #336;
  border: 1px solid #b8cbf5;
}

.prompt-grid {
  --prompt-card-min-width: 250px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--prompt-card-min-width), 1fr));
  gap: 10px 2px;
}
.prompt-grid .prompt-card {
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  cursor: grab;
  transition: background-color 0.3s, border 0.3s, outline-offset 0.3s;
  border-radius: 8px 8px 10px 10px;
  padding: 3px;
  align-self: flex-start;
}
.prompt-grid .prompt-card.selected {
  border-color: #007bff;
  box-shadow: 0 0 5px 1px rgba(0, 123, 255, 0.5);
}
.prompt-grid .prompt-card:hover {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}
.prompt-grid .prompt-card.dragging {
  opacity: 0.3;
  cursor: grabbing;
}
.prompt-grid .prompt-card.drag-over {
  border-color: #666;
  outline: 2px dashed #666;
  opacity: 0.4;
}
.prompt-grid .prompt-card .prompt-card__info {
  display: flex;
  flex-direction: row;
  margin-top: 5px;
  padding-inline: 4px;
  padding-bottom: 4px;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-card__description {
  display: none;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-card__keyword {
  line-height: 1.2;
  font-weight: bold;
  color: #555;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-card__keyword small {
  font-weight: normal;
  opacity: 0.7;
  font-size: 12px;
  line-height: 1.2;
  display: block;
  margin-top: 2px;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-card__likes {
  font-size: 10px;
  font-weight: 600;
  color: #e05;
  white-space: nowrap;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 5px 0 0 0;
  flex-shrink: 0;
  align-self: flex-start;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-status.green {
  background-color: #21ed76;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-status.red {
  background-color: #e74c3c;
}
.prompt-grid .prompt-card .prompt-card__info .prompt-status.yellow {
  background-color: #f1c40f;
}
.prompt-grid .prompt-card .prompt-card__thumbnail {
  overflow: hidden;
  border-radius: 6px;
  background-color: #b9b9b9;
  position: relative;
}
.prompt-grid .prompt-card .prompt-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.prompt-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0;
}
.prompt-grid.list-view .prompt-card {
  flex-direction: row;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  border-bottom: 1px solid #eee;
}
.prompt-grid.list-view .prompt-card:hover {
  background-color: #eee;
}
.prompt-grid.list-view .prompt-card > .flex-fill {
  display: none;
}
.prompt-grid.list-view .prompt-card .prompt-card__description {
  display: block;
  width: 300px;
  padding-inline: 15px;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: 2.8em;
}
.prompt-grid.list-view .prompt-card .prompt-card__thumbnail {
  width: 80px;
  height: 100px;
  margin-right: 10px;
  order: 0;
}
.prompt-grid.list-view .prompt-card .prompt-card__info {
  flex-direction: row;
  flex-grow: 1;
  order: 1;
}
.prompt-grid.list-view .prompt-card .prompt-card__info .prompt-status {
  margin-bottom: 5px;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 35px;
  background-color: white;
  padding-bottom: 10px;
}

.grid-controls {
  padding: 6px 0;
  background-color: white;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  gap: 15px;
}

.grid-size-controls {
  display: flex;
  gap: 2px;
  background: #f0f0f0;
  border-radius: 30px;
  padding: 2px;
}
.grid-size-controls .grid-size-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.grid-size-controls .grid-size-btn:hover {
  color: #333;
}
.grid-size-controls .grid-size-btn.active {
  background: white;
  color: #333;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.3);
}

.edit-link img {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  margin-top: 2px;
}

.import-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.treeview {
  margin-top: 10px;
  padding-left: 0 !important;
}
.treeview span.highlight {
  background-color: #fffbcc;
  border-radius: 4px;
}
.treeview span.active {
  background-color: #f0f0f0 !important;
  border-radius: 4px;
}
.treeview > ul {
  margin-top: 15px;
}

.small-link {
  font-size: 12px;
  text-decoration: underline;
  line-height: inherit;
}
.small-link:hover {
  text-decoration: underline;
}

.treeview,
.treeview ul {
  list-style: none;
  padding-left: 0.5rem;
  position: relative;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.treeview li {
  position: relative;
  padding-left: 0.3rem;
  margin: 0;
  cursor: pointer !important;
}

.treeview li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0rem;
  bottom: 0;
  width: 1px;
  background: #ccc;
}

.treeview li:first-child::before {
  top: 0;
}

.treeview li::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 8px;
  background: #ccc;
}

.treeview li:last-child::before {
  height: 1rem;
}

.treeview li span {
  position: relative;
  display: block;
  padding: 6px 6px 6px 2.1rem;
  border-radius: 3px;
  cursor: pointer !important;
  line-height: 1.2;
}
.treeview li span:hover {
  background-color: #eee;
}

.treeview li span::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url(../../images/icons/folder.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 1rem;
}

.current_state {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.582);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.current_state.animation-upscaling {
  bottom: 15px;
  animation: animation-upscaling 3s ease-in-out infinite alternate;
}
.current_state.animation-upscaling::after {
  content: "...";
  width: 1ch;
  display: inline-block;
  animation: dot-blink 1s linear infinite alternate;
}

@keyframes dot-blink {
  0% {
    content: ".";
  }
  50% {
    content: "..";
  }
  100% {
    content: "...";
  }
}
@keyframes animation-upscaling {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}
.view-toggle {
  display: inline-block;
}
.view-toggle button {
  background: #f0f0f0;
  border: none;
  padding: 0.2rem 0.2rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: -0.5rem;
}
.view-toggle button .icon {
  opacity: 0.5;
  transition: opacity 0.2s ease;
  padding: 10px;
  position: relative;
}
.view-toggle button .icon img {
  width: 14px !important;
  height: 14px !important;
  z-index: 1;
  position: relative;
  pointer-events: none;
}
.view-toggle button .icon::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  scale: 0;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease, scale 0.2s ease;
}
.view-toggle button .icon:hover {
  opacity: 1;
}
.view-toggle button .icon.active {
  opacity: 1;
}
.view-toggle button .icon.active::before {
  background-color: white;
  border-radius: 50%;
  scale: 1;
}
.view-toggle.input-toggle {
  top: unset !important;
  right: unset !important;
  bottom: 15px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.view-toggle.input-toggle button {
  z-index: 99;
  border: 1px solid white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}
.view-toggle.input-toggle button .icon {
  padding: 6px !important;
  position: relative;
}
.view-toggle.input-toggle button .icon span.title {
  display: inline-block;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0px 1px 6px 0px rgba(255, 255, 255, 0.5);
  top: 0;
  left: 50%;
  transform: translate(-50%, -200%);
  padding: 2px 9px;
  color: white;
  text-shadow: 1px 1px 2px rgb(0, 0, 0);
  backdrop-filter: blur(4px);
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}
.view-toggle.input-toggle button .icon.active span.title {
  opacity: 1;
  transform: translate(-50%, -140%);
}
.view-toggle.input-toggle button .icon:hover span.title {
  opacity: 1 !important;
  transform: translate(-50%, -140%) !important;
}
.view-toggle.input-toggle button .icon:hover.delete::before {
  background-color: #ff7a7a;
}
.view-toggle.input-toggle button .icon:hover.upscale::before {
  background-color: #c3e948;
}
.view-toggle.input-toggle button .icon img {
  width: 16px !important;
  height: 16px !important;
  max-width: unset !important;
}
.view-toggle.input-toggle button:hover .icon.active span.title {
  opacity: 0;
  transform: translate(-50%, -200%);
}

.message {
  display: block;
  padding: 20px;
  border-radius: 8px;
  background-color: black;
  color: white;
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-200px);
  max-width: 800px;
  z-index: 90000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 1;
}
.message.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.message.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-200px);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  position: sticky;
  bottom: 0;
  background-color: white;
  padding-top: 12px;
}
.pagination .pagination-button {
  background-color: #f0f0f0;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.pagination .pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination #pageInfo {
  font-size: 14px;
}

.pagination-button img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.clickZoom {
  transform: translate(0, 0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}
.clickZoom.clone {
  opacity: 0;
}

.zoomed-image {
  left: 0 !important;
  top: 0 !important;
  transform: translate(0, 0) !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.45) !important;
  z-index: 1000 !important;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1 !important;
  cursor: zoom-out !important;
}
.zoomed-image .input-toggle,
.zoomed-image .mainImageButton,
.zoomed-image .current_state {
  display: none !important;
}
.zoomed-image.zoomed-out {
  top: -2000px !important;
}
.zoomed-image .file-drop-delete {
  display: none;
}
.zoomed-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  cursor: zoom-in;
}
.zoomed-image img.zoomed-in {
  cursor: zoom-out;
}

.settings-section {
  border-bottom: 1px solid #ddd;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}
.table th:hover, .table td:hover {
  background-color: rgb(236.25, 236.25, 236.25);
}
.table th {
  background-color: #f2f2f2;
  text-align: left;
}

image-preview[image-current-state=is_upscaling] {
  position: relative;
}
image-preview[image-current-state=is_upscaling]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: var(--current-image-process-time, 0%);
  background: rgb(0, 0, 0);
  z-index: 1;
  transition: width 0.3s ease-in-out;
}
image-preview[image-current-state=is_upscaling] .preview-image {
  filter: blur(2px);
}

.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prompt-list .import-card .images {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.prompt-list .import-card .images .image-wrapper {
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0;
}
.prompt-list .import-card .images .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.prompt-list .import-card .images .image-wrapper .remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.prompt-list .import-card .images .image-wrapper .remove-image:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.image-detail-dialog {
  display: flex;
  flex-direction: row;
  gap: 15px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 0;
  border: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  left: 0;
  top: 0;
  z-index: 2000;
}
.image-detail-dialog:not([open]) {
  display: none;
}
.image-detail-dialog:has(.zoomed-in) .image-actions {
  right: -800px;
  width: 0;
}
.image-detail-dialog .image-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}
.image-detail-dialog .image-detail img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 62px rgba(255, 255, 255, 0.3), 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: zoom-in;
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  will-change: transform, box-shadow, opacity;
}
.image-detail-dialog .image-detail img.zoomed-in {
  cursor: zoom-out;
  scale: 2.35;
}
.image-detail-dialog .image-detail img[src=""] {
  opacity: 0;
}
.image-detail-dialog .image-detail .image-info {
  padding: 10px 6px;
  color: white;
  font-size: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  width: 100%;
}
.image-detail-dialog .image-actions {
  position: relative;
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 400px;
  flex-direction: column;
  overflow-y: auto;
  z-index: 99;
  right: 0;
  transition: right 0.3s ease;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
}
.image-detail-dialog .image-actions .status-full-message {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  align-items: center;
  gap: 8px;
  flex-direction: column;
  justify-content: center;
}
.image-detail-dialog .image-actions .status-full-message.active {
  display: flex;
}
.image-detail-dialog .image-actions .status-full-message .full-message {
  font-weight: 600;
}
.image-detail-dialog .image-actions .status-full-message img.blinking {
  width: 50px;
  height: 50px;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.image-detail-dialog .image-actions .status-full-message .indicator {
  width: 80%;
  height: 6px;
  background-color: #e0e0e0;
}
.image-detail-dialog .image-actions .status-full-message .indicator .bar {
  width: 0%;
  height: 100%;
  background-color: #3e3e3e;
  border-radius: 2px;
  animation: loading 6s linear infinite;
}
@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
.image-detail-dialog .image-actions .actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.image-detail-dialog .image-actions .actions-header .close {
  background: none;
  border: none;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin: 0;
  z-index: 999;
}
.image-detail-dialog .image-actions .process-state {
  width: unset;
  display: inline-block;
}
.image-detail-dialog .image-actions .process-state::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  left: -28px;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 1;
}
.image-detail-dialog .image-actions #image_process_state {
  width: auto;
  max-width: 100%;
  padding: 4px 26px 4px 8px;
  border-radius: 6px;
  background-color: #333;
  color: white;
  line-height: 1;
  border: none;
  height: 26px;
  font-size: 12px;
  position: relative;
  appearance: none;
  text-align: left;
}
.image-detail-dialog .image-actions .image-info {
  padding: 10px;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.image-detail-dialog .image-actions .image-info > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.image-detail-dialog .image-actions .image-info div strong {
  width: 80px;
  display: inline-block;
}
.image-detail-dialog .image-actions .sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-direction: row;
}
.image-detail-dialog .image-actions .sizes span {
  display: inline-block;
  font-size: 12px;
  padding: 1px 4px;
  border-radius: 4px;
  background-color: rgb(228, 228, 228);
  cursor: pointer;
  user-select: none;
}
.image-detail-dialog .image-actions .sizes span:hover {
  background-color: #d4d4d4;
}
.image-detail-dialog .image-actions .sizes span.selected {
  background-color: #3e3e3e;
  color: white;
}
.image-detail-dialog .image-actions .sizes span.selected:hover {
  background-color: #5a5a5a;
}

.queue-component {
  display: block;
  padding: 0 8px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #ddd;
  position: fixed;
  bottom: 90px;
  right: 20px;
  max-width: 380px;
  width: 100%;
  height: 400px;
  overflow: auto;
  z-index: 1500;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.queue-component.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.queue-component h2 {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
  border-bottom: 1px solid #ccc;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
}
.queue-component .queue-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  justify-content: start;
  background-color: white;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  overflow: auto;
  position: sticky;
  top: 0;
  user-select: none;
}
.queue-component .queue-filter > div {
  display: block;
  white-space: nowrap;
  padding: 6px 16px 6px 6px;
  border-radius: 14px;
  font-size: 12px;
  background-color: #eee;
  color: #999;
  margin-left: 4px;
  cursor: pointer;
  user-select: none;
}
.queue-component .queue-filter > div:hover {
  outline: 2px solid #ddd;
}
.queue-component .queue-filter > div span {
  display: inline-block;
  padding: 0px 6px;
  border-radius: 14px;
  margin-right: 3px;
  position: relative;
}
.queue-component .queue-filter > div span::after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  top: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  mix-blend-mode: overlay;
}
.queue-component .queue-filter > div.active.in_process {
  background-color: #DBEAFE;
  color: #2d2d2d;
}
.queue-component .queue-filter > div.active.completed {
  background-color: #D1FAE5;
  color: #0c674c;
}
.queue-component .queue-filter > div.active.in_queue {
  background-color: #FEF3C7;
  color: #92400E;
}
.queue-component .queue-filter > div.active.error {
  background-color: #f8d7da;
  color: #842029;
}
.queue-component .queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 8px 8px;
  border-bottom: 1px solid #eee;
  gap: 10px;
  cursor: pointer;
  flex-wrap: wrap;
}
.queue-component .queue-item:hover {
  background-color: #f9f9f9;
}
.queue-component .queue-item:last-child {
  border-bottom: none;
}
.queue-component .queue-item .title {
  flex-grow: 1;
}
.queue-component .queue-item .status.status--in_queue {
  color: #F59E0B;
}
.queue-component .queue-item .status.status--in_process {
  color: #3B82F6;
}
.queue-component .queue-item .status.status--completed {
  color: #10B981;
}
.queue-component .queue-item .status.status--error {
  color: #EF4444;
}
.queue-component .queue-item .time {
  color: #666;
}
.queue-component .queue-item .img {
  width: 40px;
  height: 40px;
}
.queue-component .queue-item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.queue-toggle-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 1501;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.queue-toggle-button:hover {
  background-color: #5a5a5a;
}
.queue-toggle-button .items-in-queue {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #F59E0B;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.queue-toggle-button .items-in-queue:empty {
  display: none;
}
.queue-toggle-button img {
  width: 24px;
  height: 24px;
}

.context-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: none;
  flex-direction: column;
  min-width: 150px;
}
.context-menu .context-menu-item {
  padding: 6px 15px 6px 10px;
  border-radius: 3px;
  display: flex;
  cursor: pointer;
  font-size: 12px;
  align-items: center;
}
.context-menu .context-menu-item img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  opacity: 0.7;
}
.context-menu .context-menu-item:hover {
  background-color: #f5f5f5;
}

.runpod-queue-info {
  display: block;
  position: sticky;
  bottom: 0;
  background-color: white;
  padding: 10px;
  border-top: 1px solid #ddd;
  font-size: 12px;
}
.runpod-queue-info .number {
  font-weight: bold;
  color: #333;
  display: inline-block;
  padding: 2px;
  border-radius: 20px;
  background-color: #eee;
  aspect-ratio: 1/1;
  width: 20px;
  height: 20px;
  text-align: center;
}

.item_processing {
  position: relative;
}
.item_processing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.item_processing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #ccc;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

.image-wrapper .image-button-group {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.image-wrapper:hover .image-button-group {
  opacity: 1;
  pointer-events: auto;
}

.green-check {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px;
  width: 20px;
  height: 20px;
  background-color: #3cff67;
  border-radius: 50%;
  display: flex;
}
.green-check img {
  margin: auto;
  width: 12px;
  height: 12px;
}

.btn-round {
  border-radius: 50%;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px) !important;
  cursor: pointer;
}
.btn-round img {
  width: 16px !important;
  height: 16px !important;
  pointer-events: none;
}
.btn-round:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.login-page {
  background-image: url(../../images/login_background.png);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}
.login-page .login-container {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 400px;
}
.login-page .login-container h1 {
  text-align: center;
  margin-bottom: 25px;
}
.login-page .login-container .error {
  color: #000;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #ffcccc;
  border: 1px solid #ff0000;
  border-radius: 5px;
}
.login-page .login-container .error.hidden {
  display: none !important;
}
.login-page .login-container .info {
  color: #000;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #d4edda;
  border: 1px solid #28a745;
  border-radius: 5px;
}
.login-page .login-container .info.hidden {
  display: none !important;
}
.login-page .login-container .hidden {
  display: none !important;
}
.login-page .login-container #mfa-form {
  display: flex;
  flex-direction: column;
}
.login-page .login-container #mfa-form .mfa-hint {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-page .login-container #mfa-form .form-group {
  margin-bottom: 1.5rem;
}
.login-page .login-container #mfa-form .form-group input {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 22px;
  font-weight: 600;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login-page .login-container #mfa-form button + button {
  margin-top: 0.75rem;
}
.login-page .login-container #mfa-form .btn-secondary {
  background: none;
  border: 1px solid #ccc;
  color: #555;
  font-size: 13px;
  padding: 0.6rem;
}
.login-page .login-container #mfa-form .btn-secondary::after {
  display: none;
}
.login-page .login-container #mfa-form .btn-secondary span {
  color: #555;
}
.login-page .login-container #mfa-form .btn-secondary:hover {
  background-color: #f5f5f5;
}
.login-page .login-container form {
  display: flex;
  flex-direction: column;
}
.login-page .login-container form .form-group {
  margin-bottom: 1.5rem;
}
.login-page .login-container form .form-group label {
  font-size: 14px;
  color: #333;
}
.login-page .login-container form .form-group input {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.login-page .login-container form button {
  position: relative;
  padding: 0.8rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  overflow: hidden;
}
.login-page .login-container form button[disabled] {
  opacity: 1;
  cursor: not-allowed;
}
.login-page .login-container form button span {
  position: relative;
  z-index: 1;
}
.login-page .login-container form button::after {
  z-index: 0;
  content: "";
  display: block;
  width: 150%;
  height: 150%;
  position: absolute;
  top: -25%;
  left: -25%;
  border-radius: 4px;
  opacity: 1;
  background: linear-gradient(160deg, #F53939 9.84%, #FFC915 100%);
  background-size: 100%;
  transition: background-size 0.3s ease;
}
.login-page .login-container form button:hover::after {
  background-size: 130%;
}
.login-page .login-container .loading::before {
  z-index: 99;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.46);
  background-image: url(../images/loading.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 35px 35px;
  cursor: not-allowed;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.form-check input[type=checkbox] {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}
.form-check label {
  position: relative !important;
  top: unset !important;
  margin-top: 5px;
  left: unset !important;
}

body {
  --main-color: #73be1e;
  --main-button-color: #1b2022;
}

.password-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}
.password-rules li {
  font-size: 12px;
  color: #667085;
  display: flex;
  align-items: center;
  gap: 6px;
}
.password-rules li::before {
  content: "•";
  font-size: 16px;
  line-height: 1;
}
.password-rules li.valid {
  color: #1f7a39;
}
.password-rules li.valid::before {
  content: "✓";
}
.password-rules li.invalid {
  color: #b42318;
}
.password-rules li.invalid::before {
  content: "✕";
}

.settings {
  margin-bottom: 30px;
  margin-top: 30px;
  padding: 30px 0 20px 0;
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 1px 0 0 #f9f9f9;
  max-width: 1000px;
}
.settings:first-child:last-child {
  margin-bottom: 0;
  border: 0;
  box-shadow: none;
}
.settings .setting-description {
  width: 20%;
  padding-right: 20px;
  margin-right: 20px;
}
.settings .setting-description span {
  color: #666;
}
.settings .settings-group,
.settings .settings-single {
  background-color: #f3f3f3;
  border-radius: 4px;
  width: 100%;
  display: table;
  padding: 10px 20px;
  margin-bottom: 20px;
}
.settings b {
  color: #444;
}

@media all and (max-width: 1200px) {
  .settings {
    display: block !important;
  }
  .settings .setting-description {
    width: 100% !important;
    margin-bottom: 15px;
  }
}
@media all and (max-width: 1040px) {
  .setting,
  .setting-title,
  .setting-control {
    display: block !important;
  }
  .setting-content,
  .settings-group {
    padding: 0 !important;
  }
  .setting {
    padding: 15px;
  }
  .setting:nth-child(odd) {
    background-color: #f9f9f9;
  }
  .setting.hr {
    height: 1px !important;
    padding: 0;
    background-color: #ccc;
  }
  .setting.hr > div {
    display: none !important;
  }
}
.setting-content {
  flex-grow: 1;
}

.setting-form {
  width: 100%;
  line-height: 20px;
}
.setting-form input:not([type=checkbox]):not([type=radio]),
.setting-form select,
.setting-form textarea {
  padding: 8px 10px 8px 8px;
  border: 1px solid #999;
  background-color: white;
  border-radius: 5px;
  width: 100%;
  margin-top: 6px;
}
.setting-form input.fty {
  width: 49% !important;
}
.setting-form input.fty:first-child {
  margin-right: 2%;
}
.setting-form select {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2210%22%20height%3D%227%22%3E%3Cpath%20fill%3D%22%23999%22%20d%3D%22M0%200l5%207%205-7z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 34px;
}
.switch input {
  display: none;
}
.switch input:checked + .slider {
  background-color: var(--main-color);
}
.switch input:checked + .slider::before {
  -webkit-transform: translateX(55px);
  -ms-transform: translateX(55px);
  transform: translateX(55px);
}
.switch input:checked + .slider .on {
  opacity: 1;
}
.switch input:checked + .slider .off {
  opacity: 0;
}
.switch input:focus + .slider {
  box-shadow: 0 0 1px var(--main-color);
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}
.switch .slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  z-index: 9;
}
.switch .slider.round {
  border-radius: 6px;
}
.switch .slider.round::before {
  border-radius: 9%;
}
.switch .on,
.switch .off {
  color: white;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  text-align: center;
  width: 70%;
  font-size: 12px;
  text-shadow: 1px 1px 1px #999;
  font-family: Verdana, sans-serif;
  user-select: none;
  pointer-events: none;
  transition: 0.5s;
  z-index: 0;
}
.switch .on {
  opacity: 0;
  left: 0;
}
.switch .off {
  right: 0;
  opacity: 1;
}

.saveButtonContainer {
  display: block;
  margin-top: 20px;
  text-align: right;
}

.notset {
  color: #999;
}

.setting,
.hr {
  display: table-row;
}

.setting > div {
  padding: 6px 0;
}

.setting-title {
  display: table-cell;
  vertical-align: middle;
  font-weight: bold;
  color: #333;
  width: 260px;
}
.setting-title small {
  font-weight: normal;
}

.setting-control {
  display: table-cell;
  vertical-align: middle;
}
.setting-control.l {
  text-align: left;
}
.setting-control.r {
  text-align: right;
}

.ta {
  vertical-align: top;
  padding-top: 13px !important;
}

input.error,
textarea.error,
select.error {
  border: 2px solid #ff0105 !important;
  position: relative;
}

small.error {
  color: #ff0105;
  padding: 0 25px;
  position: relative;
  display: block;
}
small.error::before {
  display: block;
  width: 20px;
  height: 20px;
  font-size: 15px;
  content: "\e945";
  position: absolute;
  left: 6px;
  top: -2px;
  font-family: "flowtask";
}

small.info {
  font-style: italic;
  color: #999;
}

.save-button {
  background-color: var(--main-button-color);
  color: #fff;
  border: 0;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
.save-button.saving {
  opacity: 0.7;
  cursor: default;
  padding-left: 40px;
  position: relative;
}
.save-button.saving::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 3px solid #fff;
  border-top: 3px solid transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}
.t-area {
  position: relative;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding-top: 8px;
}
.t-area textarea {
  border: 0;
}
.t-area .max {
  font-size: 12px;
  color: #999;
  position: absolute;
  right: 10px;
  top: 4px;
}

.customerOverview {
  text-align: center;
  margin-top: 40px;
}

.profile {
  width: 145px;
  height: 145px;
  border-radius: 145px;
  margin: auto;
  background-color: #ccc;
}

.infoGrid {
  display: grid;
}

.baseTable {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
}
.baseTable thead tr {
  border-radius: 4px;
}
.baseTable thead tr td {
  border-bottom: 1px solid #cccbcb;
  padding: 12px 10px;
  color: #888;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  position: relative;
  line-height: 20px;
  vertical-align: middle;
}
.baseTable thead tr td .icon {
  font-weight: normal !important;
}
.baseTable thead tr td.sortable {
  cursor: pointer;
  padding-right: 26px;
}
.baseTable thead tr td.sortable:hover {
  color: #4a4a4a;
}
.baseTable thead tr td.sortable::after {
  display: block;
  position: absolute;
  content: "\eb5d";
  font-family: "material";
  right: 12px;
  top: 11px;
  font-size: 16px;
  color: #999;
  font-weight: normal;
}
.baseTable thead tr td.sortable.desc, .baseTable thead tr td.sortable.asc {
  color: #000;
}
.baseTable thead tr td.sortable.desc::after {
  content: "\eb61";
  color: #000;
}
.baseTable thead tr td.sortable.asc::after {
  content: "\eb5e";
  color: #000;
}
.baseTable tbody tr td {
  white-space: nowrap;
  text-overflow: clip;
  padding: 10px;
  line-height: 28px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  border-right: 1px solid rgba(241, 241, 241, 0.6);
}
.baseTable tbody tr td:last-child {
  border-right: none;
}
.baseTable tbody tr td a:not(.editButton) {
  text-decoration: underline;
  color: #1079c7;
}
.baseTable tbody tr td a:not(.editButton):hover {
  color: #1192f5;
}
.baseTable tbody tr td.menutd {
  text-align: right;
}
.baseTable tbody tr:nth-child(even) td {
  background-color: #fcfcfc;
}
.baseTable tbody tr.used td {
  opacity: 0.4;
}
.baseTable tbody tr:hover td {
  background-color: #f9f9f9;
  opacity: 1;
}

.inlinebutton {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background-color: #999;
  color: #fff !important;
  text-decoration: none !important;
}
.inlinebutton.delete {
  background-color: rgb(206, 16, 16);
  color: #fff !important;
}

.delete {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background-color: rgb(236, 103, 122);
  color: white !important;
}

.material {
  font-family: "material";
}

.paginationBar::after {
  display: block;
  content: "";
  clear: both;
}

.pagination {
  padding: 8px 9px 7px;
  float: left;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  border-left: 0;
  border-right: 0;
  outline: none;
}

.p-controller {
  display: inline-block;
  margin-top: 10px;
}

a.numberlink {
  padding: 5px 10px 7px;
  display: inline-block;
  border: 1px solid #eee;
  color: #666;
  font-size: 20px;
  background-color: transparent;
  transition: all 0.1s ease-in;
}
a.numberlink:not(.disabled):hover {
  background-color: #eee;
}
a.numberlink.left {
  border-radius: 5px 0 0 5px;
}
a.numberlink.right {
  border-radius: 0 5px 5px 0;
}
a.numberlink.disabled {
  color: #eee;
}

a.showall {
  padding: 9px 10px;
  display: inline-block;
  margin-left: 5px;
  border-radius: 5px;
  background-color: transparent;
  transition: all 0.1s ease-in;
}
a.showall:hover {
  background-color: #f9f9f9;
}

.editButton {
  padding: 7px;
  display: inline-block;
  font-family: "flowtask";
  line-height: normal;
  border-radius: 3px;
  border: 2px solid transparent;
  white-space: nowrap;
  background-color: #eee;
}
.editButton span {
  display: inline-block;
  font-family: sans-serif;
}
.editButton:hover {
  background-color: #e4e4e4;
}

#dropzone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--primary-color, #000);
  border-radius: 6px;
  z-index: 1000;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  pointer-events: none;
}
#dropzone.drag-over {
  opacity: 1;
  pointer-events: initial;
}
#dropzone input {
  display: none;
}

#imageExplorer {
  width: 90%;
  max-width: 800px;
  height: 80%;
  overflow-y: auto;
  z-index: 999;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
#imageExplorer h3 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: normal;
}
#imageExplorer.has-selected {
  max-width: 1200px;
}
#imageExplorer .file-explorer {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
#imageExplorer .dialog-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px 20px 20px;
  flex-direction: column;
}
#imageExplorer .dialog-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
}
#imageExplorer .dialog-sidebar {
  border-left: 1px solid #ddd;
  padding: 20px;
  max-width: 400px;
  width: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  gap: 10px;
  border-bottom: 1px solid #ddd;
  padding: 10px 10px 10px 20px;
  background-color: white;
  z-index: 999;
}

.images {
  overflow-y: auto;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  padding: 2px;
}
.image-list:has(.hf:not(.hidden)) {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.storage-r2::before,
.storage-local::before {
  content: attr(data-model);
  background-size: 20px;
  background-position: 6px center;
  background-repeat: no-repeat;
  position: absolute;
  width: auto;
  height: 26px;
  left: 6px;
  bottom: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  color: white;
  font-size: 10px;
  line-height: 17px;
  font-weight: bold;
  vertical-align: middle;
  padding: 4px 10px 4px 10px;
  border-radius: 8px;
}

.storage-r2[data-model=""]::before,
.storage-local[data-model=""]::before {
  display: none;
}

.image-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border 0.2s ease;
  aspect-ratio: 16/9;
  background-color: #eee;
  opacity: 1;
}
.image-item.hf {
  aspect-ratio: 9/16;
}
.image-item .btn-edit {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 4px;
  border: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.5);
}
.image-item.hidden {
  display: none !important;
}
.image-item.uploading {
  animation: uploading 1s infinite;
}
.image-item.uploading::after {
  content: "Uploading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
}

@keyframes uploading {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 0.5;
  }
}
.image-item img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.image-item.selected {
  outline: 2px solid rgb(246, 130, 31);
  opacity: 1;
}
.image-item.selected::after {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 30px;
  position: absolute;
  left: 6px;
  top: 6px;
  background-color: rgb(246, 130, 31);
  background-image: url(../images/icons/check-white.svg);
  background-size: 19px;
  background-position: center;
  background-repeat: no-repeat;
}

.upload-section {
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
.upload-section.drag-over {
  border: 2px solid #FFC915;
  background-color: rgba(0, 123, 255, 0.1);
}
.upload-section::before {
  content: "";
  display: block;
  border: 2px dashed #ccc;
  border-radius: 8px;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  pointer-events: none;
}

.image-preview {
  margin-bottom: 30px;
  text-align: center;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
}
.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
}
.image-preview img[src=""] {
  display: none;
}

.file-label {
  color: #007BFF;
  cursor: pointer;
  text-decoration: underline;
}

.image-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-editor input, .image-editor textarea {
  width: 100%;
  padding: 8px;
}

.actions {
  margin-top: 20px;
  text-align: right;
}

.button-group {
  display: flex;
  justify-content: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.button-group .btn {
  flex: 1;
  flex-basis: 80px;
}

.delete-tooltip {
  position: fixed;
  isolation: isolate;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 1000;
}

.switch-uploadedtoprompt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
  align-self: end;
  margin-bottom: 5px;
}
.switch-uploadedtoprompt label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.switch-uploadedtoprompt label .slider {
  width: 34px;
  height: 20px;
  position: relative;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.2s ease;
}
.switch-uploadedtoprompt label .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.switch-uploadedtoprompt label input[type=checkbox] {
  display: none;
}
.switch-uploadedtoprompt label input[type=checkbox]:checked + .slider {
  background-color: #4CAF50;
}
.switch-uploadedtoprompt label input[type=checkbox]:checked + .slider::before {
  transform: translateX(14px);
}

input[type=color] {
  width: 100%;
  padding: 0.2rem 0.3rem !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.file-drop-single {
  aspect-ratio: 16/9;
  background-size: contain !important;
  transition: background-size 0.3s ease-in-out;
  background-color: black;
}
.file-drop-single:hover {
  background-size: contain !important;
}

.file-drop,
.file-drop-single {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 250px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.file-drop.import-form,
.file-drop-single.import-form {
  cursor: default;
}
.file-drop:has(.file-drop-image-wrapper),
.file-drop-single:has(.file-drop-image-wrapper) {
  border-style: solid;
  border-color: #999;
}
.file-drop.drag-over,
.file-drop-single.drag-over {
  border-style: solid;
  background-color: rgba(0, 123, 255, 0.1);
}
.file-drop .multiple-image-preview,
.file-drop-single .multiple-image-preview {
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-template-rows: auto;
  grid-auto-flow: dense;
  gap: 10px;
  width: 100%;
  overflow: auto;
}
.file-drop .multiple-image-preview.bigger,
.file-drop-single .multiple-image-preview.bigger {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.file-drop .multiple-image-preview .file-drop-image-wrapper,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper {
  position: relative;
  max-height: 100%;
  height: fit-content;
  overflow: hidden;
  cursor: zoom-in;
}
.file-drop .multiple-image-preview .file-drop-image-wrapper .btn-edit,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper .btn-edit {
  display: none !important;
}
.file-drop .multiple-image-preview .file-drop-image-wrapper .mainImageButton,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper .mainImageButton {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.file-drop .multiple-image-preview .file-drop-image-wrapper .mainImageButton.active,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper .mainImageButton.active {
  opacity: 1;
  color: black;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.file-drop .multiple-image-preview .file-drop-image-wrapper:hover .mainImageButton,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper:hover .mainImageButton {
  opacity: 1;
}
.file-drop .multiple-image-preview .file-drop-image-wrapper .view-toggle,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper .view-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 99;
}
.file-drop .multiple-image-preview .file-drop-image-wrapper img,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.file-drop .multiple-image-preview .file-drop-image-wrapper button.file-drop-delete,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper button.file-drop-delete {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: #222;
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
}
.file-drop .multiple-image-preview .file-drop-image-wrapper button.file-drop-delete::after,
.file-drop-single .multiple-image-preview .file-drop-image-wrapper button.file-drop-delete::after {
  content: "×";
  display: block;
  text-align: center;
  position: relative;
  top: -1px;
}
.file-drop:has(.multiple-image-preview .file-drop-image-wrapper),
.file-drop-single:has(.multiple-image-preview .file-drop-image-wrapper) {
  align-items: flex-start;
  justify-content: flex-start;
}
.file-drop:has(.multiple-image-preview .file-drop-image-wrapper) .file-drop-text,
.file-drop-single:has(.multiple-image-preview .file-drop-image-wrapper) .file-drop-text {
  display: none;
}
.file-drop.active .file-drop-text,
.file-drop-single.active .file-drop-text {
  display: none;
}

.file-drop-input,
.file-drop-input-single {
  display: none;
}

.form-group {
  margin-bottom: 1.6rem;
  position: relative;
}

.form-group label {
  display: flex;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 12px;
  justify-content: space-between;
  position: absolute;
  top: -10px;
  right: 0.25rem;
  left: 0.25rem;
  color: #666;
}
.form-group label * {
  padding: 0 0.25rem;
  background-color: white;
  display: inline-block;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #007bff;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  height: 38px;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.toggle-wrapper input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-wrapper .toggle-label {
  font-size: 13px;
  color: #444;
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}

.smart-control {
  font-size: 0.9rem;
  color: #666;
  text-decoration: underline;
}

.prompt-editor {
  position: relative;
}
.prompt-editor .prompt-dialog {
  font-size: 14px;
  user-select: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  min-width: 230px;
  min-height: 40px;
  z-index: 99999;
  border: 1px solid #999;
  transform: translateY(-100%);
  transition: opacity 0.3s, transform 0.3s, top 0.3s, left 0.3s;
  opacity: 0;
  pointer-events: none;
}
.prompt-editor .prompt-dialog.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.prompt-editor .prompt-dialog::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #999;
  bottom: -10px;
  left: 10%;
  transform: translateX(-50%);
}
.prompt-editor .prompt-dialog .dialog-content {
  padding: 10px;
  flex: 1;
  overflow: auto;
}
.prompt-editor .prompt-dialog .dialog-content .tool-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.prompt-editor .prompt-dialog .dialog-content .tool-line input {
  margin-left: 10px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #363636;
  background-color: #4B4C55;
  color: #fff;
  width: 50px;
}
.prompt-editor .prompt-dialog .dialog-buttons {
  background-color: #eee;
  border-radius: 0 0 6px 6px;
  padding: 6px;
  display: flex;
  justify-content: flex-end;
}
.prompt-editor .prompt-dialog .btn {
  padding: 5px 14px;
  border-radius: 4px;
  background-color: black;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-right: 5px;
}
.prompt-editor .prompt-dialog .btn.secondary {
  padding: 5px 10px;
  background-color: transparent;
  color: #999;
}
.prompt-editor .prompt-dialog .btn:hover {
  opacity: 0.8;
}
.prompt-editor .prompt {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  padding: 0.9rem 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.prompt-editor .prompt span {
  display: inline-block;
  padding: 2px 5px;
  margin: 0 0 2px 0;
  border-radius: 6px;
  display: inline-block;
  margin-right: 0px;
  position: relative;
}
.prompt-editor .prompt span .btn-remove {
  user-select: none;
  margin-left: 5px;
  margin-right: 2px;
  cursor: pointer;
}

/* Image Preview Component Styles */
image-preview {
  display: block;
}

.image-preview-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.image-preview-wrapper .preview-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.image-preview-wrapper .mainImageButton {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.image-preview-wrapper .mainImageButton:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
}

.image-preview-wrapper .mainImageButton.active {
  background: #007bff;
  opacity: 1;
}

/* Status Monitor inside Image Preview */
.image-preview-wrapper status-monitor {
  position: absolute;
  top: 8px;
  right: 8px;
}

.image-preview-wrapper .status-monitor {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
}

/* View Toggle Controls */
.image-preview-wrapper .view-toggle {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: center;
}

.image-preview-wrapper .toggleView {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview-wrapper .toggleView .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  opacity: 0.6;
  position: relative;
}
.image-preview-wrapper .toggleView .icon span.title {
  display: inline-block;
  position: absolute;
  background-color: black;
  top: 0;
  transform: translateY(-100%);
  padding: 2px 4px;
  color: white;
  font-size: 12px;
  white-space: nowrap;
}

.image-preview-wrapper .toggleView .icon:hover {
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.05);
}

.image-preview-wrapper .toggleView .icon.active {
  opacity: 1;
  background: #007bff;
}

.image-preview-wrapper .toggleView .icon.active img {
  filter: brightness(0) invert(1);
}

.image-preview-wrapper .toggleView .icon img {
  width: 16px;
  height: 16px;
}

/* State-specific icon colors */
.image-preview-wrapper .toggleView .icon.delete.active {
  background: #dc3545;
}

.image-preview-wrapper .toggleView .icon.upscale.active {
  background: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-preview-wrapper .mainImageButton {
    font-size: 10px;
    padding: 4px 8px;
  }
  .image-preview-wrapper .toggleView .icon {
    width: 28px;
    height: 28px;
  }
  .image-preview-wrapper .toggleView .icon img {
    width: 14px;
    height: 14px;
  }
}
/* Animation for state changes */
.image-preview-wrapper .toggleView .icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-preview-wrapper .toggleView .icon.active {
  transform: scale(1.1);
}

/* Zoom cursor */
.image-preview-wrapper.clickZoom .preview-image {
  cursor: zoom-in;
}

/* Loading state for status monitor */
.image-preview-wrapper status-monitor .polling-indicator {
  display: inline-block;
  margin-left: 4px;
}

/* Integration with existing file-drop styles */
.multiple-image-preview.bigger image-preview {
  flex: 0 0 auto;
}

.multiple-image-preview.bigger image-preview:last-child {
  margin-right: 0;
}

/* Orientation-specific styles */
image-preview.portrait {
  grid-column: span 1;
  grid-row: span 2;
}
image-preview.portrait .file-drop-image-wrapper .preview-image {
  width: auto;
  height: auto;
}
image-preview.portrait .file-drop-image-wrapper .view-toggle {
  bottom: 6px;
  left: 6px;
  right: 6px;
}

image-preview.landscape {
  grid-column: span 2;
  grid-row: span 1;
}
image-preview.landscape .file-drop-image-wrapper .preview-image {
  width: auto;
  height: auto;
}
image-preview.landscape .file-drop-image-wrapper .mainImageButton {
  top: 6px;
  left: 6px;
}
image-preview.landscape .file-drop-image-wrapper status-monitor {
  top: 6px;
  right: 6px;
}

image-preview.square .file-drop-image-wrapper .preview-image {
  max-width: 280px;
  max-height: 280px;
  width: auto;
  height: auto;
}
image-preview.square .file-drop-image-wrapper .mainImageButton {
  top: 8px;
  left: 8px;
}

/* Responsive orientation adjustments */
@media (max-width: 768px) {
  image-preview.portrait .file-drop-image-wrapper .preview-image {
    max-width: 200px;
  }
  image-preview.landscape .file-drop-image-wrapper .preview-image {
    max-height: 180px;
  }
  image-preview.square .file-drop-image-wrapper .preview-image {
    max-width: 200px;
    max-height: 200px;
  }
}
@media (max-width: 480px) {
  image-preview.portrait .file-drop-image-wrapper .preview-image {
    max-width: 150px;
  }
  image-preview.landscape .file-drop-image-wrapper .preview-image {
    max-height: 120px;
  }
  image-preview.square .file-drop-image-wrapper .preview-image {
    max-width: 150px;
    max-height: 150px;
  }
}/*# sourceMappingURL=main.css.map */