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

.book-sender-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.dialog-content {
  flex: 1;
  padding: 1.5rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-top: none;
  border-bottom: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dialog-footer {
  @include panel.dialog-footer;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
}

:host ::ng-deep .full-width {
  width: 100%;
}

.format-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.format-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--p-primary-400);
  }

  &.selected {
    background: rgba(var(--p-primary-500-rgb), 0.1);
    border-color: var(--p-primary-500);
  }
}

.format-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.format-type {
  font-weight: 500;
  color: #e5e7eb;
}

.primary-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  background: var(--p-primary-500);
  color: white;
  border-radius: 4px;
  text-transform: uppercase;
}

.file-size {
  margin-left: auto;
  font-size: 0.8rem;
  color: #9ca3af;
}

.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 6px;
  color: #fbbf24;

  i {
    font-size: 1rem;
    margin-top: 0.125rem;
  }

  span {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}
