@use '../../../../shared/styles/panel-shared' as panel;

.bulk-update-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header {
  @include panel.panel-header;
  flex-shrink: 0;
}

.dialog-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.info-box {
  padding: 1rem;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  background: #111827;
  color: #e5e7eb;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.info-title {
  font-size: 1rem;
  font-weight: 600;
}

.toggle-list-btn {
  font-size: 0.875rem;
  color: #38bdf8;
  background: none;
  border: none;
  cursor: pointer;

  &:hover {
    text-decoration: underline;
  }
}

.book-list-panel {
  max-height: 12rem;
  overflow-y: auto;
  border-top: 1px solid #374151;
  padding-top: 0.5rem;
  padding-left: 0.25rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

.book-list {
  list-style-type: disc;
  padding-left: 1.25rem;

  li + li {
    margin-top: 0.25rem;
  }
}

.warning-text {
  padding: 0 1rem;
  font-size: 0.875rem;
  color: #eab308;
  margin-bottom: 0.5rem;
}

.warning-icon {
  margin-right: 0.25rem;
}

.bulk-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 1.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  &--wide {
    width: 100%;

    @media (min-width: 768px) {
      flex-basis: 80%;
    }
  }

  &--narrow {
    @media (min-width: 768px) {
      flex-basis: 20%;
    }
  }
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.field-label-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-icon {
  color: #0284c7;
}

.clear-checkbox {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.clear-label {
  font-size: 0.875rem;
  color: #d1d5db;
  cursor: pointer;
}

.full-width {
  width: 100%;
}

.datepicker-min-width {
  @media (min-width: 768px) {
    min-width: 9rem;
  }
}

.merge-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cover-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  padding: 1rem;
  background: #111827;
}

.cover-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.cover-description {
  font-size: 0.875rem;
  color: #9ca3af;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cover-file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

.file-input-hidden {
  display: none;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

::ng-deep .p-inputchips {
  width: 100%;
}
