@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-blue: #004b87;
  --primary-dark: #072a4a;
  --primary-deep: #031b33;
  --primary-light: #0d6efd;
  --primary-soft: #f0f6fc;
  --accent-orange: #f26522;
  --accent-orange-hover: #d95314;
  --accent-orange-light: #fff7ed;
  --accent-orange-border: #fed7aa;
  --verified-green: #16a34a;
  --verified-green-dark: #15803d;
  --verified-green-light: #ecfdf5;
  --verified-green-border: #a7f3d0;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px -4px rgba(7, 42, 74, 0.12), 0 4px 8px -2px rgba(7, 42, 74, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-main);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------
   Top Notification / Helpline Bar
------------------------------------------------------------- */
.top-notice-bar {
  background: var(--primary-deep);
  color: #e2e8f0;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-badge-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.top-contact-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-contact-links a {
  color: #fed7aa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.top-contact-links a:hover {
  color: #ffffff;
}

/* -------------------------------------------------------------
   Main Header Navigation
------------------------------------------------------------- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 64px;
  max-height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link-item {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link-item:hover {
  color: var(--primary-blue);
  background: var(--primary-soft);
}

.btn-admin {
  background: #ffffff;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-admin:hover {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 75, 135, 0.25);
}

/* -------------------------------------------------------------
   Hero & Search Section
------------------------------------------------------------- */
.verify-hero {
  background: linear-gradient(135deg, #072a4a 0%, #004b87 50%, #0a4f8d 100%);
  color: #ffffff;
  padding: 48px 20px 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verify-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(242, 101, 34, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 101, 34, 0.18);
  border: 1px solid rgba(242, 101, 34, 0.4);
  color: #fed7aa;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 30px;
  font-weight: 400;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.search-box-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: var(--text-light);
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1.02rem;
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--text-dark);
}

.search-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.btn-search {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #e05e10 100%);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover) 0%, #c44d08 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 101, 34, 0.45);
}

.btn-search:active {
  transform: translateY(1px);
}

/* -------------------------------------------------------------
   Main Container
------------------------------------------------------------- */
.main-container {
  max-width: 1200px;
  margin: -24px auto 56px;
  padding: 0 20px;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 10;
}

/* -------------------------------------------------------------
   Verification Result Card (NIIT Style + Premium Polish)
------------------------------------------------------------- */
.verification-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Authentic Banner Header */
.card-header-status {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.verified-icon-circle {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.verified-icon-circle svg {
  width: 22px;
  height: 22px;
  fill: #16a34a;
}

.verified-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

/* Card Body Content (Clean Full-Width Layout) */
.card-body-content {
  padding: 40px 44px 32px;
}

@media (max-width: 768px) {
  .card-body-content {
    padding: 28px 20px 24px;
  }
}

/* Candidate Photo Column */
.candidate-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photo-wrapper {
  width: 180px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 4px solid #ffffff;
  outline: 2px solid var(--border-color);
  background: #f1f5f9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  height: 100%;
}

.photo-placeholder svg {
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  color: #94a3b8;
}

.photo-placeholder span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.candidate-badge-tag {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid var(--accent-orange-border);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.candidate-status-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Center Details Column */
.candidate-details-col {
  display: flex;
  flex-direction: column;
}

.candidate-name-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

.candidate-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.candidate-subline strong {
  color: var(--text-dark);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
  background: #f8fafc;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

@media (max-width: 960px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.detail-value.highlight-course {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.35;
}

.grade-badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--verified-green-light);
  color: var(--verified-green-dark);
  border: 1.5px solid var(--verified-green-border);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  width: fit-content;
}

/* -------------------------------------------------------------
   Certificate Document / Photo Preview Section
------------------------------------------------------------- */
.certificate-preview-section {
  margin-top: 36px;
  border-top: 2px solid var(--border-color);
  padding-top: 30px;
}

.certificate-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.preview-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.preview-header-title svg {
  color: var(--accent-orange);
}

.certificate-preview-canvas {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.certificate-preview-img {
  max-width: 100%;
  max-height: 750px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
  border: 1px solid #cbd5e1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
  display: block;
}

.certificate-preview-img:hover {
  transform: translateY(-2px) scale(1.008);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.certificate-preview-iframe {
  width: 100%;
  height: 650px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Card Actions Bar */
.card-actions-bar {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 22px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.doc-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-action-primary {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 75, 135, 0.2);
  transition: all 0.2s;
}

.btn-action-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 75, 135, 0.3);
  transform: translateY(-1px);
}

.btn-action-accent {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #e05e10 100%);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(242, 101, 34, 0.25);
  transition: all 0.2s;
}

.btn-action-accent:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover) 0%, #c44d08 100%);
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.35);
  transform: translateY(-1px);
}

.btn-action-outline {
  background: #ffffff;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary-blue);
}

/* -------------------------------------------------------------
   Alert & Default States
------------------------------------------------------------- */
.alert-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 28px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.alert-icon-box {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-icon-box.not-found {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fee2e2;
}

.alert-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.alert-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   Site Footer
------------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 44px 20px 28px;
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 4px solid var(--accent-orange);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-bg {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-logo-bg img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-disclaimer {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.2);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 14px;
}

/* -------------------------------------------------------------
   Print Media Styles
------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }
  .top-notice-bar,
  .verify-hero,
  .card-actions-bar,
  .site-footer,
  .btn-admin,
  .btn-qr-download {
    display: none !important;
  }
  .site-header {
    border: none;
    box-shadow: none;
    position: static;
  }
  .brand-logo {
    height: 70px;
  }
  .main-container {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }
  .verification-card {
    border: 2px solid #000000;
    box-shadow: none;
    border-radius: 0;
  }
  .card-header-status {
    background: #15803d !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .card-body-content {
    padding: 24px;
  }
  .details-grid {
    background: #ffffff;
    border: 1px solid #ccc;
  }
}
