/**
 * Import Mode Selector Styles
 * Version 1.0.0
 */

/* Overlay */
.import-mode-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.import-mode-overlay.closing {
  animation: fadeOut 0.3s ease;
}

/* Modal */
.import-mode-modal {
  background: white;
  border-radius: 16px;
  max-width: 1400px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* Header */
.import-mode-header {
  padding: 28px 32px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}

.import-mode-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.import-mode-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
}

.import-mode-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Body */
.import-mode-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.import-mode-info {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.import-mode-info p {
  margin: 0;
  font-size: 16px;
  color: #1e40af;
  line-height: 1.6;
}

/* Mode Options */
.import-mode-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

/* Mode Card */
.import-mode-card {
  background: white;
  border: 3px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.import-mode-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
}

.import-mode-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
  background: #f0f9ff;
}

.import-mode-card.recommended {
  border-color: #10b981;
}

.import-mode-card.recommended:hover {
  border-color: #059669;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.recommended-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.recommended-badge i {
  width: 16px;
  height: 16px;
}

/* Mode Icon */
.import-mode-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.import-mode-icon i {
  width: 36px;
  height: 36px;
  color: white;
}

.import-mode-icon.replace {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.import-mode-icon.merge {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.import-mode-icon.append {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Mode Content */
.import-mode-content h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.import-mode-content p {
  margin: 8px 0 16px;
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

.import-mode-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-mode-details li {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.import-mode-details li i {
  width: 18px;
  height: 18px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Warning/Highlight/Note boxes */
.import-mode-warning,
.import-mode-highlight,
.import-mode-note {
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.import-mode-warning {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  color: #991b1b;
}

.import-mode-warning i {
  width: 18px;
  height: 18px;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 1px;
}

.import-mode-highlight {
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  color: #065f46;
}

.import-mode-highlight i {
  width: 18px;
  height: 18px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 1px;
}

.import-mode-note {
  background: #f3f4f6;
  border-left: 3px solid #6b7280;
  color: #374151;
}

.import-mode-note i {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Select Button */
.import-mode-select-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: 2px solid #3b82f6;
  background: white;
  color: #3b82f6;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: auto;
}

.import-mode-select-btn:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.import-mode-select-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
}

.import-mode-select-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.import-mode-select-btn i {
  width: 20px;
  height: 20px;
}

/* Footer */
.import-mode-footer {
  padding: 20px 32px;
  border-top: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.import-mode-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.import-mode-btn.secondary {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.import-mode-btn.secondary:hover {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 1200px) {
  .import-mode-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .import-mode-modal {
    border-radius: 0;
    max-height: 100vh;
  }
  
  .import-mode-header {
    border-radius: 0;
  }
  
  .import-mode-footer {
    border-radius: 0;
  }
}
