/**
 * badges.css — Badge & Status Components
 * ============================================================
 * Badges, status indicators, pills, tags.
 * Depends on: 1-tokens.css
 * ============================================================
 */

/* --------------------------------------------------------
 * BASE BADGE (.badge)
 * -------------------------------------------------------- */
.badge {
    font-size: var(--text-xs);
    padding: 3px 8px;
    font-weight: var(--font-semibold);
}

/* Yellow is too light for white text, so a warning badge always reads dark --
   no page has to remember text-dark (dark mode tints it in 7-dark-mode.css). */
.badge.bg-warning { color: var(--color-text-primary); }

/* A badge that rides inside a line of text (a substitute's answer under a leave). */
.badge.badge-sm { font-size: 0.65rem; padding: 2px 6px; }

/* --------------------------------------------------------
 * STATUS BADGES (.status-badge)
 * -------------------------------------------------------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

/* --------------------------------------------------------
 * STATUS VARIANTS
 * -------------------------------------------------------- */
.status-active {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.status-leave {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

.status-resigned {
    background: var(--color-danger-bg);
    color: var(--color-danger-text);
}

/* A student number that is not a real 12-digit LRN (includes/lrn.php): Students list, student page, Enrolled Students. */
.badge.lrn-badge { background: var(--color-warning-bg); color: var(--color-warning-text); font-weight: var(--font-semibold); font-size: 0.68rem; vertical-align: middle; }
