/* ==========================================
   FILE: css/components/verification.css
   ✅ PRODUCTION-READY - Document Verification Styling
   ========================================== */

/* ===== Hero Section ===== */
.verification-page .hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.verification-page .hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.verification-page .hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.verification-page .hero-section .container {
  position: relative;
  z-index: 1;
}

.verification-page .hero-section h1 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.verification-page .hero-section .lead {
  color: rgba(255, 255, 255, 0.95);
}

/* ===== Main Verification Card ===== */
.verification-page .card {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.verification-page .card:hover {
  transform: translateY(-2px);
}

/* ===== Method Selection Buttons ===== */
.btn-group .btn {
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-group .btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-group .btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border: none;
}

.btn-group .btn-outline-primary {
  border: 2px solid #1e3a8a;
  color: #1e3a8a;
}

.btn-group .btn-outline-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
}

/* ===== Manual Input Form ===== */
.input-group-lg .input-group-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border: none;
  font-size: 1.25rem;
}

.input-group-lg .form-control {
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-group-lg .form-control:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.15);
  transform: translateY(-1px);
}

/* ===== QR Scanner Interface ===== */
.qr-scanner-wrapper {
  min-height: 400px;
}

.scanner-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.scanner-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4ade80, transparent);
  animation: scannerMove 2s linear infinite;
  box-shadow: 0 0 10px #4ade80;
}

@keyframes scannerMove {
  0%, 100% {
    top: 10%;
  }
  50% {
    top: 90%;
  }
}

/* Add scanning corner indicators */
.scanner-frame::before,
.scanner-frame::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid #4ade80;
  z-index: 2;
}

.scanner-frame::before {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.scanner-frame::after {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

/* ===== Verification Results ===== */
.success-icon,
.error-icon {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Success Result */
.border-success.border-4 {
  border-top-width: 5px !important;
}

.text-success {
  color: #059669 !important;
}

/* Error Result */
.border-danger.border-4 {
  border-top-width: 5px !important;
}

.text-danger {
  color: #dc2626 !important;
}

/* ===== Document Details ===== */
.document-details .detail-item {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.document-details .detail-item:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.document-details label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

/* ===== Info Section ===== */
.info-section {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-top: 1px solid #e5e7eb;
}

.info-section i {
  transition: transform 0.3s ease;
}

.info-section .col-md-4:hover i {
  transform: scale(1.1);
}

/* ===== Badges ===== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge.bg-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* ===== Alerts ===== */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e3a8a;
  border-left: 4px solid #1e3a8a;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
  border-left: 4px solid #f59e0b;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

/* ===== Buttons ===== */
.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
}

.btn-outline-secondary {
  border: 2px solid #d1d5db;
  color: #6b7280;
  font-weight: 600;
}

.btn-outline-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

/* ===== Loading States ===== */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .verification-page .hero-section {
    padding: 3rem 0 !important;
  }

  .verification-page .hero-section h1 {
    font-size: 2rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .document-details .detail-item {
    margin-bottom: 0.75rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* ===== Accessibility ===== */
.btn:focus,
.form-control:focus {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
  .verification-page .hero-section,
  .info-section,
  button,
  .btn {
    display: none !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }

  .document-details .detail-item {
    break-inside: avoid;
  }
}