
/* USERS PAGE  */


/* =========================================================
   USERS PAGE – FINAL SAME TO SAME
========================================================= */

/* ===== TABLE GRID ===== */
.users-head,
.users-row {
    grid-template-columns: 2.6fr .8fr 2.2fr 1.6fr 1.2fr 0.6fr;
}

/* ===== ROW HEIGHT ===== */
.users-row {
    min-height: 78px;
    gap: 40px;
}

/* ===== USER CELL ===== */
.user-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-cell strong {
    font-size: 16px;
    font-weight: 600;
}

.user-cell .muted {
    font-size: 14px;
    margin-top: 2px;
}

/* ===== AVATAR ===== */
.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    display: grid;
    place-items: center;
    font-size: 18px;
}

/* ===== ROLE BADGE ===== */
.role-pill {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.role-pill.admin {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.role-pill.user {
    background: rgba(143, 163, 191, 0.15);
    color: #8fa3bf;
}

/* ===== ACCESS COLUMN ===== */
.users-row strong {
    font-size: 15px;
}

.users-row .muted {
    font-size: 14px;
    color: #8fa3bf;
}

/* ===== LAST LOGIN ===== */
.users-row > div:nth-child(4) {
    font-size: 14px;
    color: #8fa3bf;
}

/* ===== STATUS ===== */
.status-pill {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.status-pill.active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.status-pill.inactive {
    background: rgba(143, 163, 191, 0.15);
    color: #8fa3bf;
}

/* ===== ACTIONS ===== */
.users-row .actions {
    display: flex;
    justify-content: flex-end;
}

.users-row .actions .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

/* ===== ROW HOVER ===== */
.users-row:hover {
    background: rgba(255,255,255,0.03);
}

/* =========================================================
   ADD USER MODAL – EXACT MATCH
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 999;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 420px;
    border-radius: 18px;
    background: linear-gradient(180deg, #0f172a, #0b1220);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    padding: 24px;
}

/* ===== MODAL HEADER ===== */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.modal-header .muted {
    font-size: 14px;
    margin-top: 4px;
}

/* ===== MODAL BODY ===== */
.modal-body {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-body label {
    font-size: 14px;
    font-weight: 500;
}

.modal-body input,
.modal-body select {
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 15px;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: #34d399;
}

/* ===== MODAL FOOTER ===== */
.modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
