.export-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.export-content {
  margin-top: 20px;
}

.export-description {
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.export-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.export-card h2 {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.summary-item {
  text-align: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.summary-item .count {
  font-size: 2rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 4px;
}

.summary-item .label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.mode-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mode-button {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.mode-button:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.mode-button.active {
  border-color: #3b82f6;
  background: #3b82f6;
  color: white;
}

.mode-description {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.checkbox-label input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.export-actions {
  margin-top: 24px;
}

.export-button {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.export-button.primary {
  background: #3b82f6;
  color: white;
}

.export-button.primary:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.export-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

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

.export-card.info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.export-card.info h2 {
  color: #1e40af;
}

.export-card.info ul {
  margin: 0;
  padding-left: 20px;
}

.export-card.info ul li {
  margin-bottom: 8px;
  color: #1e40af;
  line-height: 1.5;
}

.privacy-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  color: #1e40af;
  font-weight: 500;
  text-align: center;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-close:hover {
  opacity: 1;
}

/* Dark theme support */
[data-theme='dark'] .export-page {
  color: #f1f5f9;
}

[data-theme='dark'] .export-description {
  color: #94a3b8;
}

[data-theme='dark'] .export-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme='dark'] .export-card h2 {
  color: #f1f5f9;
}

[data-theme='dark'] .summary-item {
  background: #334155;
  border-color: #475569;
}

[data-theme='dark'] .summary-item .count {
  color: #60a5fa;
}

[data-theme='dark'] .summary-item .label {
  color: #94a3b8;
}

[data-theme='dark'] .form-control {
  background: #374151;
  border-color: #4b5563;
  color: #f1f5f9;
}

[data-theme='dark'] .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

[data-theme='dark'] .mode-button {
  background: #374151;
  border-color: #4b5563;
  color: #f1f5f9;
}

[data-theme='dark'] .mode-button:hover {
  border-color: #60a5fa;
  background: #1e40af;
}

[data-theme='dark'] .mode-button.active {
  background: #60a5fa;
  border-color: #60a5fa;
}

[data-theme='dark'] .mode-description {
  color: #94a3b8;
}

[data-theme='dark'] .checkbox-grid {
  background: #334155;
  border-color: #475569;
}

[data-theme='dark'] .export-card.info {
  background: rgba(30, 64, 175, 0.1);
  border-color: rgba(147, 197, 253, 0.3);
}

[data-theme='dark'] .export-card.info h2,
[data-theme='dark'] .export-card.info ul li {
  color: #93c5fd;
}

[data-theme='dark'] .privacy-note {
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
}

/* Responsive design */
