:root {
  --primary-blue: #0076fe;
  --dark-bg: #031a34;
  --footer-bg: #021124;
  --text-light: #ffffff;
  --text-muted: #a0aec0;
  --grid-bg: rgba(255, 255, 255, 0.03);
  --grid-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
}

body.light-theme {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  color: #333;
}

/* --- Header / Top Bar --- */
.top-header {
  background-color: #ffffff;
  color: #333;
  padding: 12px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eaeaea;
  background-color: var(--tapa);
  background-image: url(https://immigration-govt-fji.org/assets/tapa-pattern-Blh9TefC.png);
  background-repeat: repeat;
  background-size: 320px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 24px;
  color: #0b2545;
  font-weight: 700;
  line-height: 1.2;
}

.search-container {
  display: flex;
  align-items: center;
  border: 1px solid #c4cbd4;
  border-radius: 4px;
  overflow: hidden;
  width: 320px;
  background: #fff;
}

.search-container input {
  border: none;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.search-btn {
  background-color: var(--primary-blue);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Navigation Bar --- */
.nav-bar {
  background-color: #04152d;
  padding: 0 8% 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  color: #b3c5da;
  text-decoration: none;
  padding: 20px 16px;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li.active a {
  color: var(--text-light);
}

.nav-links li.has-dropdown > a::after {
  content: " ⌃";
  display: inline-block;
  transform: rotate(180deg);
  margin-left: 4px;
  font-size: 10px;
  vertical-align: middle;
}

.immi-hub-btn {
  background-color: var(--primary-blue);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.immi-hub-btn:hover {
  background-color: #006ae5;
}

/* --- Hero Section --- */
.hero-section {
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(0, 150, 160, 0.2) 0%,
      rgba(3, 26, 52, 1) 65%
    ),
    linear-gradient(to bottom, #04152d, #031a34);
  padding: 65px 8%;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 35px;
  letter-spacing: -0.5px;
}

/* --- Portals Grid --- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--grid-border);
  border-left: 1px solid var(--grid-border);
  margin-bottom: 65px;
}

.portal-card {
  background-color: var(--grid-bg);
  border-right: 1px solid var(--grid-border);
  border-bottom: 1px solid var(--grid-border);
  padding: 45px 35px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.portal-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.portal-icon {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

.portal-icon svg {
  width: 32px;
  height: 32px;
}

.portal-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #ffffff;
}

.portal-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -20px;
  margin-bottom: 45px;
}

.dot {
  width: 28px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.dot.active {
  background-color: var(--primary-blue);
  width: 45px;
}

/* --- Notice Section --- */
.notice-section {
  background-color: #021226;
  padding: 70px 15%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.notice-section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 35px;
  text-transform: uppercase;
  line-height: 1.4;
}

.notice-list {
  list-style: none;
  text-align: left;
  max-width: 950px;
  margin: 0 auto;
}

.notice-list li {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding-left: 25px;
}

.notice-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #cbd5e1;
  font-size: 20px;
  top: -2px;
}

/* --- Footer Section --- */
.footer {
  background-color: var(--footer-bg);
  padding: 70px 8% 30px 8%;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo-area {
  margin-bottom: 24px;
}

.footer-brand h2 {
  color: white;
  font-size: 18px;
  line-height: 1.3;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 14px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #e2e8f0;
}

.contact-info svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 28px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.footer-links li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.footer-links li a:hover {
  color: white;
}

.footer-links li::before {
  content: "▶";
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  margin-right: 10px;
}

/* Newsletter form */
.newsletter-text {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.newsletter-form input {
  width: 100%;
  padding: 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: white;
  margin-bottom: 15px;
  outline: none;
  font-size: 14px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.subscribe-btn {
  width: 100%;
  background-color: var(--primary-blue);
  color: white;
  border: none;
  padding: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.2s;
}

.subscribe-btn:hover {
  background-color: #006ae5;
}

.copyright-bar {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .nav-bar {
    flex-direction: column;
    padding: 15px 0;
    gap: 15px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FUCKVISA / PORTAL SPECIFIC STYLES --- */
.portal-header {
  width: 100%;
  border-bottom: 4px solid #0b1e4f;
  background-color: #ffffff;
}
.pattern-bar {
  height: 25px;
  width: 100%;
  background-color: #f1f5f9;
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%);
  background-size: 16px 16px;
  opacity: 0.35;
}
.brand-container {
  display: flex;
  align-items: center;
  padding: 10px 30px;
  gap: 12px;
}
.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: #0c1a30;
}

/* --- SYSTEM SCREEN VIEWS --- */
.view-container {
  padding: 40px 20px;
  display: none;
  justify-content: center;
}
.view-container.active {
  display: flex;
}

/* --- ADMIN INTERFACE --- */
.admin-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 500px;
}
.admin-box h2 {
  margin-bottom: 20px;
  color: #0f172a;
  font-size: 18px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

/* Upload Wrapper Styles */
.upload-container {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 6px;
  background-color: #f8fafc;
}
.upload-container input[type="file"] {
  border: none;
  padding: 0;
  background: transparent;
}
.thumb-preview {
  width: 45px;
  height: 55px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background-color: #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submit-btn {
  width: 100%;
  background: #0b1e4f;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}
.submit-btn:hover {
  background: #11255d;
}
.link-output {
  margin-top: 15px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  display: none;
  word-break: break-all;
}

/* --- PUBLIC VISA CARD DISPLAY --- */
.visa-card {
  width: 100%;
  max-width: 650px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(11, 30, 79, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.card-banner {
  background: linear-gradient(to bottom, #11255d 0%, #172a63 100%);
  padding: 22px 30px;
}
.sub-heading {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.main-heading {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}
.card-body {
  display: flex;
  padding: 30px;
  gap: 30px;
}
.photo-column {
  flex: 0 0 150px;
  text-align: center;
}
.photo-border {
  width: 150px;
  height: 185px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 3px;
  background-color: #ffffff;
}
.photo-inner {
  width: 100%;
  height: 100%;
  background-color: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-placeholder {
  font-size: 50px;
  color: #94a3b8;
}
.caption-text {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 10px;
  letter-spacing: 0.5px;
}
.data-column {
  flex: 1;
  width: 100%;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  background-color: #e6fcf5;
  border: 1px solid #c3fae8;
  color: #0ca678;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.badge-status::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 900;
  background-color: #0ca678;
  color: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 18px;
  column-gap: 24px;
}
.data-block label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.data-block p {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.loading-text {
  font-size: 16px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  margin-top: 50px;
}

@media (max-width: 600px) {
  .card-body {
    flex-direction: column;
    align-items: center;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
}

/* --- STATUS PAGE --- */
.status-page {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-main-wrapper {
  flex: 1;
  background-image:
    linear-gradient(rgba(15, 23, 55, 0.85), rgba(15, 23, 55, 0.92)),
    url(/immigration.jpg);
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.status-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 672px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in oklab, #ffffff 70%, transparent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.status-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.status-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.shield-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shield-icon svg {
  width: 24px;
  height: 24px;
}

.status-card-title-group h2 {
  font-size: 24px;
  color: #0b1e4f;
  margin-bottom: 6px;
  font-weight: 700;
}

.status-card-title-group p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.status-form .form-group {
  margin-bottom: 24px;
}

.status-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0b1e4f;
  margin-bottom: 8px;
}

.status-form label .required {
  color: #ef4444;
}

.status-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #334155;
  transition: border-color 0.2s;
  outline: none;
}

.status-form input[type="text"]::placeholder {
  color: #94a3b8;
}

.status-form input[type="text"]:focus {
  border-color: #0076fe;
  box-shadow: 0 0 0 3px rgba(0, 118, 254, 0.1);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.captcha-box {
  flex: 1;
  background-color: #f1f5f9;
  border: 2px dashed color-mix(in oklab, oklch(22% 0.06 264) 30%, transparent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 52px;
  max-width: 144px;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(15, 23, 55, 0.05) 6px,
    rgba(15, 23, 55, 0.05) 12px
  );
  text-decoration: line-through rgba(15, 23, 55, 0.25);
  background-color: #f3f1ea;
}

.captcha-text {
  font-family: monospace;
  font-size: 20px;
  font-weight: bold;
  color: #334155;
  position: relative;
  z-index: 1;
}

.captcha-refresh {
  width: 38px;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.captcha-refresh:hover {
  background: #f8fafc;
  color: #0b1e4f;
}

.submit-btn-primary {
  width: 100%;
  background-color: #0076fe;
  color: #ffffff;
  border: none;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-transform: uppercase;
  margin-top: 10px;
}

.submit-btn-primary:hover {
  background-color: #006ae5;
}

.status-card-footer {
  margin-top: 24px;
  text-align: center;
}

.status-card-footer p {
  font-size: 12px;
  color: #94a3b8;
}

/* --- RESULT CERTIFICATE --- */
.result-main-wrapper {
  background-color: #f8fafc;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 70px);
}

.certificate-container {
  width: 100%;
  max-width: 850px;
}

.certificate-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f0;
}

.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.cert-watermark img {
  width: 400px;
  height: auto;
}

.cert-header {
  background-image: linear-gradient(
    to right,
    oklch(0.22 0.06 264) 0%,
    rgb(26, 39, 82) 100%
  );
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
  z-index: 1;
}

.cert-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cert-logo {
  width: 60px;
  height: 60px;
}

.cert-republic {
  font-size: 10px;
  letter-spacing: 2px;
  color: color-mix(in oklab, oklch(62% 0.2 255) 90%, transparent);
  font-weight: bold;
  text-transform: uppercase;
  display: block;
}

.cert-ministry {
  font-size: 16px;
  font-weight: bold;
  margin: 4px 0;
  color: white;
}

.cert-subtitle {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 1px;
  display: block;
}

.cert-header-right {
  text-align: right;
}

.cert-visa-label {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.cert-visa-val {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.cert-body {
  padding: 32px;
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 1;
  @media screen and (max-width: 992px) {
    flex-direction: column;
  }
}

.cert-photo-col {
  flex: 0 0 160px;
}

.cert-photo-box {
  width: 160px;
  height: 200px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  background: white;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.cert-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cert-photo-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.cert-details-col {
  flex: 1;
  position: relative;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 24px;
  column-gap: 20px;
}

.cert-item label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cert-item p {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.cert-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seal-circle {
  width: 125px;
  height: 125px;
  border: 4px solid oklab(0.596 -0.13883 0.041849 / 0.8);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotate(-15deg);
  background: rgba(255, 255, 255, 0.9);
}

.seal-text-top {
  font-size: 10px;
  color: #16a34a;
  font-weight: bold;
}

.seal-text-mid {
  font-size: 20px;
  color: oklch(0.508 0.118 165.612);
  font-weight: 900;
  margin: 2px 0;
}

.seal-text-bot {
  font-size: 8px;
  color: #16a34a;
}

.seal-date {
  font-size: 9px;
  color: #16a34a;
  margin-top: 2px;
}

.seal-caption {
  font-size: 10px;
  color: #94a3b8;
  font-weight: bold;
  margin-top: 10px;
  letter-spacing: 1px;
}

.cert-divider {
  height: 1px;
  background: transparent;
  margin: 0 40px;
  position: relative;
  z-index: 1;
  border-bottom: 1px dashed #cbd5e1;
}

.cert-signatures {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 40px;
}

.sig-block {
  flex: 1;
  border-top: 1px solid #94a3b8;
  padding-top: 8px;
}

.sig-block label {
  display: block;
  font-size: 10px;
  color: #64748b;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.sig-block p {
  font-size: 13px;
  color: #1e293b;
  font-weight: bold;
  margin-top: 4px;
}

.cert-download-area {
  background: #f8fafc;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}

.download-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.doc-icon {
  width: 40px;
  height: 40px;
  background: #e0f2fe;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doc-text strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
}

.doc-text span {
  font-size: 12px;
  color: #64748b;
}

.download-btn {
  background: #0076fe;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.download-btn:hover {
  background: #006ae5;
}

.cert-footer {
  background: #f1f5f9;
  padding: 20px 40px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 4px solid #172a53;
  position: relative;
  z-index: 1;
}

.cert-footer p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

@media print {
  .top-header,
  .cert-download-area {
    display: none !important;
  }
  .certificate-card {
    box-shadow: none;
    border: none;
  }
  body,
  .status-page {
    background: white;
  }
  .result-main-wrapper {
    padding: 0;
  }
}

/* Header Action Buttons */
.header-action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.new-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.new-search-btn:hover {
  background: #f8fafc;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0076fe;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.print-btn:hover {
  background: #006ae5;
}

@media (max-width: 768px) {
  .header-action-buttons {
    margin-top: 15px;
    width: 100%;
    justify-content: center;
  }
}
