/* ================================================
   STAFF PAGE - MODERN DIRECTORY REDESIGN
   ================================================ */

/* Match team.php background (index_redesign) */
.dashboard-wrapper,
.main-content-dashboard {
    background: linear-gradient(180deg, #eaf6ff 0%, #dff1ff 45%, #f4fbff 100%);
}

/* Header */
.dashboard-header-staff {
    background:
        linear-gradient(135deg, rgba(10, 22, 40, 0.28) 0%, rgba(15, 39, 68, 0.20) 55%, rgba(10, 22, 40, 0.34) 100%),
        url("../images/Jembatan Barelang.png"),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue-primary) 100%);
    background-size: cover, 106%, cover;
    background-position: center, 26% 54%, center;
    background-repeat: no-repeat;
    padding: 72px 50px 96px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dashboard-header-staff::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.18) 0%, rgba(10, 22, 40, 0.30) 100%),
        linear-gradient(110deg, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0) 67%);
    background-size: auto, auto, 220% 100%;
    background-position: center, center, -160% 0;
    opacity: 1;
    pointer-events: none;
    animation: barelangReveal 4.4s ease-in-out infinite alternate, barelangShimmer 6.2s linear infinite;
}

.dashboard-header-staff::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.dashboard-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dashboard-header-staff .dashboard-header-inner > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 10px rgba(10, 22, 40, 0.55);
}

.dashboard-header-staff h1 {
    color: white;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 6px 22px rgba(10, 22, 40, 0.55);
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.93);
    font-size: 14px;
    max-width: 560px;
    line-height: 1.6;
    text-shadow: 0 3px 14px rgba(10, 22, 40, 0.5);
}

.header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.header-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 14px;
    border-radius: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border: none;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-header-staff .btn-primary,
.dashboard-header-staff .btn-secondary {
    background: rgba(10, 22, 40, 0.38);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    backdrop-filter: blur(2px);
}

.dashboard-header-staff .btn-primary:hover,
.dashboard-header-staff .btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Body */
.dashboard-body {
    padding: 0 16px 40px;
}

/* Filter Card */
.filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: var(--shadow-lg);
    margin-top: -36px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    isolation: isolate;
}

.filter-card:hover {
    transform: translateY(-3px);
    border-color: #9fcbff;
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.filter-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-700);
    transition: all var(--transition-normal);
    outline: none;
}

.filter-group input:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.filter-group input::placeholder {
    color: var(--gray-400);
}

.filter-actions-new {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-actions-new .btn-filter-apply,
.filter-actions-new .btn-filter-reset {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), filter var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal), background var(--transition-normal);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.filter-actions-new .btn-filter-apply::before,
.filter-actions-new .btn-filter-reset::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -35%;
    width: 42%;
    height: 300%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.filter-actions-new .btn-filter-apply {
    background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
    color: #3b2200;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.filter-actions-new .btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.4), 0 0 22px rgba(250, 204, 21, 0.38);
    filter: saturate(1.05);
}

.filter-actions-new .btn-filter-apply:hover::before {
    opacity: 1;
    animation: filterShine 1.25s ease;
}

.filter-actions-new .btn-filter-reset {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #eff6ff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.filter-actions-new .btn-filter-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34), 0 0 22px rgba(56, 189, 248, 0.32);
    filter: saturate(1.06);
}

.filter-actions-new .btn-filter-reset:hover::before {
    opacity: 1;
    animation: filterShine 1.25s ease;
}

.filter-actions-new .btn-filter-apply:focus-visible,
.filter-actions-new .btn-filter-reset:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.82), 0 0 0 7px rgba(37, 99, 235, 0.2);
}

.filter-actions-new .btn-filter-apply:active,
.filter-actions-new .btn-filter-reset:active {
    transform: translateY(0);
}

.entity-profile-actions .btn-filter-reset,
.entity-profile-actions > .btn-filter-reset {
    background: transparent;
    border: 2px solid var(--gray-300);
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--gray-600);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entity-profile-actions .btn-filter-reset:hover,
.entity-profile-actions > .btn-filter-reset:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--gray-50);
}

@keyframes filterShine {
    0% {
        left: -40%;
    }

    100% {
        left: 130%;
    }
}

.filter-summary {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    font-weight: 700;
}

.summary-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

/* Table */
.table-container-new {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    position: relative;
    isolation: isolate;
}

.table-container-new:hover {
    transform: translateY(-3px);
    border-color: var(--blue-primary);
    box-shadow: 0 18px 34px rgba(30, 64, 175, 0.15);
}

.staff-table-new {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.staff-table-new thead tr {
    background: linear-gradient(90deg, var(--navy) 0%, var(--blue-primary) 100%);
    color: white;
}

.staff-table-new th {
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.staff-table-new td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    font-size: 13px;
    color: var(--gray-700);
    display: table-cell;
}

.staff-table-new td.col-team {
    display: table-cell;
}

.staff-table-new tbody tr:hover {
    background: linear-gradient(90deg, var(--white-blue) 0%, #ffffff 100%);
}

.col-no {
    width: 60px;
    text-align: center;
    font-weight: 700;
}

.staff-table-new td.col-no {
    color: var(--gray-500);
}

.col-photo {
    width: 90px;
    text-align: center;
}

.col-team {
    min-width: 160px;
}

.col-position {
    width: 140px;
    text-align: center;
}

.col-age {
    width: 90px;
    text-align: center;
    font-weight: 600;
}

.staff-table-new td.col-age {
    color: var(--navy);
}

.col-certificate {
    width: 110px;
    text-align: center;
}

.col-matches,
.col-events {
    width: 110px;
    text-align: center;
}

.col-created {
    width: 120px;
    font-size: 12px;
    white-space: nowrap;
}

.staff-table-new td.col-created {
    color: var(--gray-500);
}

.mobile-profile-heading,
.mobile-profile-cell {
    display: none;
}

.mobile-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-profile-btn:hover,
.mobile-profile-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.26);
}

/* Staff Photo */
.staff-photo-wrapper {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 56px;
}

.staff-img-sm {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 18px;
    border: 1px solid var(--gray-200);
}

.team-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 39, 68, 0.2);
}

.team-badge-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-badge-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
}

/* Staff Info */
.staff-name {
    font-weight: 700;
    color: var(--blue-primary);
    font-size: 14px;
    margin-bottom: 4px;
    text-align: center;
}

.staff-name-link {
    text-decoration: none;
    color: inherit;
}

.staff-name-link:hover,
.staff-name-link:focus {
    text-decoration: none;
    color: var(--blue-primary);
}

.staff-contact {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.staff-contact > div {
    display: grid;
    grid-template-columns: 12px auto;
    column-gap: 6px;
    align-items: center;
}

.staff-contact i {
    margin-right: 0;
    width: 12px;
}

.staff-table-new td.col-name {
    text-align: center;
}

/* Team Display */
.team-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-100);
}

.team-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    border: 1px dashed var(--gray-200);
    font-size: 12px;
}

.team-info {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-weight: 600;
    color: var(--navy);
    font-size: 13px;
}

.team-alias {
    font-size: 10px;
    color: var(--gray-500);
}

/* Position Badge */
.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manager-badge {
    background: #1d4ed8;
    color: white;
}

.headcoach-badge {
    background: #059669;
    color: white;
}

.coach-badge {
    background: #7c3aed;
    color: white;
}

.goalkeeper_coach-badge {
    background: #d97706;
    color: white;
}

.medic-badge {
    background: #dc2626;
    color: white;
}

.official-badge {
    background: #475569;
    color: white;
}

.assistant_coach-badge {
    background: #0891b2;
    color: white;
}

.fitness_coach-badge {
    background: #ea580c;
    color: white;
}

.analyst-badge {
    background: #9333ea;
    color: white;
}

.scout-badge {
    background: #65a30d;
    color: white;
}

/* Certificate Count */
.cert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: var(--green);
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    gap: 6px;
}

.cert-count:hover {
    background: #059669;
    transform: translateY(-1px);
}

.muted {
    color: var(--gray-400);
    font-weight: 600;
}

/* No Data Row */
.no-data {
    text-align: center;
    padding: 16px !important;
    color: var(--gray-500);
    font-size: 14px;
}

.empty-state-box {
    text-align: center;
    padding: 50px 30px;
    border: 2px dashed #2f2f2f;
    border-radius: 18px;
    background: #fff;
    color: var(--gray-500);
    max-width: 100%;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 42px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

/* Force icon sizing/color inside staff empty state */
.staff-table-new .empty-state-box .empty-state-icon,
.entity-empty-state.empty-state-box .empty-state-icon {
    font-size: 42px;
    color: var(--gray-600);
}

.staff-table-new .empty-state-box .empty-state-icon i,
.entity-empty-state.empty-state-box .empty-state-icon i {
    font-size: inherit;
    color: inherit;
}

.empty-state-box h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-600);
}

.empty-state-box p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-400);
}

.no-data-keyword {
    margin-top: 10px;
    font-size: 13px;
    color: var(--gray-500);
}

/* Pagination */
.pagination-bar {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    color: var(--gray-600);
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    overflow: visible;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    isolation: isolate;
}

.pagination-controls:hover {
    transform: translateY(-2px);
    border-color: var(--blue-primary);
    box-shadow: 0 10px 22px rgba(30, 64, 175, 0.12);
}

.pagination-controls a,
.pagination-controls span {
    padding: 8px 12px;
    background: var(--gray-50);
    color: var(--navy);
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
}

.pagination-controls a:hover {
    background: var(--white-blue);
}

.pagination-controls .active {
    background: var(--blue-primary);
    color: white;
}

.pagination-controls .disabled {
    color: var(--gray-400);
    background: var(--gray-100);
    cursor: default;
}

/* Footer */
.dashboard-footer {
    margin-top: 24px;
    padding: 22px 16px 32px;
    text-align: center;
    color: var(--gray-600);
    font-size: 13px;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
}

.dashboard-footer p {
    margin: 6px 0;
}

.dashboard-footer a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.dashboard-footer a:hover {
    color: var(--blue-accent);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 860px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
}

.modal-title {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.modal-title i {
    margin-right: 8px;
    color: var(--green);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-body {
    padding: 20px 24px 28px;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.certificate-card {
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    isolation: isolate;
}

.certificate-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--blue-primary);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.14);
}

.certificate-header {
    padding: 15px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.certificate-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.certificate-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.certificate-meta i {
    width: 14px;
    margin-right: 6px;
    color: var(--gray-600);
}

.certificate-preview,
.file-preview {
    padding: 15px;
    text-align: center;
    background: var(--gray-50);
}

.certificate-image {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.file-icon {
    font-size: 40px;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.file-name {
    font-size: 12px;
    color: var(--gray-500);
    word-break: break-all;
    margin-bottom: 15px;
}

.file-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-view,
.btn-download {
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Decorative hover ring like other public pages */
.filter-card::after,
.table-container-new::after,
.pagination-controls::after,
.certificate-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(147, 197, 253, 0.22));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: -1;
}

.filter-card:hover::after,
.table-container-new:hover::after,
.pagination-controls:hover::after,
.certificate-card:hover::after {
    opacity: 1;
}

.btn-view {
    background: var(--blue-accent);
    color: white;
}

.btn-download {
    background: var(--green);
    color: white;
}

.no-certificates {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.no-certificates i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--gray-300);
}

.no-certificates h3 {
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* Image Viewer */
.image-viewer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.image-viewer img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.image-viewer .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer .image-title {
    color: white;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
    max-width: 80%;
}

/* Loading Spinner */
.loading-container {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--blue-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .dashboard-header-staff h1 {
        font-size: 38px;
        letter-spacing: 2px;
    }

    .dashboard-header-staff {
        padding: 72px 50px 96px;
    }

    .dashboard-header-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

@media (max-width: 1200px) {
    .dashboard-header-staff {
        padding: 60px 30px 80px;
        background-size: cover, 106%, cover;
        background-position: center, 28% 56%, center;
    }

    .filter-group {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .dashboard-header-staff {
        padding: 44px 16px 64px;
        min-height: 360px;
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }

    .filter-card {
        margin: -20px 16px 16px;
        border-radius: 16px;
    }

    .dashboard-body {
        padding: 0 16px 30px;
    }
}

@media (max-width: 992px) {
    .table-container-new {
        background: transparent;
        box-shadow: none;
        border: none;
        overflow: visible;
        border-radius: 0;
    }

    .table-container-new:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }

    .staff-table-new {
        display: block;
        min-width: 0;
    }

    .staff-table-new thead {
        display: none;
    }

    .staff-table-new tbody {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 10px 0;
    }

    .staff-table-new tr {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid rgba(15, 39, 68, 0.08);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 10px 25px -5px rgba(15, 39, 68, 0.08);
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        isolation: isolate;
    }

    .staff-table-new tr:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px -10px rgba(15, 39, 68, 0.15);
        border-color: var(--blue-accent);
    }

    .staff-table-new tr::after {
        content: attr(data-role-mark);
        position: absolute;
        top: -8px;
        right: -6px;
        font-size: 104px;
        font-weight: 900;
        color: rgba(15, 39, 68, 0.03);
        line-height: 1;
        z-index: 0;
        pointer-events: none;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-style: italic;
        letter-spacing: -0.06em;
    }

    .staff-table-new td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 12px 24px;
        border-bottom: 1px solid rgba(15, 39, 68, 0.04);
        font-size: 13px;
        font-weight: 600;
        color: var(--navy);
        background: transparent;
        position: relative;
        z-index: 1;
    }

    .staff-table-new td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        color: var(--gray-400);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex: 1;
        text-align: left;
        white-space: nowrap;
    }

    .staff-table-new td.col-no {
        display: none;
    }

    .staff-table-new td.col-photo {
        order: 1;
        padding: 24px 24px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        background: linear-gradient(to bottom, rgba(15, 39, 68, 0.02), transparent);
    }

    .staff-table-new td.col-photo::before,
    .staff-table-new td.col-name::before,
    .staff-table-new td.mobile-profile-cell::before {
        display: none;
        content: none;
    }

    .staff-table-new .staff-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .staff-table-new .staff-img-sm,
    .staff-table-new .photo-placeholder {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        border: 4px solid #fff;
        box-shadow: 0 8px 20px -5px rgba(15, 39, 68, 0.15);
        margin: 0 auto;
    }

    .staff-table-new .photo-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #e2e8f0, #f8fafc);
        color: #94a3b8;
        font-size: 34px;
    }

    .staff-table-new .team-badge {
        width: 28px;
        height: 28px;
        bottom: -6px;
        right: -6px;
        box-shadow: 0 6px 14px rgba(15, 39, 68, 0.14);
    }

    .staff-table-new .team-badge-placeholder {
        font-size: 11px;
    }

    .staff-table-new td.col-name {
        order: 2;
        padding: 0 24px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        border-bottom: none;
        gap: 8px;
    }

    .staff-table-new .staff-name {
        font-size: 20px;
        font-weight: 800;
        color: var(--navy);
        letter-spacing: -0.02em;
        line-height: 1.2;
        display: block;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .staff-table-new .staff-contact {
        align-items: center;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        gap: 4px;
        overflow-wrap: anywhere;
    }

    .staff-table-new .staff-contact > div {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        max-width: 100%;
    }

    .staff-table-new .staff-contact i {
        width: auto;
        font-size: 11px;
    }

    .staff-table-new td.col-team {
        order: 3;
        padding: 0 24px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        border-bottom: none;
    }

    .staff-table-new td.col-team::before {
        display: none;
        content: none;
    }

    .staff-table-new .team-display {
        background: var(--white-blue);
        padding: 8px 14px;
        border-radius: 12px;
        border: 1px solid rgba(15, 39, 68, 0.05);
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 0 auto;
        max-width: 100%;
    }

    .staff-table-new .team-logo,
    .staff-table-new .team-logo-placeholder {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    .staff-table-new .team-info {
        align-items: flex-start;
        text-align: left;
    }

    .staff-table-new .team-name {
        font-size: 12px;
        font-weight: 700;
        color: var(--gray-700);
    }

    .staff-table-new .team-alias {
        font-size: 10px;
    }

    .staff-table-new td.col-position {
        order: 4;
    }

    .staff-table-new td.col-age {
        order: 5;
    }

    .staff-table-new td.col-certificate {
        order: 6;
    }

    .staff-table-new td.col-events {
        order: 7;
    }

    .staff-table-new td.col-matches {
        order: 8;
    }

    .staff-table-new td.col-created {
        order: 9;
        font-size: 12px;
        color: var(--navy);
    }

    .staff-table-new td.col-created small {
        color: var(--gray-500);
        font-size: 11px;
    }

    .staff-table-new .position-badge,
    .staff-table-new .cert-count,
    .staff-table-new .match-count-badge,
    .staff-table-new .event-count-badge {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .staff-table-new .cert-count {
        gap: 5px;
    }

    .staff-table-new td.mobile-profile-cell {
        order: 100;
        padding: 10px 24px 24px;
        border-bottom: none;
        background: #ffffff;
        display: block;
    }

    .staff-table-new .mobile-profile-cell {
        display: block;
    }

    .staff-table-new .mobile-profile-btn {
        width: 100%;
        background: linear-gradient(135deg, var(--navy) 0%, var(--blue-primary) 100%);
        color: #ffffff;
        padding: 14px;
        border-radius: 14px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        box-shadow: 0 8px 20px -5px rgba(15, 39, 68, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: none;
    }

    .staff-table-new tr.empty-row {
        display: block;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .staff-table-new tr.empty-row:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
    }

    .staff-table-new tr.empty-row::after {
        content: '';
        display: none;
    }

    .staff-table-new td.no-data {
        display: block;
        text-align: center;
        padding: 16px !important;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .staff-table-new td.no-data::before {
        content: none;
    }

    .empty-state-box {
        padding: 22px 18px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-group input {
        padding: 16px;
        font-size: 15px;
        border-radius: 14px;
    }

    .filter-actions-new {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
        align-items: stretch;
        gap: 8px;
    }

    .filter-actions-new .btn-filter-apply,
    .filter-actions-new .btn-filter-reset {
        width: 100%;
        justify-content: center;
        padding: 14px 12px;
        font-size: 12px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .dashboard-header-staff {
        padding: 44px 16px 64px;
        min-height: 360px;
        background-size: cover, 146%, cover;
        background-position: center, 34% 62%, center;
    }

    .header-actions {
        width: 100%;
    }

    .header-stat {
        width: 100%;
    }

    .modal-content {
        width: 100%;
        border-radius: 12px;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-header-staff {
        animation: none !important;
        background-size: cover, 106%, cover;
        background-position: center, 26% 54%, center;
    }

    .dashboard-header-staff::before {
        animation: none !important;
        opacity: 0.1;
    }

    .filter-card,
    .table-container-new,
    .pagination-controls,
    .certificate-card {
        transition: none !important;
        transform: none !important;
    }
}

@keyframes barelangReveal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.10;
    }
}

@keyframes barelangShimmer {
    0% {
        background-position: center, center, -130% 0;
    }

    100% {
        background-position: center, center, 145% 0;
    }
}
