/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* app/assets/tailwind/application.css (or wherever you put custom CSS) */

/* Modal Animations */
dialog[data-controller="modal"] {
  opacity: 0;
  transform: translateY(0.5rem) scale(0.98);
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    overlay 200ms ease allow-discrete,
    display 200ms ease allow-discrete;
}

dialog[data-controller="modal"][open] {
  opacity: 1;
  transform: translateY(0) scale(1);

  @starting-style {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.98);
  }
}

dialog[data-controller="modal"]::backdrop {
  background: rgb(15 23 42 / 0);
  transition:
    background 200ms ease,
    overlay 200ms ease allow-discrete,
    display 200ms ease allow-discrete;
}

dialog[data-controller="modal"][open]::backdrop {
  background: rgb(15 23 42 / 0.5);

  @starting-style {
    background: rgb(15 23 42 / 0);
  }
}


.tab:is(.tabs>.tab):is(input[type=radio]):after {
  font-weight: 600;
  font-size: 0.8rem;
}

.btn {
  text-wrap: nowrap;
}

.btn-none {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  &:hover {
    opacity: 0.8;
  }
}

/* DROPZONE */
.dz-area {
  border: 1px dashed var(--color-base-300);
  background-color: white;
  border-radius: var(--radius-field);
  min-height: 8rem;
  width: 100%;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
  
  &.dropping {
    background-color: var(--color-base-200);
  }
}

.dz-text {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.dz-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.dz-list {
  /* border-top: 1px solid var(--color-base-300); */
  width: 100%;
  
  .dz-item {
    border-bottom: 1px solid var(--color-base-300);
    padding: 7px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    
    &:first-child {
      border-top: 1px solid var(--color-base-300);
    }
    
    .dz-remove {
      width: 24px;
      height: 24px;
      cursor: pointer;
      b
    }
  }
}
