.rgurm-inline-modal {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    z-index: 10000;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.rgurm-inline-modal-title {
    margin-top: 0;
}

.rgurm-inline-modal-table th {
    width: 160px;
}

.button.rgurm_inline_edit_btn {
    background: #1472ba;
    color: #fff;
    border-color: #0f5f98;
    vertical-align: middle;
    padding: 6px 10px;
    margin-right: 6px;
}

.button.rgurm_inline_edit_btn:hover {
    background: #0f5f98;
    border-color: #0b4a77;
}

.rgurm-inline-modal-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.rgurm-inline-modal-actions .button {
    margin-right: 0;
}

/* Pagination Styles */
.rgurm-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

.rgurm-pagination-info {
    color: #646970;
    font-size: 13px;
    line-height: 1.5;
}

.rgurm-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.rgurm-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    margin: 0;
    text-decoration: none;
    color: #2271b1;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.12s ease-in-out, color 0.12s ease-in-out, border-color 0.12s ease-in-out;
}

.rgurm-pagination-link:hover {
    background: #f6f7f7;
    border-color: #2271b1;
    color: #135e96;
}

.rgurm-pagination-link:focus {
    outline: none;
    box-shadow: none;
    border-color: #2271b1;
}

.rgurm-pagination-link:focus-visible {
    outline: 1px solid #2271b1;
    outline-offset: 1px;
}

.rgurm-pagination-current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    font-weight: 600;
    cursor: default;
}

.rgurm-pagination-current:hover {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.rgurm-pagination-disabled {
    color: #a7aaad;
    background: #f6f7f7;
    border-color: #dcdcde;
    cursor: not-allowed;
    opacity: 0.6;
}

.rgurm-pagination-disabled:hover {
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #a7aaad;
}

.rgurm-pagination-prev,
.rgurm-pagination-next {
    padding: 0 12px;
    font-weight: 500;
}

.rgurm-pagination-prev .dashicons,
.rgurm-pagination-next .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    vertical-align: middle;
}

.rgurm-pagination-prev .dashicons {
    margin-right: 4px;
}

.rgurm-pagination-next .dashicons {
    margin-left: 4px;
}

.rgurm-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    color: #646970;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive pagination */
@media screen and (max-width: 782px) {
    .rgurm-pagination-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .rgurm-pagination {
        width: 100%;
        justify-content: center;
    }

    .rgurm-pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .rgurm-pagination-prev,
    .rgurm-pagination-next {
        flex: 1;
        max-width: 120px;
    }
}

/* Statistics Summary */
.rgurm-stats-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rgurm-stat-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    border-radius: 4px;
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rgurm-stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rgurm-stat-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.rgurm-stat-icon-total {
    color: #2271b1;
}

.rgurm-stat-icon-active {
    color: #00a32a;
}

.rgurm-stat-icon-inactive {
    color: #d63638;
}

.rgurm-stat-icon-hits {
    color: #f56e28;
}

.rgurm-stat-label {
    color: #646970;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.rgurm-stat-box .rgurm-stat-total,
.rgurm-stat-box .rgurm-stat-active,
.rgurm-stat-box .rgurm-stat-inactive,
.rgurm-stat-box .rgurm-stat-hits {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-top: auto;
}

.rgurm-stat-box .rgurm-stat-total {
    color: #2271b1;
}

.rgurm-stat-box .rgurm-stat-active {
    color: #00a32a;
}

.rgurm-stat-box .rgurm-stat-inactive {
    color: #d63638;
}

.rgurm-stat-box .rgurm-stat-hits {
    color: #f56e28;
}

/* Form Styles */
.rgurm-add-form {
    margin-bottom: 20px;
    max-width: 800px;
}

.rgurm-add-form .form-table {
    max-width: 100%;
}

.rgurm-add-form .form-table td {
    max-width: 600px;
}

.rgurm-form-input-full {
    width: 100%;
    max-width: 600px;
}

.rgurm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.rgurm-toolbar-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.rgurm-toolbar-form-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.rgurm-file-input {
    min-width: 180px;
}

.rgurm-search-input {
    min-width: 320px;
    padding: 6px;
}

.rgurm-bulk-actions {
    margin-bottom: 8px;
}

.rgurm-table-wrapper {
    overflow-x: auto;
}

.rgurm-table {
    min-width: 1100px;
    table-layout: fixed;
}

.rgurm-table th.rgurm-col-sno {
    width: 60px;
}

.rgurm-table th.rgurm-col-checkbox {
    width: 30px;
    text-align: center;
}

.rgurm-table th.rgurm-col-from {
    width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rgurm-table th.rgurm-col-to {
    width: 420px;
}

.rgurm-table th.rgurm-col-type {
    width: 60px;
}

.rgurm-table th.rgurm-col-hits {
    width: 70px;
}

.rgurm-table th.rgurm-col-created {
    width: 120px;
}

.rgurm-table th.rgurm-col-last-used {
    width: 120px;
}

.rgurm-table th.rgurm-col-actions {
    width: 220px;
}

.rgurm-table td.rgurm-cell-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rgurm-table td.rgurm-cell-word-wrap {
    word-wrap: break-word;
}

.rgurm-table td {
    vertical-align: middle;
}

.rgurm-table th {
    vertical-align: middle;
}

.rgurm-table td.rgurm-cell-checkbox {
    text-align: center;
    vertical-align: middle;
}

.rgurm-table th.rgurm-col-checkbox input[type="checkbox"],
.rgurm-table td.rgurm-cell-checkbox input[type="checkbox"] {
    margin: 0 auto;
    float: none;
    display: inline-block;
}

/* Settings Page */
.rgurm-settings-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.rgurm-settings-form {
    flex: 1;
}

.rgurm-settings-sidebar {
    width: 300px;
}

.rgurm-settings-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d8dee5;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.rgurm-settings-stats-grid {
    display: grid;
    gap: 12px;
}

.rgurm-settings-stat {
    border: 0;
    border-radius: 12px;
    background: #fff;
    padding: 16px 16px;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 6px;
    align-items: start;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.rgurm-settings-stat-icon {
    grid-row: auto;
    grid-column: 1;
    color: #2271b1;
    width: 28px;
    height: 28px;
    font-size: 28px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 4px;
}

.rgurm-settings-stat-label {
    grid-column: 1;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.rgurm-settings-stat-value {
    grid-column: 1;
    color: #1d2327;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.rgurm-settings-stat-note {
    grid-column: 1;
    display: block;
    font-size: 14px;
    line-height: 1.35;
    color: #4b5563;
}

.rgurm-settings-stat-total {
    background: linear-gradient(135deg, #e8f3ff 0%, #f4f9ff 100%);
}

.rgurm-settings-stat-active .rgurm-settings-stat-icon {
    color: #00a32a;
}

.rgurm-settings-stat-active {
    background: linear-gradient(135deg, #e7f9ef 0%, #f5fff9 100%);
}

.rgurm-settings-stat-inactive .rgurm-settings-stat-icon {
    color: #d63638;
}

.rgurm-settings-stat-inactive {
    background: linear-gradient(135deg, #fff1f1 0%, #fff7f7 100%);
}

.rgurm-settings-stat-hits .rgurm-settings-stat-icon {
    color: #dba617;
}

.rgurm-settings-stat-hits {
    background: linear-gradient(135deg, #fff7e8 0%, #fffbf2 100%);
}

.rgurm-settings-health-card,
.rgurm-settings-tips-card {
    margin-top: 14px;
}

.rgurm-settings-health-list {
    margin: 0;
}

.rgurm-settings-health-list li {
    display: grid;
    grid-template-columns: 20px auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.rgurm-settings-health-list li:last-child {
    border-bottom: 0;
}

.rgurm-settings-health-list .dashicons {
    color: #2271b1;
}

.rgurm-settings-tips-card ul {
    margin: 0 0 14px 18px;
}

.rgurm-settings-tips-card li {
    margin: 0 0 8px;
}

@media screen and (max-width: 900px) {
    .rgurm-settings-wrapper {
        flex-direction: column;
    }

    .rgurm-settings-sidebar {
        width: 100%;
    }
}

/* Import Success Message Highlighting */
.rgurm-import-success {
    border-left-color: #00a32a !important;
    background-color: #f0f6fc;
    padding: 12px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rgurm-import-success p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.rgurm-import-success p strong {
    color: #00a32a;
    font-size: 15px;
    font-weight: 600;
}
