/* ═══════════════════════════════════════════════════════════════
   IMPORTACION.CSS  ·  Estilos del Módulo de Importación
   Hacienda San Miguel · Cotizador de Bodas
   ═══════════════════════════════════════════════════════════════ */

/* ── FILE DROP ZONE ────────────────────────────────────────── */
.file-drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--r-lg);
  padding: 40px 24px;
  text-align: center;
  background: var(--gray-50);
  transition: all 0.3s;
  cursor: pointer;
}

.file-drop-zone:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-xlight);
}

.file-drop-zone.drag-over {
  border-color: var(--brand-primary);
  background: var(--brand-primary-xlight);
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(200, 105, 26, 0.1);
}

.file-drop-icon {
  font-size: 48px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.file-drop-zone:hover .file-drop-icon,
.file-drop-zone.drag-over .file-drop-icon {
  color: var(--brand-primary);
  transform: scale(1.1);
  transition: all 0.3s;
}

.file-drop-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.file-drop-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.file-drop-btn {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--r-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.file-drop-btn:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 105, 26, 0.3);
}

/* ── FILE INFO ──────────────────────────────────────────────── */
.import-file-info {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInDown 0.3s ease-out;
}

.import-file-info.hidden {
  display: none;
}

/* ── FORMAT INFO ────────────────────────────────────────────── */
.import-format-info {
  animation: fadeIn 0.3s ease-out;
}

/* ── MAPEO GRID ─────────────────────────────────────────────── */
.mapeo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.mapeo-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mapeo-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* ── PREVIEW TABLE ──────────────────────────────────────────── */
.import-preview-table tbody tr.row-ok {
  background: #F0FDF4;
}

.import-preview-table tbody tr.row-error {
  background: #FEF2F2;
}

.import-preview-table tbody tr.row-ok:hover {
  background: #DCFCE7;
}

.import-preview-table tbody tr.row-error:hover {
  background: #FEE2E2;
}

/* ── CONFIRM WARNING ────────────────────────────────────────── */
.import-confirm-warning {
  padding: 20px;
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: var(--r-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
  50% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.1); }
}

/* ── HISTORY ITEM ───────────────────────────────────────────── */
.import-history-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.2s;
}

.import-history-item:hover {
  background: var(--gray-50);
}

.import-history-item:last-child {
  border-bottom: none;
}

/* ── DETAIL MODAL ───────────────────────────────────────────── */
.import-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.import-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--r-md);
}

.import-detail-label {
  font-weight: 600;
  color: var(--gray-600);
  min-width: 120px;
  font-size: 0.85rem;
}

.import-detail-value {
  color: var(--gray-800);
  font-size: 0.9rem;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mapeo-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .file-drop-zone {
    padding: 30px 16px;
  }

  .file-drop-icon {
    font-size: 36px;
  }

  .mapeo-grid {
    grid-template-columns: 1fr;
  }

  .import-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .import-detail-label {
    min-width: auto;
  }
}

/* ── FIN DE ESTILOS IMPORTACION ─────────────────────────────── */
