
/* ==========================================================================
   Smart LMS - Official Certificate Verification Stylesheet (slms-verify.css)
   Minimal Audit Ledger View & Institutional Registry Record
   ========================================================================== */
/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
.slms-scope {
  /* Brand Palette */
  --slms-primary: #2563eb;
  --slms-primary-light: #eff6ff;
  --slms-primary-border: #bfdbfe;

  /* Status Colors */
  --slms-status-completed: #059669;
  --slms-status-completed-bg: #ecfdf5;
  --slms-status-completed-border: #a7f3d0;
  --slms-status-expired-bg: #fef2f2;
  --slms-status-expired-border: #fecaca;

  /* Neutral Backgrounds */
  --slms-bg-app: #f8fafc;
  --slms-bg-surface: #ffffff;
  --slms-bg-subtle: #f1f5f9;

  /* Borders & Lines */
  --slms-border-default: #e2e8f0;

  /* Typography Colors */
  --slms-text-primary: #0f172a;
  --slms-text-secondary: #334155;
  --slms-text-muted: #64748b;

  /* Box Shadows */
  --slms-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --slms-shadow-card: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Border Radii */
  --slms-radius-xs: 4px;
  --slms-radius-sm: 6px;
  --slms-radius-md: 10px;
  --slms-radius-lg: 14px;
  --slms-radius-full: 9999px;

  /* Transitions */
  --slms-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --slms-transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* ==========================================================================
   2. Global Reset & Base Setup
   ========================================================================== */
.slms-scope *,
.slms-scope *::before,
.slms-scope *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.slms-scope {
  font-family: var(--slms-font-sans);
  background-color: transparent;
  color: var(--slms-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* ==========================================================================
   3. Page Container & Layout (Consistent 1480px)
   ========================================================================== */
.slms-verify-page-wrapper {
  min-height: 100vh;
  background-color: transparent;
  
}
.slms-verify-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
/* ==========================================================================
   4. Institutional Header
   ========================================================================== */
.slms-verify-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  position: relative;
}
.slms-verify-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.slms-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--slms-bg-subtle);
  padding: 0.25rem;
  border-radius: var(--slms-radius-md);
  border: 1px solid var(--slms-border-default);
  gap: 0.25rem;
}
.slms-lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: var(--slms-radius-sm);
  border: none;
  background: transparent;
  color: var(--slms-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--slms-transition-fast);
}
.slms-lang-btn:hover {
  color: var(--slms-text-primary);
}
.slms-lang-btn.slms-is-active {
  background: var(--slms-primary);
  color: #ffffff;
  box-shadow: var(--slms-shadow-sm);
}
.slms-verify-emblem {
  width: 58px;
  height: 58px;
  border-radius: var(--slms-radius-full);
  background: var(--slms-primary-light);
  color: var(--slms-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  border: 1px solid var(--slms-primary-border);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}
.slms-verify-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--slms-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}
/* Lao typography refinements — the registry itself follows the Settings font. */
.slms-lang-lo .slms-verify-title,
.slms-lang-lo .slms-status-heading,
.slms-lang-lo .slms-program-title {
  letter-spacing: 0;
}
/* ==========================================================================
   5. Dynamic Status Banner
   ========================================================================== */
.slms-verify-status-banner {
  max-width: 900px;
  margin: 0 auto 1.75rem;
  padding: 1.375rem 1.75rem;
  border-radius: var(--slms-radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--slms-shadow-sm);
  transition: all var(--slms-transition-smooth);
}
.slms-status-valid {
  background: var(--slms-status-completed-bg);
  border: 1.5px solid var(--slms-status-completed-border);
}
.slms-status-valid .slms-status-icon-wrap {
  background: #10b981;
  color: #ffffff;
}
.slms-status-valid .slms-status-badge-tag {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.slms-status-valid .slms-status-heading {
  color: #065f46;
}
.slms-status-valid .slms-status-desc {
  color: #047857;
}
/* Expired Status State */
.slms-status-expired {
  background: var(--slms-status-expired-bg);
  border: 1.5px solid var(--slms-status-expired-border);
}
.slms-status-expired .slms-status-icon-wrap {
  background: #ef4444;
  color: #ffffff;
}
.slms-status-expired .slms-status-badge-tag {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.slms-status-expired .slms-status-heading {
  color: #991b1b;
}
.slms-status-expired .slms-status-desc {
  color: #b91c1c;
}
/* Not-Found Status State (Unknown Credential Code) */
.slms-status-invalid {
  background: var(--slms-status-expired-bg);
  border: 1.5px dashed var(--slms-status-expired-border);
}
.slms-status-invalid .slms-status-icon-wrap {
  background: #ef4444;
  color: #ffffff;
}
.slms-status-invalid .slms-status-badge-tag {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.slms-status-invalid .slms-status-heading {
  color: #991b1b;
}
.slms-status-invalid .slms-status-desc {
  color: #b91c1c;
}
.slms-is-hidden {
  display: none !important;
}
.slms-status-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--slms-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.slms-status-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.slms-status-badge-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.625rem;
  border-radius: var(--slms-radius-full);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.125rem;
}
.slms-status-heading {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.slms-status-desc {
  font-size: 0.875rem;
  line-height: 1.5;
}
/* ==========================================================================
   6. Minimal Read-Only Audit Ledger Card
   ========================================================================== */
.slms-verify-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--slms-bg-surface);
  border: 1px solid var(--slms-border-default);
  border-radius: var(--slms-radius-lg);
  box-shadow: var(--slms-shadow-card);
  overflow: hidden;
}
.slms-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.75rem;
  background: var(--slms-bg-subtle);
  border-bottom: 1px solid var(--slms-border-default);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slms-top-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slms-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.slms-top-bar-time {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--slms-text-muted);
}
/* Ledger Table */
.slms-ledger-table-wrap {
  overflow-x: auto;
}
.slms-ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.slms-ledger-table tr {
  border-bottom: 1px solid var(--slms-border-default);
}
.slms-ledger-table tr:last-child {
  border-bottom: none;
}
.slms-ledger-table tr:hover {
  background: #fafafa;
}
.slms-col-label {
  width: 260px;
  padding: 1.125rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slms-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--slms-bg-subtle);
  vertical-align: top;
}
.slms-col-value {
  padding: 1.125rem 1.75rem;
  font-size: 0.9375rem;
  color: var(--slms-text-primary);
  vertical-align: middle;
}
/* Elements inside table cells */
.slms-code-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e3a8a;
  background: var(--slms-primary-light);
  padding: 0.25rem 0.625rem;
  border-radius: var(--slms-radius-xs);
  border: 1px solid var(--slms-primary-border);
}
.slms-recipient-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slms-text-primary);
}
.slms-recipient-lic {
  display: block;
  font-size: 0.8125rem;
  color: var(--slms-text-muted);
  margin-top: 0.125rem;
}
.slms-program-title {
  display: block;
  font-weight: 700;
  color: var(--slms-text-primary);
  line-height: 1.4;
}
.slms-program-cat {
  display: block;
  font-size: 0.8125rem;
  color: var(--slms-text-muted);
  margin-top: 0.125rem;
}


.slms-validity-status {
  font-weight: 700;
}

/* Cryptographic hash row removed by design — a client-side hash proves
   nothing and implied tamper-evidence this static registry does not have. */
/* Card Footer */
.slms-card-footer {
  padding: 1.125rem 1.75rem;
  background: var(--slms-bg-subtle);
  border-top: 1px solid var(--slms-border-default);
}
.slms-security-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78125rem;
  color: var(--slms-text-muted);
  font-weight: 500;
}
.slms-security-notice svg {
  color: var(--slms-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px)  {
.slms-verify-container {
    padding: 2rem 1.25rem 4rem;
  }
}

@media (max-width: 768px)  {
.slms-verify-container {
    padding: 1.5rem 0.875rem 4rem;
  }
.slms-verify-title {
    font-size: 1.5rem;
  }
.slms-verify-status-banner {
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.875rem;
  }
.slms-ledger-table {
    display: block;
  }
.slms-ledger-table tbody,
.slms-ledger-table tr,
.slms-ledger-table th,
.slms-ledger-table td {
    display: block;
    width: 100%;
  }
.slms-col-label {
    padding: 0.75rem 1.25rem 0.25rem;
    background: transparent;
    border-bottom: none;
    font-size: 0.75rem;
  }
.slms-col-value {
    padding: 0.25rem 1.25rem 1rem;
  }
.slms-ledger-table tr {
    border-bottom: 1px solid var(--slms-border-default);
  }
}

@media (max-width: 480px)  {
.slms-verify-container {
    padding: 1.25rem 0.75rem 3.5rem;
  }
}

/* Global institution logo replaces the shield inside the emblem. */
.slms-verify-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  display: block;
  box-sizing: border-box;
}

/* Completed Status State (course / attendance credentials) — same trust
   palette as valid, slightly deeper accents to read as "verified record". */
.slms-status-completed {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}
.slms-status-completed .slms-status-icon-wrap {
  background: #10b981;
  color: #ffffff;
}
.slms-status-completed .slms-status-badge-tag {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.slms-status-completed .slms-status-heading {
  color: #166534;
}
.slms-status-completed .slms-status-desc {
  color: #15803d;
}

/* Idle state (bare /verify/ with no code) — neutral, not an error. */
.slms-status-idle {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
}
.slms-status-idle .slms-status-icon-wrap {
  background: #64748b;
  color: #ffffff;
}
.slms-status-idle .slms-status-badge-tag {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.slms-status-idle .slms-status-heading {
  color: #334155;
}
.slms-status-idle .slms-status-desc {
  color: #475569;
}

/* Print: the ledger is the natural offline proof artifact — print it clean. */
@media print {
  .slms-verify-top-actions,
  .slms-cert-topbar,
  #main-header,
  #main-footer,
  #wpadminbar,
  #et-secondary-nav {
    display: none !important;
  }
  .slms-verify-page-wrapper { background: #ffffff !important; padding: 0 !important; }
  .slms-verify-container { max-width: 100% !important; box-shadow: none !important; }
  .slms-verify-status-banner {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
