/* ═══ Bluebook AI Page ═══ */
.bluebook-container { max-width: 800px; }

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed #2a2d40;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #12141c;
  margin-bottom: 1.5rem;
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: #5b6abf;
  background: #161830;
}
.upload-dropzone .upload-icon {
  font-size: 2.5rem;
  color: #5b6abf;
  margin-bottom: 0.75rem;
}
.upload-dropzone .upload-text {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.upload-dropzone .upload-hint {
  color: #666;
  font-size: 0.8rem;
}
.upload-dropzone.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Active Job Card */
.bluebook-active-job {
  background: #181a24;
  border: 1px solid #2a2d40;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.bluebook-active-job h3 {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.bluebook-job-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.bluebook-job-status .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #2a2d40;
  border-top: 2px solid #5b6abf;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bluebook-job-status .status-text {
  color: #ccc;
  font-size: 0.9rem;
}
.bluebook-job-meta {
  color: #888;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Job History */
.bluebook-history { margin-top: 2rem; }
.bluebook-history h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.bluebook-job-card {
  background: #181a24;
  border: 1px solid #2a2d40;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bluebook-job-card .job-info { flex: 1; }
.bluebook-job-card .job-name {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
}
.bluebook-job-card .job-detail {
  color: #888;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}
.bluebook-job-card .job-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.job-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}
.job-status-badge.completed { background: #064e3b; color: #6ee7b7; }
.job-status-badge.failed { background: #4a1c1c; color: #fca5a5; }
.job-status-badge.analyzing { background: #1e3a5f; color: #93c5fd; }
.bluebook-empty {
  text-align: center;
  color: #555;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Cost Confirmation */
.cost-confirmation {
  background: #181a24;
  border: 1px solid #2a2d40;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.cost-confirmation .cost-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
  margin: 0.75rem 0;
}
.cost-confirmation .cost-label {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.cost-confirmation .cost-warning {
  color: #f59e0b;
  font-size: 0.85rem;
  margin: 0.75rem 0 1rem;
}
.cost-confirmation .cost-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Pricing Table (wizard) */
.pricing-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.pricing-option {
  background: #12141c;
  border: 2px solid #2a2d40;
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: center;
}
.pricing-option:hover { border-color: #3a3f5c; }
.pricing-option.selected { border-color: #5b6abf; background: #161830; }
.pricing-option .tier-name {
  font-weight: 600; color: #e0e0e0; font-size: 1rem; margin-bottom: 0.25rem;
}
.pricing-option .tier-pages {
  color: #888; font-size: 0.8rem; margin-bottom: 0.5rem;
}
.pricing-option .tier-price {
  font-size: 1.5rem; font-weight: 700; color: #7c8cf5;
}
