/* ═══════════════════════════════════════════════════════════
   SVS DOCUMENT VERIFICATION — Frontend CSS
   Islamic Green #1a6b3c + Gold #d4a017 theme
   ==========================================================*/

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --svs-green:       #1a6b3c;
  --svs-green-mid:   #2d9b5a;
  --svs-green-light: #eafaf1;
  --svs-gold:        #d4a017;
  --svs-gold-light:  #fef9e7;
  --svs-radius:      12px;
  --svs-shadow:      0 4px 24px rgba(0,0,0,0.08);
  --svs-font:        'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ── Google Font ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Wrapper ─────────────────────────────────────────────── */
.svs-wrap {
  font-family: var(--svs-font);
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  color: #1a2a1a;
}

/* ── Hero banner ─────────────────────────────────────────── */
.svs-hero {
  background: linear-gradient(135deg, var(--svs-green) 0%, #0d4a28 100%);
  color: #fff;
  border-radius: var(--svs-radius);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.svs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.svs-hero-icon { font-size: 48px; margin-bottom: 10px; animation: svs-float 3s ease-in-out infinite; }
.svs-hero h2  { font-size: 26px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.svs-hero p   { color: #b8f0ce; margin: 0; font-size: 15px; }
@keyframes svs-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── Section cards ───────────────────────────────────────── */
.svs-section-card {
  background: #fff;
  border-radius: var(--svs-radius);
  box-shadow: var(--svs-shadow);
  padding: 24px 28px;
  margin-bottom: 20px;
  border: 1px solid #e8f5e9;
  animation: svs-fade-in .4s ease both;
}
@keyframes svs-fade-in { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

.svs-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--svs-green-light);
  padding-bottom: 12px;
}
.svs-section-title h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--svs-green); }
.svs-section-icon    { font-size: 20px; }
.svs-upload-note     { font-size: 12px; color: #999; margin-left: auto; }

/* ── Grids ───────────────────────────────────────────────── */
.svs-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) {
  .svs-grid-2, .svs-grid-3 { grid-template-columns: 1fr; }
}

/* ── Form fields ─────────────────────────────────────────── */
.svs-field  { display: flex; flex-direction: column; gap: 5px; }
.svs-field label {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
}
.svs-req { color: #e74c3c; }

.svs-input,
.svs-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d5e8d5;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--svs-font);
  color: #1a2a1a;
  background: #f8fdf9;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.svs-input:focus,
.svs-textarea:focus {
  outline: none;
  border-color: var(--svs-green);
  box-shadow: 0 0 0 3px rgba(26,107,60,.12);
  background: #fff;
}
.svs-textarea { resize: vertical; }

/* ── Drop zones ──────────────────────────────────────────── */
.svs-dropzone {
  border: 2px dashed #c8e6c9;
  border-radius: 10px;
  background: #f8fdf9;
  transition: border-color .2s, background .2s;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.svs-dropzone:hover,
.svs-dropzone.svs-drag-over { border-color: var(--svs-green); background: var(--svs-green-light); }
.svs-dropzone.svs-has-file  { border-color: var(--svs-gold); border-style: solid; }

.svs-file-input  { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.svs-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 14px;
  cursor: pointer;
  pointer-events: none;
}
.svs-dz-icon  { font-size: 24px; }
.svs-dz-name  { font-size: 12px; font-weight: 700; color: #2c3e50; }
.svs-dz-hint  { font-size: 11px; color: #999; }

.svs-file-preview {
  width: 100%;
  padding: 8px;
  text-align: center;
}
.svs-file-preview img {
  max-height: 80px;
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.svs-file-preview .svs-file-name { font-size: 11px; color: var(--svs-green); display: block; margin-top: 4px; word-break: break-all; }
.svs-doc-icon { font-size: 28px; display: block; }

/* ── Progress bar ────────────────────────────────────────── */
.svs-upload-progress { padding: 6px 12px; width: 100%; }
.svs-progress-bar    { background: #e0f2e9; border-radius: 20px; height: 6px; overflow: hidden; }
.svs-progress-fill   { height: 100%; background: linear-gradient(90deg, var(--svs-green), var(--svs-gold)); border-radius: 20px; transition: width .3s; width: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.svs-submit-row  { display: flex; justify-content: center; margin-top: 8px; }
.svs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--svs-green), #0d4a28);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--svs-font);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(26,107,60,.35);
}
.svs-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,107,60,.45); }
.svs-btn-primary:active { transform: translateY(0); }

/* ── Spinner ─────────────────────────────────────────────── */
.svs-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: svs-spin .7s linear infinite;
}
@keyframes svs-spin { to { transform: rotate(360deg); } }

/* ── Alerts ──────────────────────────────────────────────── */
.svs-alert {
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.svs-alert-success { background: var(--svs-green-light); color: #1a5c36; border-left: 4px solid var(--svs-green); }
.svs-alert-error   { background: #fdecea; color: #9b2226; border-left: 4px solid #e74c3c; }

/* ── Status tracker ──────────────────────────────────────── */
.svs-tracker-search .svs-search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.svs-tracker-search .svs-input { flex: 1; }

.svs-status-card   { }
.svs-status-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.svs-res-name      { font-size: 20px; font-weight: 700; color: var(--svs-green); margin: 0 0 4px; }
.svs-res-meta      { font-size: 13px; color: #777; margin: 0; }

.svs-status-badge-large span {
  display: inline-block;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 700;
}

.svs-remark-box {
  background: var(--svs-gold-light);
  border-left: 4px solid var(--svs-gold);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5a4000;
  margin-top: 14px;
}

/* ── Timeline ────────────────────────────────────────────── */
.svs-timeline          { position: relative; padding-left: 24px; }
.svs-timeline::before  { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #e8f5e9; }
.svs-tl-item           { position: relative; margin-bottom: 18px; animation: svs-fade-in .3s ease; }
.svs-tl-dot            { position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #ccc; }
.svs-tl-content strong { display: block; font-size: 13px; }
.svs-tl-content small  { color: #999; font-size: 11px; }
.svs-tl-content p      { margin: 4px 0 0; font-size: 12px; color: #555; }

/* ── Document chips ──────────────────────────────────────── */
.svs-doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svs-doc-chip  {
  background: var(--svs-green-light);
  color: var(--svs-green);
  border: 1px solid #c8e6c9;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
}

.svs-muted { color: #aaa; font-size: 13px; }

/* ── Re-upload section ───────────────────────────────────── */
.svs-reupload-hint { color: #8e44ad; font-size: 13px; margin-bottom: 16px; }
