:root{
  --cat-register:#563DD3;   /* สมัคร */
  --cat-check:#006E4D;      /* ตรวจรายชื่อ */
  --cat-seat:#EDAB00;       /* เลขที่นั่ง/เอกสาร */
  --cat-result:#F45665;     /* ผลสอบ/เกียรติบัตร */
  --theme-light:#CFE9FB;
}

/* ปุ่มสี */
.btn-cat-register{ background:var(--cat-register)!important; color:#fff!important; border:0!important; }
.btn-cat-check   { background:var(--cat-check)!important;    color:#fff!important; border:0!important; }
.btn-cat-seat    { background:var(--cat-seat)!important;     color:#fff!important; border:0!important; }
.btn-cat-result  { background:var(--cat-result)!important;   color:#fff!important; border:0!important; }
.btn-cat-register:hover,
.btn-cat-check:hover,
.btn-cat-seat:hover,
.btn-cat-result:hover{ filter:brightness(.9)!important; }

/* กล่องการ์ดหน้าหลัก */
.card-act{
  border-radius:14px; padding:16px; text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,.12); transition:.25s; background:#fff; position:relative;
}
.card-act:hover{ transform:translateY(-4px); box-shadow:0 6px 20px rgba(0,0,0,.18); }
.card-act .icon-box{
  width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  margin:0 auto 10px; color:#fff;
}
.icon-register{ background:var(--cat-register); }
.icon-check   { background:var(--cat-check); }
.icon-seat    { background:var(--cat-seat); }
.icon-result  { background:var(--cat-result); }

.badge-status{
  position:absolute; top:10px; right:10px;
  font-size:.75rem; font-weight:700; padding:3px 10px; border-radius:999px;
  box-shadow:0 2px 6px rgba(0,0,0,.14);
}
.badge-open  { background:#198754!important; color:#fff!important; }
.badge-wait  { background:#ffc107!important; color:#fff!important; }
.badge-close { background:#6c757d!important; color:#fff!important; }

.card-act.is-disabled{ pointer-events:none; opacity:.6; filter:grayscale(.05); }

/* ให้ cursor เวลาลากในหน้า admin */
.cta-draggable{ cursor:move; }
