/* UM Frontend Manager Styles */
.um-frontend-manager {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.um-frontend-manager h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.um-description {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

/* Notices */
.um-notice {
    padding: 12px 20px;
    margin: 20px 0;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.um-notice-error {
    border-left-color: #dc3232;
    color: #dc3232;
}

.um-notice-success {
    border-left-color: #46b450;
    color: #46b450;
}

/* Filters */
.um-filters {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.um-filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.um-filter-group input,
.um-filter-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.um-filter-group input:focus,
.um-filter-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

/* Buttons */
.um-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.um-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.um-btn-primary {
    background: #0073aa;
    color: white;
}

.um-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.um-btn-enable {
    background: #28a745;
    color: white;
}

.um-btn-enable:hover:not(:disabled) {
    background: #218838;
}

.um-btn-disable {
    background: #dc3545;
    color: white;
}

.um-btn-disable:hover:not(:disabled) {
    background: #c82333;
}

.um-btn-secondary {
    background: #6c757d;
    color: white;
    margin-left: 5px;
}

.um-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

/* Tables */
.um-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.um-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.um-table th {
    background: #f5f5f5;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.um-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.um-table tr:hover {
    background: #f9f9f9;
}

/* User Info */
.um-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.um-user-info img {
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

/* Status Badges */
.um-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-awaiting_admin_review {
    background: #fff3cd;
    color: #856404;
}

.status-awaiting_email_confirmation {
    background: #d1ecf1;
    color: #0c5460;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-inactive {
    background: #e2e3e5;
    color: #383d41;
}

/* Badges */
.um-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.um-badge-restricted {
    background: #dc3545;
    color: white;
}

.um-badge-public {
    background: #28a745;
    color: white;
}

.um-badge-loggedin {
    background: #0073aa;
    color: white;
}

.um-badge-loggedout {
    background: #6c757d;
    color: white;
}

/* Menu Sections */
.um-menu-section {
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.um-menu-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.um-count {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

/* Pagination */
.um-pagination {
    margin-top: 20px;
    text-align: center;
}

/* Loading State */
.um-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.um-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .um-filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .um-filter-group input,
    .um-filter-group select,
    .um-filter-group .um-btn {
        width: 100%;
    }
    
    .um-table th,
    .um-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .um-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Add to your existing style.css */
.um-users-table th:nth-child(2),
.um-users-table td:nth-child(2) {
    min-width: 120px;
    font-weight: 500;
    color: #555;
}
/* ------------------------------------------------------------------
   Modal
------------------------------------------------------------------ */
.um-modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
}

.um-modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 92vw);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
}

.um-modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.um-modal-header h3{
    margin: 0;
    font-size: 18px;
}

.um-modal-close{
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.um-modal-body{
    padding: 16px;
    max-height: 60vh;
    overflow: auto;
}

.um-modal-footer{
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

.um-form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.um-field{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.um-field-full{
    grid-column: 1 / -1;
}

.um-field label{
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.um-field input,
.um-field select{
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.um-help{
    color: #666;
    font-size: 12px;
}

.um-roles-box{
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 10px;
    max-height: 260px;
    overflow: auto;
    background: #fafafa;
}

.um-role-item{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 4px;
}

.um-role-item input{
    margin-top: 2px;
}

.um-role-item span{
    font-size: 14px;
}

.um-role-item small{
    color: #777;
}

@media (max-width: 600px){
    .um-form-grid{ grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
