/* VOTR Chat Migration - Styles */

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

header h1 {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.subtitle {
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

#user-name {
  font-weight: 500;
}

/* Cards */
.card, .info-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.info-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.info-card ul {
  list-style: none;
}

.info-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-card li:last-child {
  border-bottom: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.actions {
  margin-top: 1.5rem;
}

.download-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Dev mode */
.dev-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.dev-note {
  color: var(--warning-color);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Progress bar */
.progress-container {
  margin: 1rem 0;
}

.progress-bar {
  height: 12px;
  background-color: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #818cf8);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

#progress-percent {
  font-weight: 600;
  color: var(--primary-color);
}

.status-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  background-color: var(--bg-color);
}

/* Stats grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 0.75rem;
  background-color: var(--bg-color);
  border-radius: 8px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Export table */
.export-table {
  width: 100%;
  border-collapse: collapse;
}

.export-table th,
.export-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.export-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-failed {
  background-color: #fee2e2;
  color: #991b1b;
}

.error-text {
  color: var(--error-color);
  font-size: 0.875rem;
  cursor: help;
}

.no-data {
  color: var(--text-muted);
  font-style: italic;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-actions {
    flex-direction: column;
  }
  
  header {
    flex-direction: column;
    text-align: center;
  }
  
  .export-table {
    font-size: 0.875rem;
  }
  
  .export-table th,
  .export-table td {
    padding: 0.5rem;
  }
}
