/* MD Embed Checker Admin Styles */

/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --mdemch-accent-color: #503ced;
    --mdemch-accent-hover-color: #3f28f0;
    --mdemch-accent-active-color: #321aeb;
    --mdemch-error-color: hsl(9, 100%, 43%);
    --mdemch-error-hover-color: hsl(9, 100%, 38%);
    --mdemch-error-active-color: hsl(9, 100%, 33%);
    --mdemch-bg-color: #f0f0f1;
    --mdemch-text-color: #000000;
    --mdemch-container-bg: #ffffff;
    --mdemch-border-color: #dddddd;
    --mdemch-table-stripe: #f6f7f7;
    --mdemch-table-hover: #f0f0f1;
    --mdemch-input-bg: #ffffff;
    --mdemch-input-text: #2c3338;
    --mdemch-secondary-text: #646970;
}

/*--------------------------------------
|| Typography
--------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.0;
    color: #1d2327;
}

h1 {
    font-size: 2em;
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
}

h2 {
    font-size: 1.75em;
    margin-top: var(--space-7);
    margin-bottom: var(--space-5);
}

h3 {
    font-size: 1.5em;
    margin-top: var(--space-6);
    margin-bottom: var(--space-4);
}

h4 {
    font-size: 1.25em;
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
}

h5 {
    font-size: 1.1em;
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
}

h6 {
    font-size: 1em;
    margin-top: var(--space-3);
    margin-bottom: var(--space-2);
}

/* First heading in container has no top margin */
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

/*--------------------------------------
|| Sidebar
--------------------------------------*/

.mdemch-ui-nav-menu {
    list-style: none;
    border: none;
    margin: 0;
    padding: 0;
}

.mdemch-ui-nav-menu li {
    margin: 0;
    padding: 0;
}

.mdemch-ui-nav-menu {
    flex: 0 0 250px;
}

.mdemch-ui-nav-item {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: #495057 !important;
    background-color: transparent;
    border: 1px solid transparent;
    box-shadow: none !important;
    text-decoration: none !important;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.mdemch-ui-nav-item .dashicons {
    color: #495057;
    font-size: 22px;
    vertical-align: middle;
    margin-right: 12px;
}

.mdemch-ui-nav-item:hover,
.mdemch-ui-nav-item.active {
    color: var(--mdemch-accent-active-color) !important;
    background-color: #ffffff;
    border-radius: 0;
    border: 1px solid #dddddd !important;
    border-color: #dddddd !important;
    box-shadow: 0 0 2px 0 #dadada !important;
}

.mdemch-ui-nav-item:active,
.mdemch-ui-nav-item:focus {
    outline: none !important;
    border: 1px solid #dddddd !important;
    border-color: #dddddd !important;
    box-shadow: 0 0 2px 0 #dadada !important;
}

.mdemch-ui-nav-item:hover .dashicons {
    color: var(--mdemch-accent-hover-color);
}

.mdemch-ui-nav-item.active .dashicons {
    color: var(--mdemch-accent-active-color);
}

.mdemch-ui-settings-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.mdemch-ui-tab-content-wrapper {
    flex: 1;
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-radius: none;
    overflow: hidden;
}

/*--------------------------------------
|| TAB STYLING
--------------------------------------*/

.mdemch-tab-content {
    padding: 30px;
}

/* Scan Tab Styles */
.mdemch-scan-tab {
    width: 50vw;
}

/*--------------------------------------
|| PROGRESS BAR STYLING
--------------------------------------*/

.mdemch-progress-container {
    display: none;
    margin: 30px 0;
}

.mdemch-progress-container.show-progress {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mdemch-progress-bar {
    display: none;
    position: relative;
    width: 100%;
    height: 20px;
    background: var(--mdemch-bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    z-index: 0;
}

.show-progress .mdemch-progress-bar {
    display: block;
}

.mdemch-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--mdemch-accent-color, #6400f0) !important;
    transition: width 0.3s ease;
    border-radius: 4px;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0px;
    box-sizing: border-box !important;
}

.mdemch-progress-text {
    text-align: center;
    font-weight: 500;
    color: var(--mdemch-text-color);
    font-size: 14px;
}

/*--------------------------------------
|| BUTTON STYLING
--------------------------------------*/

/* Button Classes */
.mdemch-button-primary {
    background: var(--mdemch-accent-color) !important;
    color: white !important;
    border: none !important;
    padding: 4px 12px !important;
    height: 40px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.mdemch-button-primary:hover {
    background: var(--mdemch-accent-hover-color) !important;
    height: 40px !important;
}

.mdemch-button-primary:disabled {
    background: #c3c4c7 !important;
    cursor: not-allowed !important;
    height: 40px !important;
    border: 1px solid var(--mdemch-border-color) !important;
}

.mdemch-button-primary:active,
.mdemch-button-primary:focus {
    box-shadow: none !important;
    border: 1px solid var(--mdemch-border-color) !important;
}

.mdemch-button-scan {
    background: var(--mdemch-accent-color) !important;
    color: white !important;
    border: 1px solid var(--mdemch-accent-color) !important;
    padding: 8px 20px !important;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mdemch-button-scan:hover {
    background: var(--mdemch-accent-hover-color) !important;
    border: 1px solid var(--mdemch-accent-hover-color) !important;
    height: 48px !important;
}

.mdemch-button-scan:disabled {
    background: #c3c4c7 !important;
    cursor: not-allowed !important;
    height: 48px !important;
    border: 1px solid var(--mdemch-border-color) !important;
}

.mdemch-button-scan:active,
.mdemch-button-scan:focus {
    box-shadow: none !important;
    border: 1px solid var(--mdemch-accent-color) !important;
}

.mdemch-button-scan .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
}

.mdemch-button-inert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 16px;
    background: white;
    color: var(--mdemch-accent-color);
    height: 40px !important;
    border: 1px solid var(--mdemch-accent-color) !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: top;
    cursor: pointer;
}

.mdemch-button-inert:hover {
    background: var(--mdemch-accent-color) !important;
    color: #ffffff !important;
    height: 40px !important;
    border-color: var(--mdemch-accent-color) !important;
    text-decoration: none !important;
}

.mdemch-button-inert:active,
.mdemch-button-inert:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mdemch-button-standard {
    background: var(--mdemch-accent-color);
    border-color: var(--mdemch-accent-color);
    color: #fff;
    height: 40px !important;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    padding: 0 16px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: top;
    margin: 0;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    cursor: pointer;

}

.mdemch-button-standard:hover {
    background: var(--mdemch-accent-hover-color);
    border-color: var(--mdemch-accent-hover-color);
    color: #fff;
    height: 40px !important;
    box-sizing: border-box;
    vertical-align: top;
    margin: 0;
}

.mdemch-button-standard:active,
.mdemch-button-standard:focus {
    outline: none !important;
    box-shadow: none !important;
    color: #fff
}

.mdemch-button-delete {
    display: inline-block;
    padding: 6px 12px;
    background: white !important;
    color: #d63638 !important;
    border: 1px solid #d63638 !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mdemch-button-delete:hover {
    background: var(--mdemch-error-hover-color) !important;
    border-color: var(--mdemch-error-hover-color) !important;
    color: white !important;
    text-decoration: none !important;
}

.mdemch-button-delete:active,
.mdemch-button-delete:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove WordPress blue border from all buttons in active/focus state */
.toplevel_page_mdemch-embed-checker button:active,
.toplevel_page_mdemch-embed-checker button:focus,
.toplevel_page_mdemch-embed-checker .button:active,
.toplevel_page_mdemch-embed-checker .button:focus,
.toplevel_page_mdemch-embed-checker a.button:active,
.toplevel_page_mdemch-embed-checker a.button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

/* Override WordPress styles specifically for nav items */
.toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item:active,
.toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item:focus,
.toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item.active:active,
.toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item.active:focus,
.wp-core-ui .toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item:active,
.wp-core-ui .toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item:focus,
.wp-core-ui .toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item.active:active,
.wp-core-ui .toplevel_page_mdemch-embed-checker .mdemch-ui-nav-item.active:focus {
    border: 1px solid var(--mdemch-border-color) !important;
    /* border-color: #dddddd !important; */
    outline: none !important;
    box-shadow: 0 0 2px 0 #dadada !important;
}

/*--------------------------------------
|| SCAN RESULTS STYLING
--------------------------------------*/

.mdemch-scan-results {
    margin-top: 20px;
    border: 1px solid var(--mdemch-border-color);
    border-radius: 8px;
    padding: 20px;
}

.mdemch-results-actions {
    display: flex;
    gap: 10px;
    margin-left: 0;
}

/*--------------------------------------
|| REPORT DETAILS STYLING
--------------------------------------*/

.mdemch-report-details .button {
    background: var(--mdemch-accent-color) !important;
    color: white !important;
    border-color: var(--mdemch-accent-color) !important;
    transition: background-color 0.3s ease !important;
}

.mdemch-report-details .button:hover {
    background: var(--mdemch-accent-hover-color) !important;
    border-color: var(--mdemch-accent-hover-color) !important;
}

.mdemch-dashboard-actions .button {
    font-size: 12px;
    padding: 6px 12px;
    background: white !important;
    color: var(--mdemch-accent-color) !important;
    border-color: var(--mdemch-accent-color) !important;
    border-width: 2px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.mdemch-dashboard-actions .button:hover {
    background: var(--mdemch-accent-color) !important;
    color: white !important;
    border-color: var(--mdemch-accent-color) !important;
}

/*--------------------------------------
|| LOG VIEWER STYLING
--------------------------------------*/
.mdemch-log-viewer {
    margin-top: 40px;
}

.mdemch-log-viewer .mdemch-log-accordion-header {
    background: var(--mdemch-bg-color);
    padding: 15px;
    border: 1px solid var(--mdemch-border-color);
    border-radius: 0;
    cursor: pointer;
    display: none;
    justify-content: space-between;
    align-items: center;
}

.mdemch-log-viewer .mdemch-log-accordion-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mdemch-log-viewer .mdemch-accordion-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 12px;
}

.mdemch-log-viewer .mdemch-log-accordion-header>div {
    display: flex;
    gap: 10px;
}

.mdemch-log-viewer .mdemch-log-accordion-content {
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-top: none;
    border-radius: 0;
    margin-bottom: 20px;
}

.mdemch-log-viewer .mdemch-log-accordion-content>div {
    padding: 20px;
}

.mdemch-log-viewer #mdemch-log-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 0;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/*--------------------------------------
|| REPORTS TAB STYLING
--------------------------------------*/

.mdemch-reports-tab {
    width: 50vw;
}

.mdemch-reports-tab h2 {
    color: var(--mdemch-text-color);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

.mdemch-reports-summary {
    background: var(--mdemch-bg-color);
    border: 1px solid var(--mdemch-border-color);
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.mdemch-reports-summary p {
    color: var(--mdemch-secondary-text);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.mdemch-reports-list {
    display: grid;
    gap: 20px;
}

.mdemch-report-item {
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-radius: 8px;
    padding: 20px;
}

.mdemch-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mdemch-report-header h3 {
    color: var(--mdemch-text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.mdemch-report-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.mdemch-report-status.error {
    background: #f8d7da;
    color: #721c24;
}

.mdemch-report-details p {
    color: var(--mdemch-secondary-text);
    margin: 0 0 15px 0;
}

.mdemch-report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mdemch-export-scan {
    color: var(--mdemch-accent-color) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
    cursor: pointer !important;
    margin-left: 5px !important;
}

.mdemch-export-scan:hover {
    color: var(--mdemch-accent-hover-color) !important;
    text-decoration: none !important;
}

.mdemch-delete-scan {
    color: var(--mdemch-error-color) !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
    cursor: pointer !important;
    margin-left: 5px !important;
}

.mdemch-delete-scan:hover {
    color: var(--mdemch-error-hover-color) !important;
    text-decoration: none !important;
}

/* Remove WordPress blue border from specific buttons in active/focus state */
#mdemch-clear-log:active,
#mdemch-clear-log:focus,
#mdemch-copy-log:active,
#mdemch-copy-log:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.mdemch-export-scan:active,
.mdemch-export-scan:focus,
.mdemch-delete-scan:active,
.mdemch-delete-scan:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/*--------------------------------------
|| SCAN LIST STYLING
--------------------------------------*/

.mdemch-scan-list-header {
    margin-bottom: 30px;
}

.mdemch-scan-list-header h2 {
    color: var(--mdemch-text-color);
    font-size: 22px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.mdemch-scan-summary {
    color: var(--mdemch-secondary-text);
    font-size: 16px;
    margin: 0;
}

.mdemch-no-broken-links {
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.mdemch-no-broken-links p {
    color: var(--mdemch-secondary-text);
    font-size: 16px;
    margin: 0;
}

.mdemch-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.mdemch-status-not-found {
    background: #f8d7da;
    color: #721c24;
}

.mdemch-status-error {
    background: #fff3cd;
    color: #856404;
}

.mdemch-status-invalid {
    background: #d1ecf1;
    color: #0c5460;
}

/*--------------------------------------
|| STATISTICS TAB STYLING
--------------------------------------*/

.mdemch-statistics-tab {
    /* max-width: 90%; */
    padding-bottom: 20px;
}

.mdemch-statistics-tab h2 {
    color: var(--mdemch-text-color);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Statistics Grid - Simple and Clean */
.mdemch-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
    /* Make all cards same height */
}

/* Statistics Items - Simple and Clean */
.mdemch-stat-item {
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mdemch-stat-item:hover {
    transform: translateY(-5px);
}

/* Statistics Item Text */
.mdemch-stat-item p {
    color: var(--mdemch-secondary-text);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-transform: none;
}

/* Features Items - Same styling as stat items but for More Features tab */
.mdemch-features-item {
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mdemch-features-item:hover {
    transform: translateY(-5px);
}

/* Features Item Text */
.mdemch-features-item p {
    color: var(--mdemch-secondary-text);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-transform: none;
}

/* Statistics Item Headings */
.mdemch-stat-large h3 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 10px 0;
}

.mdemch-stat-small h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 20px 0;
}

/* Desktop layout */
/* Last Scan Box */
.mdemch-last-scan {
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-radius: 8px;
    padding: 20px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    margin-top: 20px;
    margin-left: auto;
    margin-right: 0;
    float: right;
    clear: both;
}

.mdemch-last-scan h3 {
    color: var(--mdemch-text-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.mdemch-last-scan p {
    color: var(--mdemch-secondary-text);
    margin: 0;
}

/*--------------------------------------
|| SETTINGS TAB STYLING (PRO FEATURES)
--------------------------------------*/

.mdemch-settings-tab {
    /* max-width: 90%; */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mdemch-settings-tab h2 {
    color: var(--mdemch-text-color);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

.mdemch-settings-notice {
    margin-bottom: 30px;
    display: block !important;
    visibility: visible !important;
}

.mdemch-settings-placeholder {
    background: var(--mdemch-container-bg);
    border: 1px solid var(--mdemch-border-color);
    border-radius: 8px;
    padding: 30px;
    display: block !important;
    visibility: visible !important;
}

.mdemch-settings-placeholder h3 {
    color: var(--mdemch-text-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.mdemch-settings-placeholder ul {
    color: var(--mdemch-secondary-text);
    margin: 0;
    padding-left: 25px;
    list-style-type: disc;
    list-style-position: outside;
}

.mdemch-settings-placeholder li {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 14px;
}

.mdemch-pro-features-promo {
    margin-top: 25px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%) !important;
    border: 2px solid #6400f0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(100, 0, 240, 0.15) !important;
}

.mdemch-pro-features-promo p {
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.mdemch-pro-features-promo a {
    color: var(--mdemch-accent-color) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.3s ease !important;
    border-bottom: 2px solid transparent !important;
    padding-bottom: 2px !important;
}

.mdemch-pro-features-promo a:hover {
    color: var(--mdemch-accent-hover-color) !important;
    border-bottom-color: var(--mdemch-accent-hover-color) !important;
    text-decoration: none !important;
}

/* Force visibility with highest specificity */
.toplevel_page_mdemch-embed-checker .mdemch-pro-features-promo,
.toplevel_page_mdemch-embed-checker .mdemch-settings-placeholder .mdemch-pro-features-promo,
.mdemch-admin .mdemch-pro-features-promo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

/* Override the general notice hiding rule for our specific promotional notice */
.toplevel_page_mdemch-embed-checker [class*="notice"]:not(.mdemch-pro-features-promo) {
    display: none !important;
}

/* Additional specificity for our promotional notice */
.toplevel_page_mdemch-embed-checker .mdemch-settings-placeholder .mdemch-pro-features-promo,
.toplevel_page_mdemch-embed-checker .mdemch-settings-tab .mdemch-pro-features-promo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;
}

/*--------------------------------------
|| TABLE STYLING
--------------------------------------*/

.mdemch-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--mdemch-container-bg);
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

.mdemch-table th,
.mdemch-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--mdemch-border-color);
    font-size: 13px;
}

.mdemch-table th {
    background: var(--mdemch-bg-color);
    font-weight: 600;
    color: var(--mdemch-text-color);
}

.mdemch-table td {
    color: var(--mdemch-text-color);
}

.mdemch-table tr:nth-child(even) {
    background: var(--mdemch-table-stripe);
}

.mdemch-table tr:hover {
    background: var(--mdemch-table-hover);
}

.mdemch-table .broken-link {
    color: var(--mdemch-error-color);
    font-weight: 500;
}

/*--------------------------------------
|| PAGINATION STYLING
--------------------------------------*/

.mdemch-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.mdemch-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid var(--mdemch-border-color);
    background: var(--mdemch-container-bg);
    color: var(--mdemch-text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mdemch-pagination .page-numbers:hover {
    background: var(--mdemch-accent-color);
    color: white;
    border-color: var(--mdemch-accent-color);
}

.mdemch-pagination .current {
    background: var(--mdemch-accent-color);
    color: white;
    border-color: var(--mdemch-accent-color);
}

.mdemch-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.mdemch-page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mdemch-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--mdemch-border-color);
    background: var(--mdemch-container-bg);
    color: var(--mdemch-text-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.mdemch-page-link:hover {
    background: var(--mdemch-accent-color);
    color: white;
    border-color: var(--mdemch-accent-color);
    text-decoration: none;
}

.mdemch-page-link.mdemch-current {
    background: var(--mdemch-accent-color);
    color: white;
    border-color: var(--mdemch-accent-color);
    cursor: default;
}

.mdemch-page-link.mdemch-page-prev,
.mdemch-page-link.mdemch-page-next {
    min-width: auto;
    padding: 8px 16px;
    font-weight: 600;
}

.mdemch-page-link:active,
.mdemch-page-link:focus,
.mdemch-page-numbers:active,
.mdemch-page-numbers:focus {
    outline: none !important;
    box-shadow: none !important;
}

.mdemch-page-dots {
    color: var(--mdemch-secondary-text);
    font-weight: 500;
    padding: 0 8px;
    font-size: 16px;
}

/* Responsive pagination */

/* Force Critical Styles - Moved from PHP inline styles */
.toplevel_page_mdemch-embed-checker .mdemch-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    grid-gap: 15px !important;
    align-items: stretch !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-stat-item {
    aspect-ratio: 1 !important;
    box-shadow: none !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-stat-large h3 {
    font-size: 36px !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-stat-small h3 {
    font-size: 24px !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-stat-item p {
    text-transform: none !important;
}

/* Features Items Overrides */
.toplevel_page_mdemch-embed-checker .mdemch-features-item {
    box-shadow: none !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-features-item p {
    text-transform: none !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-last-scan {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: none !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-admin h1 {
    font-weight: bold;
    margin-bottom: 0px !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-admin h4 {
    color: var(--mdemch-secondary-text) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

/* Only hide notices within the plugin content area, not globally */
.toplevel_page_mdemch-embed-checker .mdemch-admin .notice,
.toplevel_page_mdemch-embed-checker .mdemch-admin .updated,
.toplevel_page_mdemch-embed-checker .mdemch-admin .error,
.toplevel_page_mdemch-embed-checker .mdemch-admin .warning,
.toplevel_page_mdemch-embed-checker .mdemch-admin .info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/*--------------------------------------
|| Dashboard Widget Force Styles
--------------------------------------*/

.mdemch-dashboard-widget {
    text-align: center !important;
    padding: 40px 0 !important;
}

/* Dashboard Icon */
.mdemch-widget-icon-large {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--mdemch-accent-color);
    display: block;
    margin: 0 auto 15px auto;
}

/* Dashboard Actions Layout */
.mdemch-dashboard-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.mdemch-dashboard-actions .mdemch-button-scan {
    margin-top: 0 !important;
    width: auto !important;
}

.mdemch-widget-title {
    font-size: 1.5em;
    margin: 10px 0 20px 0;
    font-weight: 600;
    text-align: center;
}

.mdemch-quick-scan {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.mdemch-dashboard-stats {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.mdemch-dashboard-stats p {
    text-align: center !important;
    margin: 10px 0 !important;
    color: var(--mdemch-secondary-text) !important;
    font-size: 14px !important;
}

.mdemch-dashboard-stats strong {
    color: var(--mdemch-text-color) !important;
}

.mdemch-dashboard-actions {
    text-align: center !important;
}

.mdemch-dashboard-actions .button {
    font-size: 12px !important;
    padding: 6px 12px !important;
    background: white !important;
    color: var(--mdemch-accent-color) !important;
    border-color: var(--mdemch-accent-color) !important;
    border-width: 2px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.mdemch-dashboard-actions .button:hover {
    background: var(--mdemch-accent-color) !important;
    color: white !important;
    border-color: var(--mdemch-accent-color) !important;
}

/* Force Progress Elements to be Visible */
.toplevel_page_mdemch-embed-checker .mdemch-progress-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 30px 0 !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-progress-bar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    height: 20px !important;
    background: var(--mdemch-bg-color) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    z-index: 0 !important;
}

.toplevel_page_mdemch-embed-checker .mdemch-progress-fill {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 0%;
    height: 100% !important;
    background: var(--mdemch-accent-color, #6400f0) !important;
    transition: width 0.3s ease !important;
    border-radius: 4px !important;
    z-index: 10 !important;
    min-width: 0px !important;
    box-sizing: border-box !important;
}

/*--------------------------------------
|| Progress Text Force Styles
--------------------------------------*/
.toplevel_page_mdemch-embed-checker .mdemch-progress-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    font-weight: 500 !important;
    color: var(--mdemch-text-color) !important;
    font-size: 14px !important;
}

/*--------------------------------------
|| Feature card background images
--------------------------------------*/

.mdemch-feature-scheduled,
.mdemch-feature-auto-draft,
.mdemch-feature-notifications {
    position: relative;
    padding: 0;
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
}

/*--------------------------------------
|| Feature card background images
--------------------------------------*/

.mdemch-features-item.mdemch-feature-scheduled::before,
.mdemch-features-item.mdemch-feature-auto-draft::before,
.mdemch-features-item.mdemch-feature-notifications::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 75%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px 8px 0 0;
}

.mdemch-features-item.mdemch-feature-scheduled::before {
    background-image: url('../assets/images/features-01.png');
}

.mdemch-features-item.mdemch-feature-auto-draft::before {
    background-image: url('../assets/images/features-02.png');
}

.mdemch-features-item.mdemch-feature-notifications::before {
    background-image: url('../assets/images/features-03.png');
}

.mdemch-features-item.mdemch-feature-scheduled>h3,
.mdemch-features-item.mdemch-feature-auto-draft>h3,
.mdemch-features-item.mdemch-feature-notifications>h3,
.mdemch-features-item.mdemch-feature-scheduled>p,
.mdemch-features-item.mdemch-feature-auto-draft>p,
.mdemch-features-item.mdemch-feature-notifications>p {
    padding: 20px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.mdemch-features-item.mdemch-feature-scheduled>h3,
.mdemch-features-item.mdemch-feature-auto-draft>h3,
.mdemch-features-item.mdemch-feature-notifications>h3 {
    margin-bottom: 10px;
    padding-bottom: 0;
    padding-top: 20px;
}

/*--------------------------------------
|| Get Pro card styling
--------------------------------------*/

.mdemch-features-item.mdemch-feature-get-pro h3 {
    color: var(--mdemch-accent-color);
    font-weight: 700;
}

/*--------------------------------------
|| PRO BANNER STYLING
--------------------------------------*/

.mdemch-banner {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left: 4px solid var(--mdemch-accent-color);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin: 20px 20px 0 0;
    width: auto;
    padding: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mdemch-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mdemch-banner-icon {
    color: var(--mdemch-accent-color);
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdemch-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mdemch-text-color);
}

.mdemch-banner-link {
    color: var(--mdemch-accent-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.mdemch-banner-link:hover {
    color: var(--mdemch-accent-hover-color);
    text-decoration: underline;
}

.mdemch-banner-dismiss {
    background: none;
    border: none;
    color: #787c82;
    cursor: pointer;
    padding: 5px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.1s ease-in-out;
    border-radius: 4px;
}

.mdemch-banner-dismiss:hover {
    color: #d63638;
    background-color: #f0f0f1;
}

.mdemch-banner-dismiss:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--mdemch-accent-color);
    color: #d63638;
}

.mdemch-banner-dismiss .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/*--------------------------------------
|| Plugins Page Action Links
--------------------------------------*/

.mdemch-plugin-action-link {
    font-weight: 700 !important;
    color: var(--mdemch-accent-color) !important;
    text-decoration: none !important;
}

.mdemch-plugin-action-link:hover {
    color: var(--mdemch-accent-hover-color) !important;
}

/*--------------------------------------
|| HIDE ELEMENTS (USER REQUEST)
--------------------------------------*/
#mdemch-pro-banner {
    display: none !important;
}

.mdemch-ui-nav-item[data-tab="more-features"] {
    display: none !important;
}