/* ═══════════════════════════════════════════════════
   MercadoRD — Estilos de Verificación de Identidad
   Archivo: css/verification.css
═══════════════════════════════════════════════════ */

.verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.verification-overlay.show {
  display: flex;
}

.verification-panel {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

.verification-header {
  background: linear-gradient(90deg, #003087, #0a4ab8);
  color: #fff;
  padding: 24px;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.verification-header h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.verification-header p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.verification-content {
  padding: 32px;
  flex: 1;
  overflow-y: auto;
}

.verification-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.verification-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.verification-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.verification-step-num {
  width: 40px;
  height: 40px;
  background: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700;
  font-size: 16px;
  color: #666;
  transition: all 0.3s;
}

.verification-step.active .verification-step-num {
  background: linear-gradient(90deg, #003087, #0a4ab8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.verification-step.completed .verification-step-num {
  background: #4caf50;
  color: #fff;
}

.verification-step-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.verification-step.active .verification-step-label {
  color: #003087;
  font-weight: 700;
}

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

.verification-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.verification-input,
.verification-select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Sora', sans-serif;
  transition: border-color 0.2s;
}

.verification-input:focus,
.verification-select:focus {
  outline: none;
  border-color: #003087;
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

.verification-input[type="file"] {
  padding: 6px;
}

.file-upload {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8f9fa;
}

.file-upload:hover {
  border-color: #003087;
  background: #f0f3f8;
}

.file-upload.has-file {
  border-color: #4caf50;
  background: #f1f8f6;
}

.file-upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.file-upload-text {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.file-upload-file {
  font-size: 12px;
  color: #4caf50;
  margin: 8px 0 0;
  font-weight: 600;
}

.camera-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
}

#cameraFeed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 360px;
  border: 3px solid rgba(76, 175, 80, 0.5);
  border-radius: 16px;
  pointer-events: none;
}

.camera-instructions {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #856404;
  line-height: 1.6;
}

.camera-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.camera-button {
  background: linear-gradient(90deg, #003087, #0a4ab8);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Sora', sans-serif;
}

.camera-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.camera-button.secondary {
  background: #f0f3f8;
  color: #003087;
  border: 1px solid #ddd;
}

.camera-button.secondary:hover {
  background: #e8ecf5;
}

.camera-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.verification-info-box {
  background: #e3f2fd;
  border-left: 4px solid #003087;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #1565c0;
  line-height: 1.6;
}

.verification-warning {
  background: #ffebee;
  border-left: 4px solid #d32f2f;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #b71c1c;
  line-height: 1.6;
}

.verification-info-box strong,
.verification-warning strong {
  display: block;
  margin-bottom: 6px;
}

.verification-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  margin-top: 24px;
}

.verification-btn-cancel {
  background: #f0f3f8;
  color: #666;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Sora', sans-serif;
}

.verification-btn-cancel:hover {
  background: #e8ecf5;
  color: #1a1a2e;
}

.verification-btn-submit {
  background: linear-gradient(90deg, #003087, #0a4ab8);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Sora', sans-serif;
}

.verification-btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.3);
}

.verification-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.verification-success {
  text-align: center;
  padding: 40px 20px;
}

.verification-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.verification-success-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.verification-success-msg {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.verification-pending {
  background: #fff3cd;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.verification-pending-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.verification-pending-title {
  font-size: 18px;
  font-weight: 700;
  color: #856404;
  margin-bottom: 8px;
}

.verification-pending-msg {
  font-size: 13px;
  color: #856404;
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .verification-panel {
    width: 95%;
    max-height: 95vh;
  }

  .verification-content {
    padding: 20px;
  }

  .verification-header {
    padding: 16px;
  }

  .verification-header h2 {
    font-size: 18px;
  }

  .verification-steps {
    margin-bottom: 24px;
  }

  .verification-step-label {
    font-size: 11px;
  }

  .camera-overlay {
    width: 240px;
    height: 300px;
  }
}
