/* ─── Buttons ────────────────────────────────────────── */
.btn {
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hi); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Action icon buttons */
.action-btns { display: inline-flex; align-items: center; gap: 6px; }
.btn-icon {
  background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-dim); transition: all var(--transition);
  display: inline-flex; align-items: center;
}
.btn-icon:hover { box-shadow: var(--shadow-sm); }
.btn-icon.edit:hover  { background: #eef2ff; border-color: var(--accent); color: var(--accent); }
.btn-icon.delete:hover { background: #fef2f2; border-color: var(--danger); color: var(--danger); }

/* Download link */
.link-btn {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent); text-decoration: none;
  font-size: 12px; font-weight: 600;
  background: var(--accent-glow); padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.link-btn:hover { background: rgba(79,110,247,0.2); }
.link-btn svg { flex-shrink: 0; }

/* ─── Alert ─────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: fadeUp 200ms ease;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info    { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.35); color: #7a5c1e; }

/* ─── Form Fields ────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim); letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--sans); font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; box-shadow: var(--shadow-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input::placeholder { color: var(--text-muted); }

/* ─── Progress ─────────────────────────────────────── */
.progress-wrap { margin-bottom: 20px; display: none; }
.progress-wrap.visible { display: block; }
.progress-label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-dim); margin-bottom: 8px;
}
.progress-bar {
  height: 4px; background: var(--surface-2); border-radius: 2px;
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.progress-fill {
  height: 100%; background: var(--accent);
  width: 0%; transition: width 400ms ease;
}

/* ─── Step Indicator ─────────────────────────────────── */
.steps {
  display: flex; gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step {
  flex: 1; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
}
.step.done { color: var(--accent); }
.step.done .step-num {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 700;
}
.step.active { color: var(--text); }
.step.active .step-num { border-color: var(--accent); color: var(--accent); }

/* ─── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 2px; font-family: var(--mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
}
.badge-pdf   { background: rgba(255,77,77,0.15); color: #ff6b6b; }
.badge-img   { background: rgba(0,232,122,0.15); color: var(--accent); }
.badge-doc   { background: rgba(100,149,237,0.15); color: #6495ed; }
.badge-other { background: var(--surface-2); color: var(--text-muted); }

/* Category badges */
.cat-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.cat-badge-Personnel      { background: rgba(255,183,77,0.18); color: #f0a830; }
.cat-badge-Curriculum     { background: rgba(100,200,120,0.18); color: #5dba72; }
.cat-badge-Administrative { background: rgba(100,149,237,0.18); color: #7aaff5; }
.cat-badge-Training       { background: rgba(255,110,80,0.18);  color: #f07055; }
.cat-badge-default        { background: var(--surface-2); color: var(--text-muted); }

/* ─── Spinner ─────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-hi); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  padding: 60px; text-align: center; color: var(--text-muted);
}
.empty-state h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.empty-state p  { font-size: 13px; }
/* ─── Admin Edit Overlay Bar (about.php, history.php) ─── */
.admin-edit-bar { position:fixed; bottom:20px; right:20px; z-index:9999; }
.admin-edit-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 18px;
  background:#C9A84C; color:#111; border-radius:10px; font-weight:700;
  font-size:.85rem; text-decoration:none; box-shadow:0 4px 20px rgba(0,0,0,.4); transition:opacity .2s; }
.admin-edit-btn:hover { opacity:.85; }
.admin-sds-add { display:inline-flex; align-items:center; gap:6px; padding:8px 14px;
  background:rgba(201,168,76,.18); color:#C9A84C; border-radius:8px; font-weight:600;
  font-size:.82rem; text-decoration:none; border:1px solid rgba(201,168,76,.3); margin-top:12px; }
