@use "sass:color";

$primary: #1976d2;

.renderoutput-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;

  h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
  }
}

.config-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 24px;

  label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
  }

  select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
  }
}

.content-ids-section {
  display: flex;
  flex-direction: column;
  gap: 6px;

  label {
    font-size: 14px;
    font-weight: 500;
  }
}

.add-id-row {
  display: flex;
  gap: 8px;

  input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 140px;
  }

  button {
    padding: 6px 14px;
    background: $primary;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;

    &:hover {
      background: color.adjust($primary, $lightness: -8%);
    }
  }
}

.selected-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.id-chip {
  padding: 4px 8px;
  background: #e3f2fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;

  button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    padding: 0 2px;
    line-height: 1;

    &:hover {
      color: #c00;
    }
  }
}

.generate-btn {
  padding: 10px 24px;
  background: $primary;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  align-self: flex-start;

  &:hover:not(:disabled) {
    background: color.adjust($primary, $lightness: -8%);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.output-history {
  h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
  }

  p {
    color: #888;
    font-size: 14px;
  }
}

.output-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;

  a {
    color: $primary;
    text-decoration: none;
    margin-left: auto;

    &:hover {
      text-decoration: underline;
    }
  }
}

.status-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;

  &.status-0 { background: #fff3e0; color: #e65100; }
  &.status-1 { background: #e3f2fd; color: #1565c0; }
  &.status-2 { background: #e8f5e9; color: #2e7d32; }
  &.status-3 { background: #fce4ec; color: #c62828; }
}
