/* =============================================================
   VINA ADMIN — Global Table Standardisation
   Reference: Employer Listing (/admin/employer)
   ============================================================= */

/* ── Card chrome ─────────────────────────────────────────────── */
.card.page-card,
.card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(111, 66, 193, 0.08);
    border: none;
}

/* ── Card header ─────────────────────────────────────────────── */
.card-header {
    background: #fff;
    border-bottom: 1px solid #f3f3f3;
    padding: 16px 22px;
}
.card-header h4, .card-header h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.05rem;
    color: #1e1e2d;
}

/* ── Table — purple gradient thead ───────────────────────────── */
.table thead {
    background: #9164CD;
}
.table thead th {
    background: transparent !important;  /* let gradient show through */
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border: none !important;
    padding: 13px 16px;
    white-space: nowrap;
    vertical-align: middle;
}
/* First header cell: rounded top-left corner */
.table thead th:first-child {
    border-radius: 8px 0 0 0;
}
/* Last header cell: rounded top-right corner */
.table thead th:last-child {
    border-radius: 0 8px 0 0;
}
/* Remove default sort icons inherited from Bootstrap */
.table thead th::after,
.table thead th::before {
    display: none;
}

/* ── Table body rows ─────────────────────────────────────────── */
.table tbody tr {
    border-bottom: 1px solid #f5f0ff;
    transition: background 0.15s ease;
}
.table tbody tr:hover {
    background: #faf7ff !important;
}
.table tbody tr:last-child {
    border-bottom: none;
}
.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.88rem;
    color: #444;
    border-color: #f5f0ff;
}

/* ── Action buttons (circular icon buttons) ──────────────────── */
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.view-btn   { background: #e0f8f4; color: #0d9e7e; }
.edit-btn   { background: #e7f1ff; color: #0d6efd; }
.delete-btn { background: #ffe7e7; color: #dc3545; }

/* ── Pill badges ─────────────────────────────────────────────── */
.badge-pill-purple { background: #efe7fb; color: #9164CD; padding: 5px 14px; border-radius: 30px; font-weight: 600; font-size: 0.78rem; display: inline-block; }
.badge-pill-green  { background: #dff7eb; color: #008b68; padding: 5px 14px; border-radius: 30px; font-weight: 600; font-size: 0.78rem; display: inline-block; }
.badge-pill-red    { background: #ffe7e7; color: #dc3545; padding: 5px 14px; border-radius: 30px; font-weight: 600; font-size: 0.78rem; display: inline-block; }
.badge-pill-blue   { background: #e7f1ff; color: #0d6efd; padding: 5px 14px; border-radius: 30px; font-weight: 600; font-size: 0.78rem; display: inline-block; }
.badge-pill-orange { background: #fff0e0; color: #fd7e14; padding: 5px 14px; border-radius: 30px; font-weight: 600; font-size: 0.78rem; display: inline-block; }
.badge-pill-gray   { background: #f0f0f0; color: #666;    padding: 5px 14px; border-radius: 30px; font-weight: 600; font-size: 0.78rem; display: inline-block; }

/* ── Pagination wrapper ──────────────────────────────────────── */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 18px 20px;
}

/* ── Empty state row ─────────────────────────────────────────── */
.table tbody td.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #aaa;
    font-size: 0.9rem;
}

/* ── Alert inside cards ──────────────────────────────────────── */
.card .alert {
    border-radius: 10px;
    margin: 16px 20px 0;
}

/* ── Page subtitle ───────────────────────────────────────────── */
.page-subtitle {
    color: #8a8a8a;
    font-size: 0.82rem;
    margin-top: 2px;
}

/* ── table-hover override (so our hover colour wins) ─────────── */
.table-hover tbody tr:hover > td,
.table-hover tbody tr:hover > th {
    background: #faf7ff !important;
}

/* ── table-striped override ──────────────────────────────────── */
.table-striped tbody tr:nth-of-type(odd) > td {
    background: #fdfbff;
}
