/* Revision: 2026-03-23 – Initial styles for QBORestore tool page */

/* ===== TOOL PAGE BODY ===== */
.tool-page {
  background-color: #0a0a0a;
}

/* ===== HERO ===== */
.restore-hero {
  background: linear-gradient(135deg, #1a1207 0%, #0a0a0a 60%, #0f0f1a 100%);
  border-bottom: 1px solid #2d2010;
  padding: 64px 0 56px;
}

.tool-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.tool-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 768px)  { .tool-title { font-size: 52px; } }
@media (min-width: 1280px) { .tool-title { font-size: 60px; } }

.tool-value-prop {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: #e2e8f0;
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

@media (min-width: 768px) { .tool-value-prop { font-size: 22px; } }

.tool-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: #9ca3af;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 768px) { .tool-subtitle { font-size: 18px; } }

.tool-safety-line {
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #f59e0b;
  margin-top: 20px;
}

.tool-hero-inner {
  text-align: center;
}

/* ===== MAIN ===== */
.tool-main {
  padding: 64px 0;
}

/* ===== STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background-color: #111111;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.step-card:hover { border-color: #374151; }

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3a2a05;
  border: 1px solid #d97706;
  color: #f59e0b;
  font-family: var(--font-logo);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-family: var(--font-logo);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.step-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ===== ACTION PANEL ===== */
.action-panel {
  background-color: #111111;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 56px 32px;
  text-align: center;
  margin-bottom: 64px;
}

@media (min-width: 768px) { .action-panel { padding: 64px 80px; } }

.action-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.action-state.hidden { display: none; }

.action-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 768px) { .action-heading { font-size: 34px; } }

.action-subtext {
  font-family: var(--font-body);
  font-size: 15px;
  color: #6b7280;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

.action-subtext strong { color: #9ca3af; font-weight: 600; }

/* ===== FILE DROP ZONE ===== */
.file-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 2px dashed #1f2937;
  border-radius: 8px;
  padding: 48px 32px;
  cursor: pointer;
  width: 100%;
  max-width: 480px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-drop-zone:hover {
  border-color: #d97706;
  background-color: rgba(217, 119, 6, 0.05);
}

.file-drop-zone input[type="file"] {
  display: none;
}

.drop-icon { font-size: 40px; }

.drop-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: #9ca3af;
}

.drop-hint {
  font-family: var(--font-body);
  font-size: 12px;
  color: #4b5563;
}

/* ===== FILE INFO ===== */
.file-info {
  background-color: #1a1a1a;
  border: 1px solid #d97706;
  border-radius: 6px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #9ca3af;
  text-align: left;
  width: 100%;
  max-width: 480px;
}

.file-info.hidden { display: none; }
.file-info strong { color: #f59e0b; }

/* ===== SNAPSHOT SUMMARY ===== */
.snapshot-summary {
  background-color: #1a1a1a;
  border: 1px solid #2d2010;
  border-radius: 8px;
  padding: 20px 28px;
  width: 100%;
  max-width: 480px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}

.snapshot-summary .summary-company {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 8px;
}

/* ===== CONNECT BUTTON ===== */
.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
}

.btn-restore {
  background-color: #92400e;
}

.btn-restore:hover {
  background-color: #b45309;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ===== WARNING NOTE ===== */
.warning-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: #f59e0b !important;
  margin: 0;
}

/* ===== RESET BUTTON ===== */
.btn-reset {
  background: transparent;
  border: 1px solid #374151;
  color: #6b7280;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  margin-top: 4px;
}

.btn-reset:hover { border-color: #6b7280; color: #9ca3af; }

/* ===== SPINNER ===== */
.restore-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #1f2937;
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background-color: #1f2937;
  border-radius: 2px;
  overflow: hidden;
}

.restore-progress {
  height: 100%;
  width: 0%;
  background-color: #f59e0b;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ===== RESTORE STATS ===== */
.restore-stats {
  display: flex;
  gap: 24px;
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.stat.created { color: #4ade80; }
.stat.failed  { color: #f87171; }
.stat.skipped { color: #4b5563; }

/* ===== ENTITY LOG ===== */
.entity-log {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #4b5563;
  max-height: 160px;
  overflow-y: auto;
  width: 100%;
  max-width: 480px;
  text-align: left;
  line-height: 1.8;
}

.entity-log .log-line { display: block; }
.entity-log .log-line.done    { color: #4ade80; }
.entity-log .log-line.failed  { color: #f87171; }
.entity-log .log-line.skipped { color: #4b5563; }

/* ===== SUCCESS / ERROR ICONS ===== */
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #1a3a1a;
  border: 2px solid #4ade80;
  color: #4ade80;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #3a1a1a;
  border: 2px solid #f87171;
  color: #f87171;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== RESTORE REPORT ===== */
.restore-report {
  background-color: #1a1a1a;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 20px 28px;
  width: 100%;
  max-width: 480px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  color: #6b7280;
  line-height: 2;
}

.restore-report .report-row {
  display: flex;
  justify-content: space-between;
}

.restore-report .report-label { color: #4b5563; }
.restore-report .report-value { color: #9ca3af; font-weight: 600; }
.restore-report .report-value.green { color: #4ade80; }
.restore-report .report-value.red   { color: #f87171; }
