/* MagnifyHope Import Utility Styles */

/* Import Button */
.btn-import {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.btn-import:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Import Modal */
.import-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.import-modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.import-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e3e8f0;
}

.import-modal-header h2 {
  margin: 0;
  color: #1f6feb;
  font-size: 1.5rem;
}

.import-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.import-close-btn:hover {
  background: #f8f9fa;
  color: #000;
}

.import-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.import-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e3e8f0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Import Sections */
.import-section {
  margin-bottom: 32px;
}

.import-section h3 {
  color: #333;
  font-size: 1.1rem;
  margin: 0 0 16px 0;
}

/* File Drop Zone */
.import-file-area {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background: #f7fafc;
  transition: all 0.3s ease;
  cursor: pointer;
}

.import-file-area:hover {
  border-color: #1f6feb;
  background: #eef2ff;
}

.import-file-area.import-drag-over {
  border-color: #1f6feb;
  background: #eef2ff;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
}

.import-drop-text svg {
  color: #cbd5e0;
  margin-bottom: 16px;
}

.import-drop-text p {
  color: #718096;
  margin: 12px 0;
}

.import-formats {
  font-size: 0.85rem;
  color: #a0aec0;
  margin-top: 8px;
}

.import-file-name {
  margin-top: 12px;
  padding: 12px;
  background: #e8f5e9;
  border-radius: 8px;
  color: #2e7d32;
}

/* Field Mapping */
.import-mapping-info {
  background: #f0f7ff;
  border-left: 4px solid #1f6feb;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.import-mapping-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.import-mapping-table th {
  background: linear-gradient(135deg, #f7f9fc 0%, #e3e8f0 100%);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.import-mapping-table td {
  padding: 10px 12px;
  border-top: 1px solid #e3e8f0;
}

.import-field-map {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.import-preview-cell {
  font-size: 0.85rem;
  color: #718096;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Import Options */
.import-options {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
}

.import-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.import-checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.import-checkbox span {
  color: #333;
  font-size: 0.95rem;
}

/* Progress Bar */
.import-progress-bar {
  width: 100%;
  height: 24px;
  background: #e3e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

.import-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #1f6feb 0%, #0056b3 100%);
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

#importProgressText {
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Import Results */
.import-results-summary {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.import-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.import-warning {
  background: #fff3e0;
  color: #f57c00;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.import-errors {
  background: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.import-errors h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

.import-errors ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .import-modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .import-modal-header {
    padding: 16px;
  }
  
  .import-modal-body {
    padding: 16px;
  }
  
  .import-file-area {
    padding: 24px;
  }
  
  .import-mapping-table {
    font-size: 0.85rem;
  }
  
  .import-mapping-table th,
  .import-mapping-table td {
    padding: 8px;
  }
  
  .import-preview-cell {
    max-width: 100px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}