/* ===== DIMS Certificate System (admin + verify) ===== */
.sys-wrap{max-width:1080px;margin:30px auto 60px;padding:0 18px}
.view{display:none}.view.active{display:block}

.sys-tabs{display:flex;gap:6px;background:#fff;border:1px solid var(--line);padding:5px;border-radius:13px;
      box-shadow:var(--shadow);width:max-content;margin:0 auto 26px;flex-wrap:wrap}
.sys-tabs button{background:transparent;border:none;color:var(--muted);font-family:'Outfit',sans-serif;
      font-weight:600;font-size:14px;padding:10px 18px;border-radius:9px;cursor:pointer;transition:.15s}
.sys-tabs button.active{background:linear-gradient(135deg,var(--blue),var(--blue-deep));color:#fff}
.sys-tabs button:focus-visible{outline:3px solid var(--blue-bright)}

h2.sys{font-size:22px;margin-bottom:4px}
.lede{color:var(--muted);font-size:14px;margin-bottom:20px}
.bar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.bar input{max-width:320px}

table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
th,td{padding:13px 14px;text-align:left;font-size:14px;border-bottom:1px solid var(--line)}
th{background:#f0f5fb;color:var(--muted);font-size:11.5px;text-transform:uppercase;letter-spacing:.4px}
tr:last-child td{border-bottom:none}
.id{font-family:'Space Mono',monospace;font-size:13px}
.pill{display:inline-block;padding:4px 11px;border-radius:999px;font-size:12px;font-weight:600}
.pill.valid{background:#e6f6ee;color:var(--green)} .pill.expired{background:#fbeecf;color:var(--amber)}
.pill.revoked{background:#fbe5e2;color:var(--red)}
td .link{color:var(--blue);font-weight:600;cursor:pointer}
.empty{text-align:center;padding:40px;color:var(--muted)}
.table-scroll{overflow-x:auto;border-radius:14px}

.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* ----- login gate ----- */
.gate{max-width:420px;margin:40px auto}
.gate .icon-lock{width:60px;height:60px;border-radius:15px;background:#e8f2fc;color:var(--blue-deep);
     display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.demo-cred{background:var(--gold-soft);border:1px dashed var(--gold);border-radius:11px;padding:12px 15px;
     font-size:13px;color:#6d5218;margin-top:18px}
.demo-cred code{font-family:'Space Mono',monospace;background:#fff;padding:2px 7px;border-radius:6px}

/* ----- verify ----- */
.verify-wrap{max-width:530px;margin:0 auto;padding:0;overflow:hidden}
.vhead{background:linear-gradient(135deg,var(--navy),var(--blue-deep));color:#fff;padding:26px;text-align:center}
.vhead .logo{width:60px;height:60px;border-radius:13px;background:#fff;color:var(--navy);display:inline-flex;
     align-items:center;justify-content:center;font-weight:800;font-family:'Fraunces',serif;font-size:24px;margin-bottom:10px}
.vhead b{font-size:18px;display:block}.vhead span{font-size:12.5px;opacity:.85}
.vstatus{text-align:center;padding:22px;border-bottom:1px solid var(--line)}
.badge{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:16px;padding:11px 20px;border-radius:999px}
.badge svg{width:20px;height:20px}
.badge.valid{background:#e6f6ee;color:var(--green)} .badge.expired{background:#fbeecf;color:var(--amber)}
.badge.revoked{background:#fbe5e2;color:var(--red)} .badge.notfound{background:#fbe5e2;color:var(--red)}
.vsub{color:var(--muted);font-size:13px;margin-top:9px}
.vrow{display:flex;justify-content:space-between;gap:16px;padding:13px 24px;border-bottom:1px solid var(--line)}
.vrow .k{color:var(--muted);font-size:13px}.vrow .v{font-weight:600;text-align:right}
.vdetails{margin:14px 24px;background:var(--bg);border-radius:10px;padding:13px 15px;font-size:13.5px;line-height:1.5}
.vfoot{padding:16px 24px;text-align:center;color:var(--muted);font-size:12px}
.scanbox{padding:26px;text-align:center}
.scanbox p{color:var(--muted);font-size:14px;margin-bottom:14px}

/* ----- certificate sheet ----- */
.sheet-wrap{display:flex;justify-content:center;padding:8px 0 20px}
.sheet{width:780px;max-width:100%;aspect-ratio:297/210;background:#fff;position:relative;overflow:hidden;
     box-shadow:0 12px 50px rgba(13,42,74,.18)}
.frame{position:absolute;inset:26px;border:2px solid var(--navy);border-radius:3px}
.frame::before{content:"";position:absolute;inset:4px;border:1px solid var(--gold)}
.corner{position:absolute;width:64px;height:64px;border:0 solid var(--blue)}
.corner.tl{top:26px;left:26px;border-top-width:5px;border-left-width:5px}
.corner.tr{top:26px;right:26px;border-top-width:5px;border-right-width:5px}
.corner.bl{bottom:26px;left:26px;border-bottom-width:5px;border-left-width:5px}
.corner.br{bottom:26px;right:26px;border-bottom-width:5px;border-right-width:5px}
.c-content{position:absolute;inset:48px;display:flex;flex-direction:column;align-items:center;text-align:center}
.c-brand{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.c-crest{width:48px;height:48px;border-radius:9px;background:linear-gradient(135deg,var(--navy),var(--blue-deep));
     color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-family:'Fraunces',serif;font-size:22px}
.c-org{text-align:left}
.c-org .n{font-family:'Fraunces',serif;font-weight:700;font-size:18px;color:var(--navy);line-height:1.1}
.c-org .t{font-size:10.5px;color:var(--muted);letter-spacing:.4px}
.c-title{font-family:'Fraunces',serif;font-size:30px;color:var(--navy);letter-spacing:2px}
.c-rule{width:120px;height:3px;background:var(--gold);margin:8px 0 14px;border-radius:2px}
.c-pre{font-size:12px;color:var(--muted)}
.c-holder{font-family:'Fraunces',serif;font-size:28px;color:var(--blue-deep);font-weight:700;margin:8px 0}
.c-for{font-size:12px;color:var(--muted)}
.c-course{font-size:17px;font-weight:600;margin:6px 0 3px}
.c-extra{font-size:11px;color:var(--muted);max-width:80%;line-height:1.5}
.c-foot{position:absolute;left:48px;right:48px;bottom:40px;display:flex;align-items:flex-end;justify-content:space-between}
.c-meta{text-align:left;font-size:11px}
.c-meta .lbl{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.4px}
.c-meta .val{font-weight:600;margin-bottom:8px}
.c-meta .cid{font-family:'Space Mono',monospace;font-size:11px}
.c-qr{text-align:center}.c-qr canvas{width:84px;height:84px}
.c-qr span{font-size:8.5px;color:var(--muted);display:block;margin-top:3px}
.c-sign{text-align:center;font-size:11px}
.c-sign .line{width:120px;border-top:1px solid var(--navy);margin-bottom:3px}
.c-sign .who{color:var(--muted);font-size:10px}
.wm{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-22deg);font-family:'Fraunces',serif;
     font-size:90px;color:rgba(192,57,43,.10);font-weight:700;letter-spacing:6px;pointer-events:none;z-index:5}

@media(max-width:640px){.sys-tabs{width:100%}.sys-tabs button{flex:1}}
@media print{
  .topbar,.navbar,footer,.sys-tabs,.actions,.bar,.demonote,.toast{display:none!important}
  body{background:#fff}
  .sys-wrap{margin:0;max-width:none;padding:0}
  .sheet{box-shadow:none;width:100%}
}

/* Enhanced Verify Page Styles */
.verify-form-container {
  margin: 0 auto;
}

.verify-form-content {
  padding: 40px 30px;
}

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

.verify-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d3748;
  font-size: 15px;
}

.verify-form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Space Mono', monospace;
  transition: all 0.2s;
  background: #f7fafc;
}

.verify-form-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
}

.verify-form-help {
  color: #718096;
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.verify-form-button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(208, 2, 27, 0.2);
}

.verify-form-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(208, 2, 27, 0.3);
}

.verify-error-message {
  background-color: #fff5f5;
  color: #c53030;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  border-left: 4px solid #fc8181;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.verify-error-message svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.verify-error-message strong {
  display: block;
  margin-bottom: 4px;
}

.verify-steps-section {
  margin-top: 50px;
  margin-bottom: 30px;
}

.verify-steps-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 24px;
  text-align: center;
}

.verify-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.verify-step-card {
  background: white;
  padding: 30px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s;
}

.verify-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.verify-step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: white;
  font-weight: 700;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(208, 2, 27, 0.3);
}

.verify-step-title {
  font-size: 17px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.verify-step-description {
  font-size: 14px;
  color: #718096;
  line-height: 1.7;
  margin: 0;
}

.verify-security-notice {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 24px 28px;
  border-radius: 12px;
  margin-top: 30px;
  margin-bottom: 40px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.verify-security-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.verify-security-icon {
  width: 22px;
  height: 22px;
  color: #48bb78;
  flex-shrink: 0;
}

.verify-security-text {
  margin: 0;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

.verify-security-text strong {
  color: #2d3748;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .verify-form-content {
    padding: 25px 20px;
  }
  
  .verify-steps-title {
    font-size: 20px;
  }
  
  .verify-step-number {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  
  .verify-step-title {
    font-size: 16px;
  }
}


/* ----- Enhanced Verify Page Styles ----- */
.verify-wrap.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.verify-form-container {
    padding: 40px 30px;
}

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

.verify-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 15px;
}

.verify-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    background: #f7fafc;
}

.verify-form-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    outline: none;
}

.verify-form-hint {
    color: #718096;
    display: block;
    margin-top: 8px;
    font-size: 13px;
}

.verify-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(208, 2, 27, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(208, 2, 27, 0.3);
}

.verify-btn svg {
    width: 20px;
    height: 20px;
}

.error-alert {
    background-color: #fff5f5;
    color: #c53030;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    border-left: 4px solid #fc8181;
    display: flex;
    align-items: start;
    gap: 12px;
}

.error-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-alert strong {
    display: block;
    margin-bottom: 4px;
}

.verify-steps {
    margin-top: 50px;
    margin-bottom: 30px;
}

.verify-steps-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    text-align: center;
}

.verify-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.verify-step-card {
    background: white;
    padding: 30px 24px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
}

.verify-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.verify-step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: white;
    font-weight: 700;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(208, 2, 27, 0.3);
}

.verify-step-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.verify-step-desc {
    font-size: 14px;
    color: #718096;
    line-height: 1.7;
    margin: 0;
}

.verify-security-notice {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 24px 28px;
    border-radius: 12px;
    margin-top: 30px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.verify-security-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.verify-security-icon {
    width: 22px;
    height: 22px;
    color: #48bb78;
    flex-shrink: 0;
}

.verify-security-text {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.verify-security-text strong {
    color: #2d3748;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .verify-form-container {
        padding: 30px 20px;
    }
    
    .verify-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .verify-security-content {
        flex-direction: column;
        text-align: center;
    }
}
