/* ═══════════════════════════════════════════════════════════
   RedactPro — Styles
   Design: Industrial-utilitarian SaaS, dark navy + red accent
   Fonts: Syne (display) + Plus Jakarta Sans (body)
═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  /* Core palette */
  --navy-950: #080d1a;
  --navy-900: #0d1526;
  --navy-800: #111d35;
  --navy-700: #162444;
  --navy-600: #1e3058;
  --navy-500: #2a4070;
  --navy-400: #3d5a8a;
  --navy-300: #5a7aaa;

  --slate-200: #c8d4e8;
  --slate-300: #a0b2cc;
  --slate-400: #7890b0;
  --slate-500: #506080;

  --white: #ffffff;
  --off-white: #f0f4fa;
  --light-grey: #e4eaf4;

  --red-600: #c0192a;
  --red-500: #e63946;
  --red-400: #f05060;
  --red-glow: rgba(230, 57, 70, 0.25);

  --green-500: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.2);

  --amber-500: #f59e0b;

  /* Surfaces */
  --surface-0: var(--navy-950);
  --surface-1: var(--navy-900);
  --surface-2: var(--navy-800);
  --surface-3: var(--navy-700);
  --surface-4: var(--navy-600);

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  /* Text */
  --text-primary: #e8eef8;
  --text-secondary: #8fa8cc;
  --text-muted: #506080;
  --text-accent: var(--red-500);

  /* Spacing */
  --panel-pad: 16px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Topbar height */
  --topbar-h: 56px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-med: 220ms ease;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-400); }

/* ═══════════════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 32px; height: 32px;
  background: var(--navy-700);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--white);
}

.brand-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--red-500);
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.privacy-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 5px 12px;
  border-radius: 99px;
}

.privacy-notice svg { color: var(--green-500); flex-shrink: 0; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--red-500);
  color: var(--white);
  border-color: var(--red-600);
}
.btn-primary:hover { background: var(--red-400); box-shadow: 0 0 16px var(--red-glow); }

.btn-danger {
  background: rgba(230, 57, 70, 0.15);
  color: var(--red-400);
  border-color: rgba(230, 57, 70, 0.3);
}
.btn-danger:hover { background: rgba(230, 57, 70, 0.25); border-color: var(--red-500); }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-3); color: var(--text-primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text-primary); }

.btn-accent {
  background: var(--navy-600);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-accent:hover { background: var(--navy-500); }

.btn-sm { padding: 5px 10px; font-size: 11.5px; }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════ */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  height: calc(100vh - var(--topbar-h));
  margin-top: var(--topbar-h);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   PANELS (shared)
═══════════════════════════════════════════════════════ */
.panel {
  background: var(--surface-1);
  border-right: 1px solid var(--border-default);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.panel-left { border-right: 1px solid var(--border-default); }
.panel-right { border-left: 1px solid var(--border-default); border-right: none; }
.panel-center {
  background: var(--surface-0);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  position: relative;
}

.panel-section {
  padding: var(--panel-pad);
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════
   UPLOAD ZONE
═══════════════════════════════════════════════════════ */
.upload-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-med);
  background: var(--surface-2);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--red-500);
  background: rgba(230, 57, 70, 0.05);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.1);
}

.upload-zone.drag-over { transform: scale(1.01); }

.upload-zone-inner { pointer-events: none; }

.upload-icon {
  width: 48px; height: 48px;
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: var(--text-secondary);
}

.upload-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 3px;
}

.upload-sublabel {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* File Info Card */
.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: 10px;
}

.file-info-icon { font-size: 22px; flex-shrink: 0; }

.file-info-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-info-name {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-info-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.file-info-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.file-info-remove:hover { color: var(--red-500); background: rgba(230,57,70,0.1); }

/* ═══════════════════════════════════════════════════════
   TOOL MODE BUTTONS
═══════════════════════════════════════════════════════ */
.tool-mode-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.tool-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.tool-mode-btn:hover { background: var(--surface-3); color: var(--text-primary); }

.tool-mode-btn.active {
  background: rgba(230, 57, 70, 0.15);
  border-color: rgba(230, 57, 70, 0.4);
  color: var(--red-400);
}

/* Tool Hint */
.tool-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(90, 122, 170, 0.1);
  border: 1px solid rgba(90, 122, 170, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tool-hint svg { flex-shrink: 0; margin-top: 1px; }

/* Input Group */
.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.5px; }

.input-with-btn { display: flex; gap: 6px; }

.text-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  outline: none;
  transition: border-color var(--t-fast);
}
.text-input:focus { border-color: var(--red-500); }
.text-input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   DETECT PRESETS
═══════════════════════════════════════════════════════ */
.detect-presets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.preset-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
}
.preset-check:hover { background: var(--surface-2); }

.preset-check input[type="checkbox"] {
  width: 13px; height: 13px;
  accent-color: var(--red-500);
  cursor: pointer;
  flex-shrink: 0;
}

.preset-check span {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.preset-check:hover span { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════
   CENTER PANEL — EMPTY STATE
═══════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 360px;
}

.empty-icon {
  width: 80px; height: 80px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.empty-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════
   VIEWER CONTAINER
═══════════════════════════════════════════════════════ */
.viewer-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
  gap: 12px;
}

.viewer-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  width: 28px; height: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.nav-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text-primary); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.page-indicator {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

.mode-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  padding: 4px 10px;
  border-radius: 99px;
}

.mode-dot {
  width: 6px; height: 6px;
  background: var(--red-500);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.text-stats {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Canvas Wrapper ─────────────────────────────────── */
.canvas-wrapper {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.canvas-wrapper > canvas:first-child {
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-radius: 2px;
}

/* Redaction overlay canvas sits exactly on top */
.redact-overlay {
  position: absolute;
  top: 0; left: 0;
  cursor: crosshair;
  pointer-events: all;
}

/* ── Text Viewer ────────────────────────────────────── */
.text-content-wrapper {
  flex: 1;
  overflow: auto;
  padding: 24px;
}

.text-content {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 200px;
}

/* Redacted text spans */
.redacted-text {
  background: #1a1a1a;
  color: #1a1a1a;
  border-radius: 2px;
  padding: 0 2px;
  user-select: none;
  font-family: monospace;
  letter-spacing: -1px;
}

.highlight-text {
  background: rgba(230, 57, 70, 0.3);
  color: var(--red-400);
  border-radius: 2px;
  padding: 0 2px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.highlight-text:hover { background: rgba(230, 57, 70, 0.5); }

/* ═══════════════════════════════════════════════════════
   RIGHT PANEL — REDACTION LOG
═══════════════════════════════════════════════════════ */
.right-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.redaction-count {
  background: var(--red-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-chip {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-chip-applied {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-chip-applied .stat-num { color: var(--green-500); }

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Redaction Table Wrapper */
.redaction-table-wrapper {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.redaction-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  gap: 10px;
}

.redaction-empty p {
  font-size: 12px;
  line-height: 1.6;
}

/* Redaction Table */
.redaction-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.redaction-table thead th {
  padding: 7px 8px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}

.redaction-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
}

.redaction-table tbody tr:hover { background: var(--surface-2); }

.redaction-table tbody td {
  padding: 7px 8px;
  vertical-align: middle;
  color: var(--text-secondary);
}

.redaction-table tbody td:first-child { color: var(--text-primary); font-weight: 600; }

/* Type badge */
.type-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(90, 122, 170, 0.15);
  color: var(--slate-300);
  border: 1px solid rgba(90, 122, 170, 0.2);
  white-space: nowrap;
}

.type-badge.manual { background: rgba(230,57,70,0.12); color: var(--red-400); border-color: rgba(230,57,70,0.25); }
.type-badge.search { background: rgba(245,158,11,0.12); color: var(--amber-500); border-color: rgba(245,158,11,0.25); }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
}

.status-badge.pending {
  background: rgba(245,158,11,0.12);
  color: var(--amber-500);
  border: 1px solid rgba(245,158,11,0.25);
}

.status-badge.applied {
  background: rgba(34,197,94,0.1);
  color: var(--green-500);
  border: 1px solid rgba(34,197,94,0.2);
}

/* Delete row button */
.btn-row-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 12px;
  transition: all var(--t-fast);
  line-height: 1;
}
.btn-row-delete:hover { color: var(--red-500); background: rgba(230,57,70,0.1); }

/* Value cell truncation */
.value-cell {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.1); color: var(--green-500); }
.toast.error { border-color: rgba(230,57,70,0.4); background: rgba(230,57,70,0.1); color: var(--red-400); }
.toast.info { border-color: rgba(90,122,170,0.4); }

/* ═══════════════════════════════════════════════════════
   DRAWING RECTANGLE (live preview while dragging)
═══════════════════════════════════════════════════════ */
.draw-rect-preview {
  position: absolute;
  border: 2px dashed var(--red-500);
  background: rgba(230, 57, 70, 0.2);
  pointer-events: none;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 240px 1fr 240px;
  }
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 220px 1fr;
    grid-template-rows: 1fr auto;
  }
  .panel-right {
    grid-column: 1 / -1;
    max-height: 220px;
    border-left: none;
    border-top: 1px solid var(--border-default);
  }
  .topbar-center { display: none; }
}

@media (max-width: 640px) {
  .app-layout { grid-template-columns: 1fr; }
  .panel-left { display: none; }
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.viewer-container,
.empty-state {
  animation: fadeIn 0.3s ease forwards;
}

/* Loading spinner for PDF pages */
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  color: var(--text-muted);
  gap: 10px;
  font-size: 13px;
}

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-default);
  border-top-color: var(--red-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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