@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
  --primary-navy: #1b365d;
  --primary-blue: #1e3a5f;
  --title-color: #1b365d;
  --card-title-color: #1b365d;
  --label-color: #718096;
  --value-color: #2d3748;
  --badge-green: #00b074;
  --badge-expired: #e53e3e;
  --badge-cancelled: #718096;
  --bg-color: #f7f9fa;
  --card-bg: #ffffff;
  --card-border: #edf2f7;
  --card-divider: #f0f3f6;
  --footer-text: #718096;
  --footer-sub: #a0aec0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  font-family: 'IBM Plex Sans Arabic', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--value-color);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.lang-en {
  direction: ltr;
  text-align: left;
}

/* Top Navigation Bar */
.top-nav-bar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  padding: 10px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav-container {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: rtl;
}

.nav-logo-mol {
  order: 1; /* Right side in RTL */
}

.nav-logo-ajeer {
  order: 2; /* Left side in RTL */
  direction: rtl;
}

.nav-logo-ajeer img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo-mol img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Main Container */
.verification-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 22px;
  padding: 0;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--title-color);
  line-height: 1.36;
  letter-spacing: -0.3px;
}

/* Verification Cards */
.verify-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(15, 34, 58, 0.035);
  margin-bottom: 16px;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px 13px;
  border-bottom: 1px solid var(--card-divider);
}

.card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--card-title-color);
  margin: 0;
  text-align: right;
}

.card-body {
  padding: 16px 20px 18px;
  text-align: right;
}

/* Field Group */
.field-group {
  margin-bottom: 16px;
  text-align: right;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--label-color);
  margin-bottom: 4px;
}

.field-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--value-color);
  line-height: 1.45;
  word-break: break-word;
}

.field-value.english-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.3px;
  font-weight: 700;
  color: #2d3748;
}

/* Status Badge */
.status-badge-container {
  margin-top: 4px;
  margin-bottom: 4px;
}

.status-badge {
  display: inline-block;
  background-color: var(--badge-green);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 6px 26px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 176, 116, 0.2);
  min-width: 85px;
  text-align: center;
}

.status-badge.expired {
  background-color: var(--badge-expired);
  box-shadow: 0 1px 3px rgba(229, 62, 62, 0.2);
}

.status-badge.cancelled {
  background-color: var(--badge-cancelled);
  box-shadow: 0 1px 3px rgba(113, 128, 150, 0.2);
}

/* Action Button */
.action-container {
  margin-top: 20px;
  margin-bottom: 24px;
}

.btn-copy-link {
  width: 100%;
  background-color: var(--primary-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 3px 10px rgba(27, 61, 138, 0.22);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-copy-link:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 4px 14px rgba(27, 61, 138, 0.32);
  transform: translateY(-1px);
}

.btn-copy-link:active {
  transform: translateY(0);
}

.btn-copy-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

/* Page Footer */
.page-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  margin-bottom: 2px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.footer-link {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary-blue);
}

.footer-copyright {
  color: var(--footer-sub);
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 4px;
}

.footer-lang-btn {
  background: none;
  border: none;
  color: #38506e;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: 2px;
}

.footer-lang-btn:hover {
  background-color: #e5edf7;
  color: var(--primary-blue);
}

.footer-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5ecf5;
  width: 100%;
}

.footer-partners img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(22, 38, 59, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .btn-copy-link, .footer-lang-btn, .toast-msg {
    display: none !important;
  }
  .verify-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
