.mdvrm-wrap {
    max-width: 98%;
    margin-right: 20px;
}

.mdvrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #c3c4c7;
}

/* Settings Page Styles */
.mdvrm-settings-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.mdvrm-settings-section h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.mdvrm-field-row {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
}

.mdvrm-field-row > label {
    font-weight: 600;
    padding-top: 5px;
}

.mdvrm-field-desc {
    margin: 5px 0 0;
    color: #646970;
    font-style: italic;
    font-size: 13px;
}

.mdvrm-checkbox-list {
    background: #fdfdfd;
    border: 1px solid #dcdcde;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.mdvrm-checkbox-item {
    display: block;
    margin-bottom: 5px;
}

.mdvrm-info-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.mdvrm-card-metric {
    flex: 1;
    border-right: 1px solid #f0f0f1;
    padding-right: 20px;
}

.mdvrm-card-metric:last-child {
    border-right: none;
    padding-right: 0;
}

.mdvrm-card-metric h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #1d2327;
    font-size: 1.1em;
}

.mdvrm-card-metric p {
    margin-top: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.4;
}

.mdvrm-goal {
    display: inline-block;
    background: #f0f6fc;
    color: #1d2327;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    border: 1px solid #cce5ff;
}

/* Table Enhancements */
.mdvrm-table-wrap {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wp-list-table.mdvrm-table {
    table-layout: fixed;
}

.wp-list-table.mdvrm-table th {
    padding-left: 12px;
    padding-right: 12px;
}

.wp-list-table.mdvrm-table td {
    padding-left: 12px;
    padding-right: 12px;
    vertical-align: middle;
}

/* Pagination Overrides */
.tablenav .tablenav-pages {
    float: right;
    display: flex;
    align-items: center;
    height: 30px;
}

.tablenav .displaying-num {
    margin-right: 10px;
}

.tablenav .pagination-links {
    display: flex;
    align-items: center;
}

.tablenav .pagination-links a.button {
    margin-left: 3px;
    margin-right: 3px;
    padding: 0 10px;
    line-height: 28px;
    min-height: 28px;
    font-size: 14px;
}

.tablenav .pagination-links .paging-input {
    margin: 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tablenav .actions {
    overflow: visible;
}
.tablenav .actions > * {
    vertical-align: middle;
}

/* Metric Colors */
.mdvrm-metric-good {
    color: #007017; /* Green */
    font-weight: 500;
}
.mdvrm-metric-needs-improvement {
    color: #994f00; /* Orange */
    font-weight: 500;
}
.mdvrm-metric-poor {
    color: #d63638; /* Red */
    font-weight: 500;
}

/* Modal */
.mdvrm-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mdvrm-modal {
    background: #fff;
    width: 600px;
    max-width: 90%;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

.mdvrm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #444;
}

.mdvrm-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.mdvrm-stat-box {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.mdvrm-stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2271b1;
}

.mdvrm-stat-label {
    font-size: 13px;
    color: #646970;
}

.mdvrm-modal h2 {
    margin-top: 0;
}

/* Footer */
.mdvrm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 16px 0;
    border-top: 1px solid #c3c4c7;
}

.mdvrm-footer__brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mdvrm-footer__logo {
    display: block;
    border-radius: 4px;
}

.mdvrm-footer__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #646970;
}

.mdvrm-footer__sep {
    color: #c3c4c7;
}

.mdvrm-footer__link {
    color: #646970;
    text-decoration: none;
}

.mdvrm-footer__link:hover {
    color: #135e96;
}
