.sentinelpro-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

#sentinelpro-user-search,
#sentinelpro-user-role-filter,
#sentinelpro-rows-per-page {
    padding: 8px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
    background: #fff;
    transition: border-color 0.2s;
}

#sentinelpro-user-search:focus,
#sentinelpro-user-role-filter:focus,
#sentinelpro-rows-per-page:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

#sentinelpro-user-search {
    padding-left: 32px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
}

.user-access-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.user-access-table th {
    background: #fff;
    padding: 18px 16px 10px 16px;
    text-align: center;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 1.5px solid #f0f1f3;
    letter-spacing: 0.5px;
}

.user-access-table td {
    padding: 16px 16px;
    border: none;
    color: #222;
    background: #fff;
    vertical-align: middle;
    text-align: center;
}

.user-access-table td:first-child {
    text-align: left;
}

.user-access-table th:first-child {
    text-align: left;
}

.user-access-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.user-access-table tbody tr:hover td {
    background: #f0f6ff;
}

/* === MODERN ACCESS LABELS === */
.sentinelpro-access-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    min-width: 90px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sentinelpro-access-label[data-status="1"] {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.sentinelpro-access-label[data-status="0"] {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.sentinelpro-access-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sentinelpro-access-label[data-locked="1"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === ENHANCED BUTTON STYLING === */
.sentinelpro-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sentinelpro-btn-primary {
    background: linear-gradient(135deg, #0073aa, #005177);
    color: white;
}

.sentinelpro-btn-primary:hover {
    background: linear-gradient(135deg, #005177, #003f5c);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sentinelpro-btn-secondary {
    background: #f6f7f7;
    color: #333;
    border: 1px solid #ccd0d4;
}

.sentinelpro-btn-secondary:hover {
    background: #f0f0f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sentinelpro-dashboard-section {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#sentinelpro-upload-dropzone {
    border: 2px dashed #cfd8dc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 500px;
    margin: 0 auto;
}

#sentinelpro-upload-dropzone.drag-over {
    border-color: #1976d2;
    background: #f0f6ff;
}

#sentinelpro-upload-dropzone p {
    margin: 0;
    color: #666;
}

#sentinelpro-upload-dropzone p strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

#sentinelpro-access-url-input {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

#sentinelpro-access-url-input:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Bulk Access Section - More Compact */
#sentinelpro-bulk-access {
    max-width: 800px;
    margin: 0;
}

#sentinelpro-bulk-access .sentinelpro-button-group {
    margin-bottom: 20px;
}

#sentinelpro-bulk-access p {
    margin-bottom: 12px;
    color: #666;
}

#sentinelpro-bulk-access .description {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #1976f2;
}

/* Form elements in bulk access */
#sentinelpro-bulk-access form {
    max-width: 500px;
    margin: 0;
}

#sentinelpro-bulk-access .sentinelpro-btn {
    margin: 8px 4px;
}

/* Left-align the upload dropzone and URL input */
#sentinelpro-bulk-access #sentinelpro-upload-dropzone,
#sentinelpro-bulk-access #sentinelpro-access-url-input {
    margin: 0 0 16px 0;
}

/* Add spacing between Bulk Access Management and Reassign SuperUser sections */
.sentinelpro-dashboard-section[style*="border-left: 4px solid #d63638"] {
    margin-top: 40px;
}

.sentinelpro-dashboard-section h1,
.sentinelpro-dashboard-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 1.5em;
    color: #1d2327;
}

.sentinelpro-dashboard-section h2 {
    font-size: 1.3em;
}

.sentinelpro-dashboard-section .dashicons {
    font-size: 1.2em;
    width: auto;
    height: auto;
}

.sentinelpro-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0f6ff;
    color: #1976d2;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid #e1ecf8;
    transition: all 0.2s ease;
}

.sentinelpro-jump-link:hover {
    background: #e3f0ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
}

#sentinelpro-pagination-controls {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

#sentinelpro-pagination-controls button {
    padding: 6px 12px;
    border: 1px solid #cfd8dc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: all 0.2s ease;
}

#sentinelpro-pagination-controls button.active,
#sentinelpro-pagination-controls button:hover {
    background: #f0f6ff;
    border-color: #1976d2;
    color: #1976d2;
}

#sentinelpro-total-users {
    font-weight: 600;
    color: #1976d2;
}

#sentinelpro-preview-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e1ecf8;
}

#sentinelpro-preview-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#sentinelpro-preview-wrapper th,
#sentinelpro-preview-wrapper td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1ecf8;
}

#sentinelpro-preview-wrapper th {
    background: #f0f6ff;
    font-weight: 600;
    color: #1976d2;
}

#sentinelpro-preview-wrapper tr.changed-row td {
    background: #fff8e1;
}

.sentinelpro-button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

#export-user-all,
#export-user-visible {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

#export-user-all:hover,
#export-user-visible:hover {
    background: #f8fafc;
    border-color: #1976d2;
    color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
}

.description {
    color: #666;
    font-size: 13px;
    margin: 8px 0 16px 0;
    font-style: italic;
}

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

    #sentinelpro-user-search,
    #sentinelpro-user-role-filter,
    #sentinelpro-rows-per-page {
        width: 100%;
        min-width: 0;
    }

    .user-access-table {
        font-size: 14px;
    }

    .user-access-table th,
    .user-access-table td {
        padding: 12px 8px;
    }

    .sentinelpro-dashboard-section {
        padding: 16px;
    }

    .sentinelpro-button-group {
        flex-direction: column;
    }
}

@keyframes flashHighlight {
    0% { background-color: #fff8e1; }
    100% { background-color: transparent; }
}

tr.row-flash {
    animation: flashHighlight 1s ease-out;
}

#sentinelpro-access-logs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    box-sizing: border-box;
    padding: 20px;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content {
    background: #fff;
    padding: 0;
    border-radius: 16px;
    max-width: 1200px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .modal-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 300;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .modal-close-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: scale(1.1);
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .table-container {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content table th {
    background: #f8f9fa;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #333;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content table tr:hover {
    background: #f8f9fa;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .modal-footer {
    padding: 20px 32px 24px 32px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .pagination-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .pagination-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .pagination-btn.active {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Status color coding */
#sentinelpro-access-logs-modal .sentinelpro-modal-content table .status-restricted {
    color: #dc3545;
    font-weight: 600;
    background: #fff5f5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffebee;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content table .status-allowed {
    color: #28a745;
    font-weight: 600;
    background: #f8fff9;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e8f5e8;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .close-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 20px;
}

#sentinelpro-access-logs-modal .sentinelpro-modal-content .close-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Remove the Export Visible button */
#export-user-visible {
    display: none;
}