/* ============================================================
   AFB TTU Employee Plugin — Professional Enterprise Design
   Palette: Deep Navy + Gold Accent + Warm White
   ============================================================ */

:root {
    --afb-navy:        #184FA3;
    --afb-navy-mid:    #122040;
    --afb-navy-light:  #1e3a6e;
    --afb-gold:        #c9a227;
    --afb-gold-light:  #e2b84a;
    --afb-gold-pale:   #fdf3d8;
    --afb-white:       #ffffff;
    --afb-off-white:   #f7f8fa;
    --afb-border:      #e2e6ef;
    --afb-text:        #1a2540;
    --afb-text-muted:  #6b7a99;
    --afb-success:     #1a7a4e;
    --afb-radius-sm:   6px;
    --afb-radius-md:   12px;
    --afb-radius-lg:   18px;
    --afb-shadow-sm:   0 2px 8px rgba(10,22,40,.07);
    --afb-shadow-md:   0 6px 24px rgba(10,22,40,.11);
    --afb-shadow-lg:   0 16px 48px rgba(10,22,40,.14);
    --afb-font: inherit;
    --afb-transition:  .2s cubic-bezier(.4,0,.2,1);
}

/* ── Container ───────────────────────────────────────────── */
.afb-emp-container {
    max-width: 1320px;
    margin: 32px auto;
    font-family: var(--afb-font);
    color: var(--afb-text);
}

/* ── Header Banner ───────────────────────────────────────── */
.afb-emp-header {
    background: linear-gradient(135deg, var(--afb-navy) 0%, var(--afb-navy-light) 100%);
    border-radius: var(--afb-radius-lg);
    padding: 28px 36px;
    margin-bottom: 24px;
    color: var(--afb-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--afb-shadow-lg);
}

.afb-emp-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(201,162,39,.12);
    pointer-events: none;
}

.afb-emp-header::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 30%;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.afb-emp-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.afb-emp-header-icon {
    width: 52px; height: 52px;
    background: rgba(201,162,39,.2);
    border: 1.5px solid rgba(201,162,39,.4);
    border-radius: var(--afb-radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: var(--afb-gold-light);
}

.afb-emp-header-text { flex: 1; }

.afb-emp-title h2 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--afb-white);
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.afb-emp-subtitle {
    font-size: .95rem;
    opacity: .65;
    font-weight: 400;
}

.afb-emp-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.afb-emp-stat {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.afb-emp-stat strong { color: var(--afb-gold-light); }

/* ── Loading Overlay ─────────────────────────────────────── */
.afb-emp-loading {
    position: absolute;
    inset: 0;
    background: rgba(247,248,250,.92);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--afb-navy-mid);
    border-radius: var(--afb-radius-lg);
}

.afb-emp-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--afb-border);
    border-top-color: var(--afb-gold);
    border-radius: 50%;
    animation: afb-spin .85s linear infinite;
}

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

/* ── Manager Card ────────────────────────────────────────── */
.afb-emp-manager {
    background: var(--afb-white);
    border-radius: var(--afb-radius-lg);
    box-shadow: var(--afb-shadow-md);
    padding: 22px 28px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 3px solid var(--afb-gold);
    transition: box-shadow var(--afb-transition);
}

.afb-emp-manager:hover { box-shadow: var(--afb-shadow-lg); }

[dir="rtl"] .afb-emp-manager { border-top: 3px solid var(--afb-gold); }

.afb-emp-manager-badge {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--afb-navy), var(--afb-navy-light));
    border-radius: var(--afb-radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    color: var(--afb-gold-light);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(10,22,40,.25);
}

.afb-emp-manager-info { flex: 1; }

.afb-emp-manager-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--afb-gold-pale);
    color: #8a6c10;
    border: 1px solid #e8d07a;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.afb-emp-manager-info h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--afb-navy);
}

.afb-emp-manager-position {
    margin: 0;
    font-size: .9rem;
    color: var(--afb-text-muted);
}
.afb-info-icon {
    color: #E3A332;
}
/* ── Filter Bar ──────────────────────────────────────────── */
.afb-emp-filters {
    background: var(--afb-white);
    border: 1px solid var(--afb-border);
    border-radius: var(--afb-radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    box-shadow: var(--afb-shadow-sm);
}

.afb-emp-filter-group {
    flex: 1;
    min-width: 180px;
}

.afb-emp-filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--afb-text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.afb-emp-filter-select {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--afb-border);
    border-radius: var(--afb-radius-sm);
    background: var(--afb-off-white);
    font-family: var(--afb-font);
    font-size: .9rem;
    color: var(--afb-text);
    cursor: pointer;
    transition: border-color var(--afb-transition), box-shadow var(--afb-transition);
    appearance: auto;
    pointer-events: auto;
}

.afb-emp-filter-select:focus {
    outline: none;
    border-color: var(--afb-navy-light);
    box-shadow: 0 0 0 3px rgba(30,58,110,.1);
}

/* ── Table Wrapper ───────────────────────────────────────── */
.afb-emp-table-wrapper {
    background: var(--afb-white);
    border-radius: var(--afb-radius-lg);
    box-shadow: var(--afb-shadow-md);
    overflow: hidden;
    transition: opacity var(--afb-transition);
}

.afb-emp-table-wrapper.loading { opacity: .45; pointer-events: none; }

.afb-emp-table-header {
    background: var(--afb-off-white);
    padding: 14px 22px;
    border-bottom: 1px solid var(--afb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.afb-emp-table-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--afb-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.afb-emp-table-count { color: var(--afb-text-muted); font-size: .9rem; }

.afb-emp-badge {
    background: var(--afb-navy-light);
    color: var(--afb-white);
    padding: 3px 11px;
    border-radius: 30px;
    font-weight: 700;
    font-size: .8rem;
    margin-inline-start: 4px;
}

/* ── Table ───────────────────────────────────────────────── */
.afb-emp-table-responsive { overflow-x: auto; }

.afb-emp-table {
    width: 100%;
    border-collapse: collapse;
}

.afb-emp-table thead th {
    background: var(--afb-navy);
    color: rgba(255,255,255,.85);
    padding: 13px 18px;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.afb-emp-table thead th:first-child { border-radius: 0; }

.afb-emp-table tbody tr {
    border-bottom: 1px solid var(--afb-border);
    transition: background var(--afb-transition);
}

.afb-emp-table tbody tr:last-child { border-bottom: none; }

.afb-emp-table tbody tr:hover { background: var(--afb-off-white); }

.afb-emp-table tbody tr.afb-emp-head-records { background: #edf7f0; }
.afb-emp-table tbody tr.afb-emp-head-records:hover { background: #d8f0e2; }

.afb-emp-table td {
    padding: 13px 18px;
    vertical-align: middle;
    font-size: .9rem;
}

.afb-emp-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--afb-navy);
}

.afb-emp-admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: var(--afb-navy-light);
    color: var(--afb-gold-light);
    border-radius: 50%;
    font-size: 10px;
    margin-inline-start: 7px;
    vertical-align: middle;
    flex-shrink: 0;
}

.afb-position-icon {
    color: var(--afb-navy-light);
    margin-inline-end: 6px;
    font-size: 13px;
    width: 18px;
    text-align: center;
    display: inline-block;
}

.afb-emp-no-position { color: var(--afb-border); font-size: .85rem; }

/* ── View Button ─────────────────────────────────────────── */
.afb-emp-view {
    background: var(--afb-off-white);
    border: 1.5px solid var(--afb-border);
    border-radius: var(--afb-radius-sm);
    padding: 6px 14px;
    cursor: pointer;
    color: var(--afb-navy-light);
    font-size: .82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--afb-transition);
    font-family: var(--afb-font);
    white-space: nowrap;
}

.afb-emp-view:hover {
    background: var(--afb-navy);
    border-color: var(--afb-navy);
    color: var(--afb-white);
    box-shadow: 0 3px 10px rgba(10,22,40,.18);
    transform: translateY(-1px);
}

/* ── Empty / Error States ────────────────────────────────── */
.afb-emp-empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--afb-text-muted);
}

.afb-emp-empty i {
    font-size: 48px;
    margin-bottom: 14px;
    display: block;
    opacity: .35;
}

.afb-emp-error {
    background: #fff5f5;
    color: #8b1a1a;
    border: 1px solid #f5c2c2;
    padding: 14px 20px;
    border-radius: var(--afb-radius-md);
    margin: 16px 0;
    text-align: center;
}

/* ── Modal ───────────────────────────────────────────────── */
.afb-emp-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: afb-fadein .18s ease;
}

@keyframes afb-fadein { from { opacity: 0; } to { opacity: 1; } }

.afb-emp-modal-content {
    background: var(--afb-white);
    border-radius: var(--afb-radius-lg);
    width: 92%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: var(--afb-shadow-lg);
    animation: afb-modal-rise .22s cubic-bezier(.34,1.56,.64,1);
}

@keyframes afb-modal-rise {
    from { transform: translateY(28px) scale(.97); opacity: 0; }
    to   { transform: translateY(0)   scale(1);   opacity: 1; }
}

.afb-emp-modal-header {
    background: linear-gradient(135deg, var(--afb-navy) 0%, var(--afb-navy-light) 100%);
    color: var(--afb-white);
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.afb-emp-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
	color: #fff !important;
}

.afb-emp-modal-close {
    width: 30px; height: 30px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background var(--afb-transition);
    line-height: 1;
}

.afb-emp-modal-close:hover { background: rgba(255,255,255,.25); }

.afb-emp-modal-body { padding: 22px; }

.afb-emp-detail-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--afb-border);
    gap: 12px;
}

.afb-emp-detail-row:last-child { border-bottom: none; }

.afb-emp-detail-label {
    width: 115px;
    font-weight: 600;
    font-size: .82rem;
    color: var(--afb-text-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
    flex-shrink: 0;
    padding-top: 1px;
}

.afb-emp-detail-value {
    flex: 1;
    color: var(--afb-text);
    font-weight: bold;
    font-size: .92rem;
}

/* ── Pagination ──────────────────────────────────────────── */
.afb-emp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid var(--afb-border);
    background: var(--afb-off-white);
}

.afb-emp-pagination-btn {
    background: var(--afb-navy-light);
    color: var(--afb-white);
    border: none;
    padding: 8px 18px;
    border-radius: var(--afb-radius-sm);
    cursor: pointer;
    font-family: var(--afb-font);
    font-size: .88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--afb-transition);
}

.afb-emp-pagination-btn:hover:not(.disabled) {
    background: var(--afb-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10,22,40,.2);
}

.afb-emp-pagination-btn.disabled {
    background: var(--afb-border);
    color: var(--afb-text-muted);
    cursor: not-allowed;
}

.afb-emp-pagination-info {
    font-size: .85rem;
    color: var(--afb-text-muted);
    font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .afb-emp-header { padding: 20px 20px; }
    .afb-emp-title h2 { font-size: 1.3rem; }
    .afb-emp-header-inner { gap: 12px; }
    .afb-emp-manager { flex-direction: column; text-align: center; }
    .afb-emp-filters { flex-direction: column; }
    .afb-emp-filter-group { width: 100%; }
    .afb-emp-table th, .afb-emp-table td { padding: 9px 12px; font-size: .82rem; }
    .afb-emp-detail-row { flex-direction: column; gap: 2px; }
    .afb-emp-detail-label { width: 100%; }
    .afb-emp-modal-content { width: 96%; }
}

