/* ================================
    Global Horizontal Layout Fixes
================================ */

/* Prevent horizontal overflow globally */
* {
    box-sizing: border-box;
}

body.toplevel_page_media-wipe,
body.media-wipe_page_media-wipe-delete-all,
body.media-wipe_page_media-wipe-delete-selected,
body.media-wipe_page_media-wipe-settings,
body.media-wipe_page_media-wipe-security,
body.media-wipe_page_media-wipe-help {
    overflow-x: hidden;
}

#wpwrap {
    overflow-x: hidden;
}

/* ================================
    Global Horizontal Layout Fixes End
================================ */

#media-wipe-unused-table img {
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
}

.wrap {
    /* background-color: #f9f9f9; */
    padding: 20px;
}

.widefat th,
.widefat td {
    padding: 10px;
    text-align: left;
}

button {
    margin-top: 10px;
}


/* ================================
    Table CSS Start 
================================ */

/* Target the Media Wipe Plugin Table */
#media-wipe-unused-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

#media-wipe-unused-table th,
#media-wipe-unused-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

/* Table Header */
#media-wipe-unused-table th {
    background-color: #f4f7fa;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

/* Table Rows */
#media-wipe-unused-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#media-wipe-unused-table tr:hover {
    background-color: #f1f5f9;
}

/* Table Column Styling */
#media-wipe-unused-table td img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* Hover effect on image */
#media-wipe-unused-table td img:hover {
    transform: scale(1.1);
}

/* Styling for Buttons */
.media-wipe-btn {
    padding: 10px 40px !important;
    border: 1px solid !important;
    border-radius: 5px !important;
}

#media-wipe-unused-table input[type="submit"].button-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-danger {
    background: #ff2109e3 !important;
    color: #fff !important;
    transition: .3s;
}

.button-danger:hover {
    background: #e74c3c !important;

}

.button-primary:hover {
    background: #3498db !important;
    color: #fff !important;
    transition: .3s;
}

#media-wipe-unused-table input[type="submit"].button-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#media-wipe-unused-table input[type="submit"].button-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    /* Slight lift on hover */
}

#media-wipe-unused-table input[type="submit"].button-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    /* Slight lift on hover */
}

/* Spacing between buttons */
#media-wipe-unused-table input[type="submit"]:not(:last-child) {
    margin-right: 10px;
}

/* Style for the media file name */
#media-wipe-unused-table td {
    font-size: 14px;
    color: #333;
}

/* Add some padding to the table cells */
#media-wipe-unused-table th,
#media-wipe-unused-table td {
    padding: 12px 15px;
}

/* Additional styling for better visual separation */
#media-wipe-unused-table th,
#media-wipe-unused-table td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Table Scroll on Mobile */
@media (max-width: 768px) {
    #media-wipe-unused-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Styling for the page title */
#media-wipe-unused-table .wrap h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* ================================
    Table CSS END 
================================ */


/* ================================
        Selected Media Modal CSS Start
================================ */
#delete-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    display: flex;
    /* Use flexbox to center content */
    align-items: center;
    /* Vertically center */
    justify-content: center;
    /* Horizontally center */
    z-index: 9999;
    /* Ensure it sits on top of other content */
}

#delete-confirmation-modal .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    /* Set a fixed width for the modal */
    text-align: center;
    /* Center text inside the modal */
}

#delete-confirmation-modal button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#delete-confirmation-modal button:hover {
    background-color: #c9302c;
}

/* ================================
    Selected Media Modal CSS End
================================ */

/* ================================
    Enhanced Delete All Media Styles Start
================================ */

/* Stats Card */
.media-wipe-stats-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.media-wipe-stats-card h3 {
    margin: 0 0 15px;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #f6f7f7;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    transition: all 0.15s ease-in-out;
}

.stat-item:hover {
    border-color: #8c8f94;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #3533cd;
    margin: 0 0 4px;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Modern Warning Card */
.media-wipe-warning-card {
    background: linear-gradient(135deg, #fff5cd 0%, #fff8e1 100%);
    border: none;
    border-radius: 16px;
    padding: 25px 30px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.media-wipe-warning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
}

.warning-icon {
    background: rgba(243, 156, 18, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: #f39c12;
}

.warning-content {
    flex: 1;
}

.warning-content h3 {
    margin: 0 0 15px;
    color: #8a6d3b;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.warning-content p {
    margin: 12px 0;
    color: #8a6d3b;
    line-height: 1.6;
    font-size: 15px;
}

.warning-emphasis {
    font-weight: 600;
    color: #d63638 !important;
    margin-top: 15px !important;
    padding: 12px 16px;
    background: rgba(214, 54, 56, 0.1);
    border-radius: 8px;
    border-left: 3px solid #d63638;
}

/* Large Button */
.media-wipe-btn-large {
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
    margin-top: 15px !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.button-danger {
    background: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff !important;
}

.button-danger:hover:not(:disabled) {
    background: #b32d2e !important;
    border-color: #b32d2e !important;
    color: #fff !important;
}

.button-danger:focus {
    border-color: #d63638 !important;
}

/* Enhanced Modal Styles */
.media-wipe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content-large {
    position: relative;
    background: #fff;
    border-radius: 4px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000000;
    border: 1px solid #c3c4c7;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #c3c4c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f7f7;
    border-radius: 4px 4px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.confirmation-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.warning-icon-large {
    font-size: 32px;
    flex-shrink: 0;
}

.warning-text {
    margin: 0;
    color: #721c24;
    font-weight: 500;
    font-size: 16px;
}

.deletion-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.deletion-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-stats span {
    color: #666;
    font-size: 14px;
}

.document-count {
    font-weight: bold;
    color: #d9534f !important;
}

/* Document Preview Section */
.document-preview-section {
    margin-bottom: 20px;
}

.document-preview-section h4 {
    margin-bottom: 15px;
    color: #333;
}

.document-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fafafa;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
}

.document-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.document-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.document-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-type {
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
}

.more-documents {
    background: #f0f0f0 !important;
    border-style: dashed !important;
}

.no-documents {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Confirmation Checklist */
.confirmation-checklist {
    margin-bottom: 20px;
}

.confirmation-checklist h4 {
    margin-bottom: 15px;
    color: #333;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-item span {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Final Confirmation */
.final-confirmation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.final-confirmation label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #856404;
}

.final-confirmation input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffeaa7;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 1px;
}

.final-confirmation input[type="text"]:focus {
    outline: none;
    border-color: #f39c12;
}

.confirmation-help {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #e7f3ff;
    border-radius: 4px;
    font-size: 13px;
    color: #0073aa;
}

.confirmation-help .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Simple Confirmation (when settings are disabled) */
.simple-confirmation {
    margin: 20px 0;
}

.warning-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.warning-message .dashicons {
    color: #dba617;
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.warning-message p {
    margin: 0;
    color: #8a6d3b;
    line-height: 1.5;
}

.simple-confirmation .checkbox-item {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 15px;
    margin: 0;
}

/* Remove Unused Media Styles */
.media-wipe-unused-intro {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.media-wipe-unused-intro h2 {
    margin-top: 0;
    color: #1d2327;
}

.media-wipe-accuracy-notice {
    margin-bottom: 20px;
}

.media-wipe-accuracy-notice .notice {
    padding: 15px;
}

.media-wipe-accuracy-notice h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.media-wipe-scan-config {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    margin-bottom: 20px;
}

.config-card {
    padding: 20px;
}

.config-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
}

.scan-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dcdcde;
}

.scan-actions .button {
    margin-right: 10px;
    padding: 8px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: auto !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: top !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.scan-actions .button-primary {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

.scan-actions .button-primary:hover:not(:disabled) {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}

.scan-actions .dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Modern Progress Styles */
.progress-card-modern {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.progress-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: white;
}

.progress-spinner {
    animation: spin 1.5s linear infinite;
}

.progress-title {
    flex: 1;
}

.progress-title h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.progress-subtitle {
    margin: 0;
    font-size: 14px;
    color: #646970;
    line-height: 1.4;
}

.progress-percentage-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

.progress-bar-modern {
    margin-bottom: 25px;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #f0f0f1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 6px;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-stats-modern {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #667eea;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: #646970;
    line-height: 1.2;
}

/* Results Styles */
.results-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dcdcde;
}

.results-header h3 {
    margin: 0;
    color: #1d2327;
}

.results-summary {
    color: #646970;
    font-size: 14px;
}

.results-controls {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dcdcde;
}

.results-controls .button {
    margin-right: 10px;
    margin-bottom: 5px;
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    height: auto !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: top !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    background: #f6f7f7 !important;
    border-color: #dcdcde !important;
    color: #2c3338 !important;
}

.results-controls .button:hover:not(:disabled) {
    background: #f0f0f1 !important;
    border-color: #8c8f94 !important;
    color: #2c3338 !important;
}

.results-controls .button-primary {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}

.results-controls .button-primary:hover:not(:disabled) {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}

.results-controls .button:disabled {
    background: #f6f7f7 !important;
    border-color: #dcdcde !important;
    color: #a7aaad !important;
    cursor: not-allowed !important;
}

.results-controls .dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Confidence Badge Styles */
.confidence-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-badge.high {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.confidence-badge.medium {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.confidence-badge.low {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
}

/* DataTable Styling for Unused Media - Match Selected Media Table */
#unused-media-datatable {
    font-size: 13px;
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

#unused-media-datatable th,
#unused-media-datatable td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

/* Table Header */
#unused-media-datatable th {
    background-color: #f4f7fa;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

/* Table Rows */
#unused-media-datatable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#unused-media-datatable tr:hover {
    background-color: #f1f5f9;
    cursor: pointer;
}

#unused-media-datatable tbody tr {
    transition: background-color 0.3s ease;
    user-select: none;
}

/* Table Column Styling */
#unused-media-datatable td img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* Hover effect on image */
#unused-media-datatable td img:hover {
    transform: scale(1.1);
}

#unused-media-datatable .unused-file-checkbox {
    margin: 0;
}

#unused-media-datatable .dashicons-media-default {
    font-size: 40px;
    color: #c3c4c7;
}

/* Enhanced row-click functionality for unused media table */
#unused-media-datatable tbody tr {
    cursor: pointer !important;
    transition: all 0.2s ease;
}

/* Visual feedback for clickable rows */
#unused-media-datatable tbody tr:hover {
    background: #f6f7f7 !important;
    transform: none;
    /* Remove any transform effects that might interfere */
}

/* Selected row styling */
#unused-media-datatable tbody tr.selected {
    background: rgba(0, 0, 0, 0.04) !important;
}

#unused-media-datatable tbody tr.selected:hover {
    background: rgba(0, 0, 0, 0.07) !important;
}

/* Action buttons should not inherit row cursor */
#unused-media-datatable tbody tr td .button,
#unused-media-datatable tbody tr td .delete-single,
#unused-media-datatable tbody tr td .view-usage-btn {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Delete Selected Unused button styling - match selected media */
#delete-selected-unused {
    background: #d01314 !important;
    border-color: #d01314 !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
}

#delete-selected-unused:hover {
    background: #b01112 !important;
    border-color: #b01112 !important;
}

#delete-selected-unused .dashicons {
    margin-right: 5px;
}

/* Delete single button styling for unused media */
#unused-media-datatable .delete-single {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

#unused-media-datatable .delete-single:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Modern Scan Configuration Styling */
.media-wipe-scan-config {
    margin: 30px 0;
}

.config-card-modern {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
}

.config-card-modern:hover {
}

.config-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
}

.config-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.config-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: white;
}

.config-title h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.config-subtitle {
    margin: 0;
    font-size: 14px;
    color: #646970;
    line-height: 1.4;
}

/* Simple Safety Options Styling */
.safety-options-simple {
    margin-bottom: 25px;
}

.options-title-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.options-title-simple .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #667eea;
}

.simple-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Simple Checkbox Styling */
.simple-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 8px 0;
    font-size: 14px;
    color: #1d2327;
    transition: color 0.2s ease;
}

.simple-checkbox-label:hover {
    color: #667eea;
}

.simple-checkbox {
    display: none;
}

.simple-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #c3c4c7;
    border-radius: 3px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.simple-checkbox:checked+.simple-checkmark {
    background: #667eea;
    border-color: #667eea;
}

.simple-checkbox:checked+.simple-checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.simple-checkbox-label:hover .simple-checkmark {
    border-color: #667eea;
}

/* Modern Scan Actions Styling */
.scan-actions-modern {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f1;
}

.button-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.button-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.button-primary-modern:hover {
    transform: translateY(-2px);
    color: white;
}

.button-primary-modern:active {
    transform: translateY(0);
}

.button-secondary-modern {
    background: #f6f7f7;
    color: #646970;
    border: 1px solid #dcdcde;
}

.button-secondary-modern:hover {
    background: #f0f0f1;
    color: #1d2327;
    border-color: #8c8f94;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.button-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.button-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.button-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.2;
}

.button-primary-modern .button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* Loading state for scan button */
.button-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.button-modern.loading .button-icon .dashicons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design for Modern Scan Configuration */
@media (max-width: 768px) {
    .config-card-modern {
        padding: 20px;
        margin: 20px 0;
    }

    .config-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .config-icon {
        width: 40px;
        height: 40px;
    }

    .config-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .config-title h3 {
        font-size: 18px;
    }

    .scan-actions-modern {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .button-modern {
        width: 100%;
        justify-content: center;
        min-height: 50px;
        padding: 12px 20px;
    }

    .button-text {
        font-size: 14px;
    }

    .button-subtitle {
        font-size: 11px;
    }

    .simple-checkbox-label {
        font-size: 13px;
        padding: 6px 0;
    }

    .simple-checkmark {
        width: 16px;
        height: 16px;
    }

    /* Mobile Progress Styles */
    .progress-card-modern {
        padding: 20px;
        margin: 20px 0;
    }

    .progress-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .progress-icon {
        width: 40px;
        height: 40px;
    }

    .progress-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .progress-title h3 {
        font-size: 16px;
    }

    .progress-subtitle {
        font-size: 13px;
    }

    .progress-percentage-display {
        font-size: 14px;
        padding: 6px 12px;
    }

    .progress-track {
        height: 10px;
    }

    .progress-stats-modern {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .stat-item {
        justify-content: center;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 11px;
    }
}

/* Table scroll on mobile - match selected media table */
@media (max-width: 768px) {
    #unused-media-datatable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .results-controls .button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .scan-actions .button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Modal Footer */
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #c3c4c7;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #f6f7f7;
    border-radius: 0 0 4px 4px;
}

.modal-footer .button {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.modal-footer .button-secondary {
    background: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.modal-footer .button-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.modal-footer .button-danger {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.modal-footer .button-danger:hover:not(:disabled) {
    background: #c82333;
    border-color: #bd2130;
}

.modal-footer .button-danger:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading State */
.modal-loading {
    position: relative;
}

.modal-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content-large {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .document-preview-grid {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .button {
        width: 100%;
    }
}

/* ================================
    Enhanced Delete All Media Styles End
================================ */

/* ================================
    Modern Dashboard Styles v1.2.1
================================ */

/* Dashboard Page Layout - Constrained Width */
.media-wipe-dashboard-page {
    background: #fff;
    margin: 20px auto;
    padding: 0;
    /* border: 1px solid #c3c4c7; */
    border-radius: 4px;
    max-width: 1400px;
    width: calc(100% - 40px);
}

/* WordPress-Style Hero Section */
.mw-dashboard-hero {
    color: #fff;
    padding: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    display: flex;
    align-items: center;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(90deg, #000, #3533cd);
}

.mw-dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.mw-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mw-hero-icon {
    background: rgba(255, 255, 255, 0.2);
    /*! width: 60px; */
    /*! height: 60px; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.mw-hero-icon .dashicons {
    font-size: 35px !important;
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Hero Text Content */
.mw-hero-text {
    flex: 1;
    min-width: 0;
}

.mw-dashboard-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.mw-hero-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 500px;
}

/* Hero Stats */
.mw-hero-stats {
    display: flex;
    gap: 40px;
    margin: 0;
    flex-shrink: 0;
}

.mw-hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    transition: all 0.3s ease;
}

.mw-hero-stat span {
    color: #fff;
}

.mw-hero-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* General stat styles (for other sections) */
.mw-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 8px;
    line-height: 1;
}

.mw-stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WordPress-Style Dashboard Content */
.mw-dashboard-content {
    padding: 20px;
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-sizing: border-box;
    max-width: 100%;
}

/* WordPress-Style Section Headers */
.mw-dashboard-section {
    margin-bottom: 30px;
}

.mw-section-header {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcde;
}

.mw-section-header h2 {
    font-size: 23px;
    font-weight: 400;
    color: #1d2327;
    margin: 0 0 8px;
    line-height: 1.3;
}

.mw-section-header p {
    font-size: 14px;
    color: #646970;
    margin: 0;
    line-height: 1.4;
}

/* WordPress-Style Action Cards Grid */
.mw-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mw-action-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #c3c4c7;
    position: relative;
    overflow: hidden;
}

.mw-action-card:hover {
    transform: translateY(-3px);
}

.mw-action-card.mw-featured-card {
    background: linear-gradient(130deg, #000 0%, #3533cd 100%);
    color: #fff;
    border: none;
}

.mw-action-card.mw-featured-card:hover {
    transform: translateY(-3px);
}

.mw-card-icon {
    background: #f8f9fa;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.mw-featured-card .mw-card-icon.mw-featured-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.mw-card-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    /* color: #667eea; */
}

.mw-featured-card .mw-card-icon .dashicons {
    color: #fff;
}

.mw-featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.mw-action-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1d2327;
    line-height: 1.3;
}

.mw-featured-card h3 {
    color: #fff;
}

.mw-action-card p {
    color: #646970;
    margin: 0 0 30px;
    line-height: 1.6;
    font-size: 15px;
}

.mw-featured-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Modern Buttons */
.mw-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    min-width: 160px;
}

.mw-btn-primary {
    background: #667eea;
    color: #fff;
}

.mw-btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.mw-featured-card .mw-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.mw-featured-card .mw-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.mw-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.mw-btn-secondary:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    text-decoration: none;
}

.mw-btn-danger {
    background: #dc3545;
    color: #fff;
}

.mw-btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.mw-card-actions {
    margin-bottom: 25px;
}

/* Feature Tags */
.mw-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.mw-feature-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.mw-featured-card .mw-feature-tag {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* WordPress-Style Statistics Grid */
.mw-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.mw-stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.mw-stat-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
}

.mw-stat-card.mw-stat-primary {
    background: linear-gradient(90deg, #000 0%, #3533cd 100%);
    color: #fff;
    border: none;
}

.mw-stat-card.mw-stat-primary:hover {
    transform: translateY(-4px) scale(1.02);
}

.mw-stat-icon {
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-stat-primary .mw-stat-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.mw-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.mw-stat-primary .mw-stat-icon .dashicons {
    color: #fff;
}

.mw-stat-content {
    flex: 1;
}

.mw-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 5px;
    line-height: 1;
}

.mw-hero-stat .mw-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-stat-trend {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3533cd;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mw-stat-primary .mw-stat-trend {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

/* Information Grid */
.mw-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mw-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.mw-info-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
}

.mw-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
}

.mw-info-header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #667eea;
}

.mw-info-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.mw-info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Stat Display Component */
.mw-stat-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.mw-stat-display .mw-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #3533cd;
    margin-bottom: 8px;
    display: block;
}

.mw-stat-display .mw-stat-label {
    font-size: 14px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.mw-stat-display .mw-status-active {
    color: #00a32a;
    font-size: 18px;
    font-weight: 600;
}

.mw-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.mw-info-item:last-child {
    border-bottom: none;
}

.mw-info-label {
    font-weight: 500;
    color: #646970;
    font-size: 14px;
}

.mw-info-value {
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.mw-version-badge {
    background: #667eea;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mw-status-active {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Quick Links */
.mw-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mw-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mw-quick-link:hover {
    background: #667eea;
    color: #fff;
    text-decoration: none;
    transform: translateX(5px);
}

.mw-quick-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Enhanced Safety Notice */
.mw-safety-notice {
    background: linear-gradient(90deg, #000 0%, #3533cd 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.mw-safety-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="safety-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23safety-pattern)"/></svg>');
    opacity: 0.3;
}

.mw-safety-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.mw-safety-header .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.mw-safety-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.mw-safety-content {
    position: relative;
    z-index: 2;
}

.mw-safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mw-safety-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mw-safety-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.mw-safety-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

.mw-safety-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* Desktop Large Screens - Optimal Width */
@media (min-width: 1600px) {
    .media-wipe-dashboard-page {
        max-width: 1600px;
    }
}

@media (min-width: 1920px) {
    .media-wipe-dashboard-page {
        max-width: 1800px;
    }
}

/* WordPress-Style Responsive Design */
@media (max-width: 1200px) {
    .media-wipe-dashboard-page {
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }

    .mw-dashboard-content {
        padding: 15px;
    }

    .mw-action-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .mw-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 782px) {
    .mw-dashboard-hero {
        padding: 15px;
        min-height: auto;
    }

    .mw-hero-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 0;
    }

    .mw-dashboard-hero h1 {
        font-size: 24px;
    }

    .mw-hero-subtitle {
        font-size: 13px;
    }

    .mw-hero-stats {
        gap: 10px;
        flex-wrap: wrap;
    }

    .mw-hero-stat {
        min-width: 60px;
        padding: 8px 12px;
    }

    .mw-dashboard-content {
        padding: 15px;
    }
}



.mw-section-header h2 {
    font-size: 24px;
}

.mw-action-card,
.mw-stat-card,
.mw-info-card {
    padding: 25px;
}

.mw-safety-notice {
    padding: 25px;
}

.mw-safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}


@media (max-width: 600px) {
    .mw-dashboard-hero {
        padding: 15px;
        min-height: auto;
    }

    .mw-hero-content {
        padding: 0;
        gap: 15px;
    }

    .mw-dashboard-hero h1 {
        font-size: 22px;
    }

    .mw-hero-subtitle {
        font-size: 12px;
    }

    .mw-hero-stats {
        gap: 10px;
    }

    .mw-hero-stat {
        min-width: 60px;
        padding: 8px 10px;
    }

    .mw-hero-stat .mw-stat-number {
        font-size: 16px;
    }

    .mw-hero-stat .mw-stat-label {
        font-size: 10px;
    }
}




.mw-stat-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.mw-safety-notice {
    padding: 20px;
}

.mw-safety-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
}


/* ================================
    Quick Navigation Component
================================ */

.mw-quick-nav {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
}

.mw-quick-nav-header {
    text-align: center;
    margin-bottom: 30px;
}

.mw-quick-nav-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 10px;
}

.mw-quick-nav-header p {
    color: #646970;
    margin: 0;
    font-size: 14px;
}

.mw-quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mw-quick-nav-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.mw-quick-nav-item:hover {
    transform: translateY(-4px);
    border-color: #3533cd;
    text-decoration: none;
    color: inherit;
}

.mw-quick-nav-item .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #3533cd;
    margin-bottom: 15px;
}

.mw-quick-nav-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 8px;
}

.mw-quick-nav-item p {
    font-size: 13px;
    color: #646970;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 782px) {
    .mw-quick-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .mw-quick-nav-item {
        padding: 15px;
    }
}

/* ================================
    Reusable Safety Section for All Pages
================================ */

/* Modern Safety Section - Reusable Component */
.mw-page-safety-section {
    margin: 40px 0;
}

.mw-page-safety-notice {
    background: linear-gradient(90deg, #000 0%, #3533cd 100%);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mw-page-safety-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="safety-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23safety-pattern)"/></svg>');
    opacity: 0.3;
}

.mw-page-safety-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.mw-page-safety-header .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.mw-page-safety-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.mw-page-safety-content {
    position: relative;
    z-index: 2;
}

.mw-page-safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mw-page-safety-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mw-page-safety-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.mw-page-safety-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}

.mw-page-safety-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* Collapsible Safety Section */
.mw-page-safety-section.collapsible .mw-page-safety-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mw-page-safety-section.collapsible .mw-page-safety-header:hover {
    transform: translateY(-2px);
}

.mw-page-safety-toggle {
    margin-left: auto;
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #fff;
}

.mw-page-safety-section.collapsed .mw-page-safety-toggle {
    transform: rotate(180deg);
}

.mw-page-safety-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.mw-page-safety-section.collapsed .mw-page-safety-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
}

.mw-page-safety-section:not(.collapsed) .mw-page-safety-content {
    max-height: 1000px;
    opacity: 1;
}

/* Responsive Design for Safety Section */
@media (max-width: 782px) {
    .mw-page-safety-notice {
        padding: 25px;
    }

    .mw-page-safety-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .mw-page-safety-notice {
        padding: 20px;
    }

    .mw-page-safety-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .mw-page-safety-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Welcome Panel - WordPress Admin Style */
.welcome-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.mw-welcome-panel-content {
    padding: 23px 20px 20px;
    position: relative;
}

.welcome-panel h2 {
    margin: 0 0 15px;
    color: #1d2327;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
}

.about-description {
    font-size: 16px;
    color: #50575e;
    margin-bottom: 25px;
    line-height: 1.5;
}

.mw-welcome-panel-column-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.mw-welcome-panel-column {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px;
}

.mw-welcome-panel-column h3 {
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

.mw-welcome-panel-column p {
    color: #50575e;
    font-size: 14px;
    margin: 12px 0 0;
    line-height: 1.5;
}

.mw-welcome-panel-column .button {
    margin: 0 0 12px 0;
    display: inline-block;
}

/* Statistics Section */
.media-wipe-stats-section {
    margin: 25px 0;
}

.media-wipe-stats-section h2 {
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s ease-in-out;
    position: relative;
}

.stat-card:hover {
    border-color: #8c8f94;
}

.stat-icon {
    font-size: 28px;
    flex-shrink: 0;
    opacity: 0.8;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #3533cd;
    line-height: 1.2;
    margin: 0;
}

.stat-label {
    font-size: 11px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2px 0 0;
    font-weight: 500;
}

/* Safety Notice */
.media-wipe-safety-notice {
    margin: 25px 0;
}

.media-wipe-safety-notice .notice {
    padding: 15px 20px;
    border-radius: 4px;
    border-left-width: 4px;
    border-left-style: solid;
}

.media-wipe-safety-notice .notice-warning {
    background: #fcf9e8;
    border-left-color: #dba617;
}

.media-wipe-safety-notice h3 {
    margin: 0 0 10px;
    color: #8a6d3b;
    font-size: 16px;
    font-weight: 600;
}

.media-wipe-safety-notice p {
    margin: 8px 0;
    color: #8a6d3b;
    line-height: 1.5;
}

/* Help Page Styles */
.media-wipe-help-content {
    max-width: 800px;
}

.help-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
}

.help-section h2 {
    margin: 0 0 15px;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #3533cd;
    padding-bottom: 8px;
}

.help-section h3 {
    color: #1d2327;
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 10px;
}

.help-section ol,
.help-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.help-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.help-section dl {
    margin: 15px 0;
}

.help-section dt {
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
}

.help-section dd {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

/* Enhanced Settings Page */
.media-wipe-settings {
    background: #f0f0f1;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.media-wipe-settings-content {
    max-width: 1000px;
    margin: 0 auto;
}

.settings-description {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-description p {
    margin: 0;
    color: #50575e;
    line-height: 1.6;
}

.media-wipe-settings-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

.settings-section {
    border-bottom: 1px solid #f0f0f1;
    padding: 30px;
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h2 {
    margin: 0 0 20px;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    display: inline-block;
}

.form-table {
    margin-top: 0;
}

.form-table th {
    width: 250px;
    padding: 20px 20px 20px 0;
    vertical-align: top;
    color: #1d2327;
    font-weight: 600;
    font-size: 14px;
}

.form-table td {
    padding: 20px 0;
    vertical-align: top;
}

.form-table fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

.form-table label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    color: #1d2327;
    line-height: 1.5;
    cursor: pointer;
}

.form-table input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-table .description {
    margin-top: 8px;
    margin-left: 28px;
    color: #646970;
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
}

.settings-submit {
    background: #f6f7f7;
    padding: 20px 30px;
    border-top: 1px solid #c3c4c7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.settings-submit .button-primary {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
}

.settings-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #646970;
    font-size: 13px;
}

.settings-note .dashicons {
    color: #2271b1;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Settings Visual Feedback */
.form-table tr.setting-active {
    background: #f0f8ff;
    border-left: 3px solid #2271b1;
}

.form-table label.setting-enabled {
    color: #2271b1;
    font-weight: 600;
}

.form-table tr.setting-active td,
.form-table tr.setting-active th {
    background: #f0f8ff;
}

.updating-message {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Settings */
@media (max-width: 782px) {
    .media-wipe-settings {
        margin: 0;
        padding: 15px;
    }

    .settings-section {
        padding: 20px 15px;
    }

    .form-table th {
        width: auto;
        display: block;
        padding: 10px 0 5px;
    }

    .form-table td {
        display: block;
        padding: 5px 0 15px;
    }

    .settings-submit {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* Responsive Design for Dashboard */
@media (max-width: 782px) {
    .mw-welcome-panel-column-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mw-welcome-panel-column {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
        gap: 8px;
    }

    .stat-icon {
        font-size: 24px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mw-welcome-panel-content {
        padding: 15px;
    }

    .welcome-panel h2 {
        font-size: 18px;
    }

    .about-description {
        font-size: 14px;
    }

    .stat-card {
        padding: 15px;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
}

/* Plugin Information Card */
.media-wipe-plugin-info {
    margin: 20px 0;
}

.plugin-info-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

.plugin-info-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plugin-info-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.plugin-info-header h3 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.plugin-info-content {
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: #50575e;
}

.info-value {
    color: #1d2327;
    font-weight: 600;
}

.version-badge {
    background: #00a32a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ================================
    Dashboard Styles End
================================ */

/* ================================
    Enhanced Selected Media Modal Styles Start
================================ */

/* Medium Modal for Selected Media */
.modal-content-medium {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000000;
}

/* Media Title Info in Table */
.media-title-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.media-title {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.media-details {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Media Preview Cell */
.media-preview-cell {
    text-align: center;
    vertical-align: middle;
}

.document-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    min-width: 60px;
}

.document-icon-large {
    font-size: 24px;
    line-height: 1;
}

.document-type-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Selected Files Summary in Modal */
.selected-files-summary {
    margin-bottom: 20px;
}

.selected-files-summary h4 {
    margin-bottom: 15px;
    color: #333;
}

.selected-files-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: #fafafa;
}

.selected-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.selected-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.selected-file-item:hover {
}

.file-preview {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.file-preview.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview.document-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.file-preview .document-preview-item {
    background: transparent;
    border: none;
    padding: 4px;
    min-width: auto;
    gap: 2px;
}

.file-preview .document-icon-large {
    font-size: 20px;
}

.file-preview .document-type-label {
    font-size: 8px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.file-title {
    font-weight: 500;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-details {
    font-size: 11px;
    color: #666;
}

.selection-summary {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.selection-summary p {
    margin: 5px 0;
    font-size: 14px;
}

.document-warning {
    color: #d9534f !important;
    font-weight: 500 !important;
}

.no-files-selected {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Deletion Impact Notice */
.deletion-impact-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.deletion-impact-notice h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #856404;
}

.deletion-impact-notice ul {
    margin: 0;
    padding-left: 20px;
}

.deletion-impact-notice li {
    color: #856404;
    margin-bottom: 5px;
}

/* Document Thumbnail Support */
.document-thumbnail {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.document-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 8px;
    text-align: center;
    padding: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Responsive Design for Selected Media Modal */
@media (max-width: 768px) {
    .modal-content-medium {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .selected-files-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .selected-file-item {
        padding: 10px;
        gap: 10px;
    }

    .file-preview {
        width: 40px;
        height: 40px;
    }
}

/* ================================
    Enhanced Selected Media Modal Styles End
================================ */

/* ================================
    Security Audit Page Styles Start
================================ */

.security-audit-overview {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.audit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.audit-stats .stat-card {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    transition: all 0.15s ease-in-out;
}

.audit-stats .stat-card:hover {
    border-color: #8c8f94;
}

.audit-stats .stat-card h3 {
    margin: 0 0 8px;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
}

.audit-stats .stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #3533cd;
    display: block;
    line-height: 1.2;
}

/* Security Event Styling */
.security-event-nonce_verification_failed,
.security-event-insufficient_permissions,
.security-event-rate_limit_exceeded {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.security-event-invalid_confirmation {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Activity Styling */
.activity-delete_all_success,
.activity-delete_selected_success {
    background: #d1ecf1;
    color: #0c5460;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.activity-delete_all_attempt,
.activity-delete_selected_attempt {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.activity-delete_all_failed,
.activity-delete_selected_failed {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Log Table Styling */
.widefat.striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.widefat details {
    margin: 0;
}

.widefat summary {
    cursor: pointer;
    color: #3533cd;
    font-size: 12px;
}

.widefat summary:hover {
    color: #135e96;
}

.widefat pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    font-size: 11px;
    max-height: 200px;
    overflow-y: auto;
    margin: 5px 0 0 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive Design for Security Audit */
@media (max-width: 768px) {
    .audit-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .widefat {
        font-size: 12px;
    }

    .widefat th,
    .widefat td {
        padding: 8px 4px;
    }
}

/* ================================
    Security Audit Page Styles End
================================ */

/* ================================
    Enhanced UX Styles Start
================================ */

/* Enhanced Notifications */
.enhanced-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    z-index: 1000001;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.enhanced-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.enhanced-notification.success {
    border-left: 4px solid #28a745;
}

.enhanced-notification.error {
    border-left: 4px solid #dc3545;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-text h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.notification-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.notification-progress {
    height: 3px;
    background: #f0f0f0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.enhanced-notification.success .notification-progress {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.enhanced-notification.error .notification-progress {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

/* Progress Indicators */
.deletion-progress {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3533cd, #135e96);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
}

.progress-status {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.progress-details {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Enhanced Button States */
.button .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.button-text {
    vertical-align: middle;
}

/* Enhanced Modal Loading State */
.modal-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001;
    border-radius: 8px;
}

.modal-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3533cd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000002;
}

/* Improved Form Validation Feedback */
.form-field-error {
    border-color: #dc3545 !important;
}

.form-field-success {
    border-color: #28a745 !important;
}

/* Enhanced Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000003;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .enhanced-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .enhanced-notification.show {
        transform: translateY(0);
    }

    .notification-content {
        padding: 15px;
        gap: 10px;
    }

    .deletion-progress {
        padding: 15px;
    }
}

/* ================================
    Enhanced UX Styles End
================================ */

/* ================================
    General WordPress Admin Fixes Start
================================ */

/* Ensure proper WordPress admin styling */
.wrap {
    margin: 10px 0 0 2px;
}

.wrap h1 {
    color: #1d2327;
    font-size: 23px;
    font-weight: 400;
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.3;
}

/* Fix for admin notices */
.notice {
    margin: 5px 0 15px;
    padding: 1px 12px;
}

/* Ensure buttons follow WordPress styling */
.button {
    border-radius: 3px;
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    text-shadow: none;
    vertical-align: top;
    white-space: nowrap;
}

/* Fix table styling */
.widefat {
    border-collapse: collapse;
    width: 100%;
    clear: both;
    margin: 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.widefat th,
.widefat td {
    padding: 8px 10px;
    line-height: 1.3;
    border-bottom: 1px solid #c3c4c7;
}

.widefat th {
    font-weight: 600;
    background: #f6f7f7;
    color: #1d2327;
}

.widefat tbody tr:hover {
    background: #f6f7f7;
}

/* Media table specific styling */
#media-wipe-unused-table {
    margin-top: 15px;
}

#media-wipe-unused-table th:first-child {
    width: 60px;
    text-align: center;
}

#media-wipe-unused-table th:last-child {
    width: 100px;
    text-align: center;
}

#media-wipe-unused-table td:first-child {
    text-align: center;
}

#media-wipe-unused-table td:last-child {
    text-align: center;
}

/* Fix form styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
select,
textarea {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    color: #2c3338;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    padding: 3px 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
    border-color: #3533cd;
    outline: 2px solid transparent;
}

/* ================================
    General WordPress Admin Fixes End
================================ */

/* ================================
    Final Layout Fixes Start
================================ */

/* Ensure all Media Wipe pages have consistent styling */
.media-wipe-page {
    background: #f0f0f1;
    min-height: 100vh;
}

/* Full Screen Layout for All Pages */
.media-wipe-dashboard,
.media-wipe-delete-all,
.media-wipe-delete-selected,
.media-wipe-settings,
.media-wipe-security,
.media-wipe-help {
    width: 100%;
    margin: 0;
    padding: 0;
}

.wrap {
    margin: 0 !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

/* Ensure proper spacing */
.media-wipe-section {
    margin-bottom: 25px;
}

/* Fix button alignment */
.media-wipe-actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Ensure forms display properly */
.media-wipe-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
}

/* Fix any overflow issues */
.media-wipe-content {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure proper text wrapping */
.media-wipe-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix loading states */
.media-wipe-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Ensure proper z-index stacking */
.media-wipe-modal {
    z-index: 999999;
}

.media-wipe-overlay {
    z-index: 999998;
}

/* Final responsive fixes */
@media (max-width: 600px) {

    .media-wipe-dashboard,
    .media-wipe-delete-all,
    .media-wipe-delete-selected,
    .media-wipe-settings,
    .media-wipe-security,
    .media-wipe-help {
        padding: 0;
        margin: 0;
    }

    .media-wipe-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .media-wipe-actions .button {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
}

/* ================================
    Horizontal Layout Fixes Start
================================ */

/* Prevent horizontal overflow on all Media Wipe pages */
.media-wipe-dashboard-page {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

.media-wipe-delete-all,
.media-wipe-delete-selected,
.media-wipe-settings,
.media-wipe-security,
.media-wipe-help {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Ensure all containers respect viewport width */
.mw-dashboard-content,
.media-wipe-settings-content,
.mw-help-content {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Fix grid layouts to prevent overflow */
.mw-action-cards,
.mw-stats-grid,
.mw-info-grid,
.mw-safety-grid,
.mw-page-safety-grid {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure tables are responsive */
.widefat,
#media-wipe-unused-table,
#media-datatable {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix modal positioning */
.media-wipe-modal,
.modal-content-large {
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

/* ================================
    Horizontal Layout Fixes End
================================ */

/* ================================
    Modern Delete All Modal Styles
================================ */

/* Modal Overlay */
.mw-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.mw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.mw-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.mw-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f0f0f1;
}

.mw-modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.mw-modal-icon .dashicons {
    font-size: 28px;
    color: #fff;
    width: 28px;
    height: 28px;
}

.mw-modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
    line-height: 1.3;
}

.mw-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #646970;
}

.mw-modal-close:hover {
    background: #f6f7f7;
    color: #1d2327;
}

.mw-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Modal Body */
.mw-modal-body {
    padding: 24px;
}

.mw-warning-content {
    text-align: center;
    margin-bottom: 24px;
}

.mw-warning-content p {
    font-size: 16px;
    color: #1d2327;
    margin: 0 0 8px;
    line-height: 1.5;
}

.mw-warning-note {
    font-size: 14px !important;
    color: #d63638 !important;
    font-weight: 500;
}

/* Media Breakdown */
.mw-media-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mw-breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.mw-file-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mw-file-count {
    font-weight: 600;
    color: #d63638;
    min-width: 30px;
}

.mw-file-type {
    font-size: 13px;
    color: #646970;
}

/* Confirmation Checkbox */
.mw-confirmation {
    margin-bottom: 8px;
}

.mw-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mw-checkbox-label:hover {
    background: #fff3c4;
    border-color: #ff9800;
}

.mw-checkbox-label input[type="checkbox"] {
    display: none;
}

.mw-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ffc107;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mw-checkbox-label input[type="checkbox"]:checked+.mw-checkmark {
    background: #ffc107;
    border-color: #ffc107;
}

.mw-checkbox-label input[type="checkbox"]:checked+.mw-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mw-checkbox-text {
    font-size: 14px;
    color: #1d2327;
    font-weight: 500;
    line-height: 1.4;
}

/* Modal Footer */
.mw-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f1;
}

.mw-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.mw-btn-secondary {
    background: #f6f7f7;
    color: #646970;
    border: 1px solid #dcdcde;
}

.mw-btn-secondary:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.mw-btn-danger {
    background: linear-gradient(135deg, #d63638, #b32d2e);
    color: #fff;
}

.mw-btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #b32d2e, #8a2424);
    transform: translateY(-1px);
}

.mw-btn-danger:disabled {
    background: #c3c4c7;
    color: #a7aaad;
    cursor: not-allowed;
    box-shadow: none;
}

.mw-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .mw-modal-content {
        margin: 20px;
        max-width: none;
        border-radius: 8px;
    }

    .mw-modal-header,
    .mw-modal-body {
        padding: 20px;
    }

    .mw-modal-footer {
        padding: 16px 20px 20px;
        flex-direction: column;
    }

    .mw-btn {
        width: 100%;
        justify-content: center;
    }

    .mw-media-breakdown {
        grid-template-columns: 1fr;
    }
}

/* ================================
    Modern Delete All Modal Styles End
================================ */

/* ================================
    Modern Settings Page Styles
================================ */

.mw-settings-container {
    max-width: 800px;
    margin: 20px 0;
}

.mw-settings-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

.mw-settings-grid {
    padding: 24px;
    display: grid;
    gap: 20px;
}

.mw-settings-single {
    padding: 24px;
}

.mw-setting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mw-setting-card:hover {
    background: #f5f5f5;
    border-color: #2271b1;
}

.mw-setting-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.mw-setting-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-setting-icon .dashicons {
    font-size: 20px;
    color: #fff;
    width: 20px;
    height: 20px;
}

.mw-setting-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 4px;
    line-height: 1.3;
}

.mw-setting-title p {
    font-size: 14px;
    color: #646970;
    margin: 0;
    line-height: 1.4;
}

.mw-setting-control {
    flex-shrink: 0;
}

/* Modern Toggle Switch */
.mw-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.mw-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.mw-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.mw-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mw-toggle input:checked+.mw-toggle-slider {
    background: linear-gradient(135deg, #2271b1, #135e96);
}

.mw-toggle input:checked+.mw-toggle-slider:before {
    transform: translateX(26px);
}

.mw-toggle:hover .mw-toggle-slider {
}

/* Settings Footer */
.mw-settings-footer {
    padding: 20px 24px;
    background: #f6f7f7;
    border-top: 1px solid #dcdcde;
    text-align: right;
}

.mw-save-btn {
    background: linear-gradient(135deg, #2271b1, #135e96) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.mw-save-btn:hover {
    background: linear-gradient(135deg, #135e96, #0f4c75) !important;
    transform: translateY(-1px) !important;
}

.mw-save-btn:active {
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    .mw-settings-container {
        margin: 10px 0;
    }

    .mw-settings-grid,
    .mw-settings-single {
        padding: 16px;
        gap: 16px;
    }

    .mw-setting-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .mw-setting-header {
        width: 100%;
    }

    .mw-setting-control {
        align-self: flex-end;
    }

    .mw-settings-footer {
        padding: 16px;
        text-align: center;
    }

    .mw-save-btn {
        width: 100% !important;
    }
}

/* ================================
    Modern Settings Page Styles End
================================ */

/* ================================
    Deletion History Logging Settings
================================ */

.mw-logging-settings {
    margin-bottom: 30px;
}

.mw-logging-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mw-logging-card:hover {
    border-color: #2271b1;
}

.mw-logging-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.mw-logging-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-logging-icon .dashicons {
    font-size: 20px;
    color: #fff;
    width: 20px;
    height: 20px;
}

.mw-logging-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 4px;
    line-height: 1.3;
}

.mw-logging-title p {
    font-size: 14px;
    color: #646970;
    margin: 0;
    line-height: 1.4;
}

.mw-logging-control {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.mw-save-logging-btn {
    background: linear-gradient(135deg, #2271b1, #135e96) !important;
    border: none !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    font-size: 13px !important;
    height: auto !important;
}

.mw-save-logging-btn:hover {
    background: linear-gradient(135deg, #135e96, #0f4c75) !important;
    transform: translateY(-1px) !important;
}

/* Responsive Design for Logging Settings */
@media (max-width: 600px) {
    .mw-logging-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .mw-logging-header {
        width: 100%;
    }

    .mw-logging-control {
        align-self: flex-end;
        width: 100%;
        justify-content: space-between;
    }

    .mw-save-logging-btn {
        width: auto !important;
    }
}

/* ================================
    Deletion History Logging Settings End
================================ */

/* ================================
    No Results Found Message
================================ */

.no-results-found {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 20px 0;
    border: 2px dashed #28a745;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.no-results-icon .dashicons {
    font-size: 32px;
    color: #fff;
    width: 32px;
    height: 32px;
}

.no-results-found h3 {
    font-size: 24px;
    font-weight: 600;
    color: #28a745;
    margin: 0 0 12px;
    line-height: 1.3;
}

.no-results-found p {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 32px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-actions {
    margin-top: 24px;
}

#scan-again-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#scan-again-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
    transform: translateY(-2px) !important;
}

#scan-again-btn:active {
    transform: translateY(0) !important;
}

#scan-again-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive Design for No Results */
@media (max-width: 600px) {
    .no-results-found {
        padding: 40px 20px;
        margin: 15px 0;
    }

    .no-results-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .no-results-icon .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .no-results-found h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .no-results-found p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    #scan-again-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* ================================
    No Results Found Message End
================================ */

/* ================================
    Deletion History Page Styles
================================ */

.mw-deletion-history-overview {
    margin-bottom: 30px;
}

.mw-history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mw-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mw-stat-card:hover {
    border-color: #2271b1;
    transform: translateY(-1px);
}

.mw-stat-icon {
    width: 48px;
    height: 48px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-stat-icon .dashicons {
    font-size: 20px;
    color: #fff;
    width: 20px;
    height: 20px;
}

.mw-stat-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simple-checkbox {
    visibility: hidden;
}

.mw-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}

.mw-history-actions {
    text-align: right;
}

.mw-clear-logs-btn {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mw-clear-logs-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    transform: translateY(-1px) !important;
}

.mw-clear-logs-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* History Table Styles */
.mw-history-table-container {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.mw-history-table-container h2 {
    margin: 0;
    padding: 20px 24px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.mw-history-table-container .datatable-container {
    padding: 20px;
}

/* DataTable specific fixes for deletion history */
#deletion-history-datatable {
    width: 100% !important;
    border-collapse: collapse;
}

#deletion-history-datatable thead th {
    background: #f6f7f7;
    border-bottom: 2px solid #dcdcde;
    padding: 12px 8px;
    font-weight: 600;
    color: #1d2327;
    text-align: left;
}

#deletion-history-datatable tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

#deletion-history-datatable tbody tr:hover {
    background: #f6f7f7;
}

/* DataTable wrapper fixes */
.mw-history-table-container .dataTables_wrapper {
    margin: 0;
}

.mw-history-table-container .dataTables_filter {
    margin-bottom: 15px;
}

.mw-history-table-container .dataTables_filter input {
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 6px 10px;
    margin-left: 8px;
}

.mw-history-table-container .dataTables_length select {
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 8px;
}

.mw-history-table-container .dataTables_info {
    color: #646970;
    font-size: 13px;
}

.mw-history-table-container .dataTables_paginate {
    margin-top: 15px;
}

.mw-history-table-container .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #2271b1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mw-history-table-container .dataTables_paginate .paginate_button:hover {
    background: #f6f7f7;
    border-color: #2271b1;
}

.mw-history-table-container .dataTables_paginate .paginate_button.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.mw-log-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-log-security {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.mw-log-activity {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.mw-log-type .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mw-timestamp {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mw-timestamp strong {
    color: #1d2327;
    font-size: 14px;
}

.mw-timestamp small {
    color: #646970;
    font-size: 12px;
}

.mw-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1d2327;
}

.mw-user-info .dashicons {
    color: #646970;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mw-action-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.mw-action-delete_all,
.mw-action-delete_selected,
.mw-action-delete_unused {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mw-action-scan_unused {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mw-action-login_attempt,
.mw-action-permission_check {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.mw-ip-address {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
    border: 1px solid #e9ecef;
}

/* View details button removed - simplified table */

/* No Logs Message */
.mw-no-logs {
    text-align: center;
    padding: 60px 40px;
    color: #646970;
}

.mw-no-logs-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6c757d, #495057);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    opacity: 0.7;
}

.mw-no-logs-icon .dashicons {
    font-size: 32px;
    color: #fff;
    width: 32px;
    height: 32px;
}

.mw-no-logs h3 {
    font-size: 20px;
    font-weight: 600;
    color: #646970;
    margin: 0 0 12px;
}

.mw-no-logs p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
    Deletion History Page Styles End
================================ */

/* Modal styles removed - simplified table without details */

/* ================================
    Final Layout Fixes End
================================ */

/* ================================
    DataTable Component Styles Start
================================ */

/* Full Screen DataTable Container */
.media-wipe-full-screen {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #f0f0f1;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (max-width: 782px) {
    .media-wipe-full-screen {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
    }
}

.page-description {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.page-description h2 {
    margin: 0 0 10px;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
}

.page-description p {
    margin: 8px 0;
    color: #50575e;
    line-height: 1.5;
}

.safety-notice {
    background: #fcf9e8;
    border: 1px solid #dba617;
    border-left-width: 4px;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.safety-notice h3 {
    margin: 0 0 8px;
    color: #8a6d3b;
    font-size: 16px;
    font-weight: 600;
}

.safety-notice p {
    margin: 0;
    color: #8a6d3b;
    line-height: 1.5;
}

.datatable-container {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.mw-history-table-container .datatable-container {
    border: 0 !important;
}

.datatable-header {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.datatable-header h3 {
    margin: 0;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
}

.datatable-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Professional DataTable Styling */
.dataTables_wrapper {
    width: 100%;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_length label,
.dataTables_filter label {
    font-weight: 600;
    color: #1d2327;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 6px 8px;
    margin-left: 8px;
}

.datatable-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #c3c4c7;
    flex-wrap: wrap;
    gap: 15px;
}

.datatable-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #c3c4c7;
    flex-wrap: wrap;
    gap: 15px;
}

/* DataTable Controls */
.datatable-controls {
    padding: 15px 20px;
    background: #f6f7f7;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.datatable-search {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.datatable-search input[type="text"] {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
}

.datatable-search .search-loading {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.datatable-search .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3533cd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.datatable-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.datatable-filters select,
.datatable-filters input[type="date"] {
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 13px;
}

/* Bulk Actions */
.datatable-bulk-actions {
    padding: 10px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #c3c4c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bulk-selection {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bulk-selection label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.button-link {
    background: none;
    border: none;
    color: #3533cd;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.button-link:hover {
    color: #135e96;
}

.selected-count {
    font-size: 13px;
    color: #646970;
}

/* Professional DataTable Styling */
#media-datatable {
    width: 100% !important;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    clear: both;
}

#media-datatable thead th {
    background: #f6f7f7 !important;
    padding: 15px 12px !important;
    text-align: left;
    font-weight: 600;
    color: #1d2327 !important;
    border-bottom: 2px solid #c3c4c7 !important;
    white-space: nowrap;
    font-size: 13px;
    position: relative;
}

#media-datatable tbody td {
    padding: 12px !important;
    border-bottom: 1px solid #dcdcde !important;
    vertical-align: middle;
    font-size: 13px;
}

#media-datatable tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    /* Prevent text selection when clicking rows */
}

#media-datatable tbody tr:hover {
    background: #f6f7f7 !important;
}

#media-datatable tbody tr:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
    background: #f6f7f7 !important;
}

#media-datatable tbody tr.selected {
    background: rgba(0, 0, 0, 0.04) !important;
    transform: none;
}

#media-datatable tbody tr.selected:hover {
    background: rgba(0, 0, 0, 0.07) !important;
}

/* Action buttons should not inherit row cursor */
#media-datatable tbody tr td .button,
#media-datatable tbody tr td .delete-single {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Visual hint for clickable rows */
/* #media-datatable tbody tr:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background-color 0.2s ease;
} */

#media-datatable tbody tr:hover:before {
    background: #2271b1;
}

#media-datatable tbody tr.selected:before {
    background: #2271b1;
}

/* WordPress Native List Table Styling for Media Wipe */
#media-list-table {
    width: 100%;
    clear: both;
}

/* Enhanced row click functionality for WordPress list table */
#media-list-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    /* Prevent text selection when clicking rows */
}

#media-list-table tbody tr:hover {
    background: #f6f7f7 !important;
}

#media-list-table tbody tr:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
    background: #f6f7f7 !important;
}

#media-list-table tbody tr.selected {
    background: rgba(0, 0, 0, 0.04) !important;
}

#media-list-table tbody tr.selected:hover {
    background: rgba(0, 0, 0, 0.07) !important;
}

/* Visual hint for clickable rows - removed blue accent bar for cleaner look */

/* Action buttons and links should not inherit row cursor */
#media-list-table tbody tr .button,
#media-list-table tbody tr .delete-single,
#media-list-table tbody tr .submitdelete,
#media-list-table tbody tr .row-actions a {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Compact table styling */
#delete-selected-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 6px 25px;
}

#delete-selected-btn span {
    margin-right: 5px;
}

#delete-selected-btn {
    background: #d01314;
    border: 0;
    color: #fff;
}

#media-list-table .column-title {
    padding: 8px 10px !important;
}

#media-list-table .filename {
    margin: 2px 0 !important;
    font-size: 12px;
}

#media-list-table .row-actions {
    margin-top: 4px;
}

/* Compact media icon styling */
#media-list-table .media-icon img {
    max-width: 40px;
    max-height: 40px;
    border-radius: 3px;
    border: 1px solid #dcdcde;
}

#media-list-table .media-icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f7;
    border-radius: 3px;
    border: 1px solid #dcdcde;
}

#media-list-table .file-icon {
    font-size: 18px;
    color: #646970;
}

/* File size styling in date column */
#media-list-table .file-size {
    font-size: 12px;
    color: #646970;
}

/* Control buttons styling in top navigation */
#media-list-table+.tablenav .alignleft.actions {
    margin-bottom: 10px;
}

#media-list-table+.tablenav .alignleft.actions .button {
    margin-right: 8px;
}

#media-list-table+.tablenav .alignleft.actions .button:last-child {
    margin-right: 0;
}

/* Simplified title column without row actions */
#media-list-table .column-title strong {
    font-weight: 600;
    color: #1d2327;
}

/* Responsive adjustments for WordPress list table */
@media screen and (max-width: 782px) {

    #media-list-table .media-icon img,
    #media-list-table .media-icon-container {
        width: 30px;
        height: 30px;
        max-width: 30px;
        max-height: 30px;
    }

    #media-list-table .file-icon {
        font-size: 14px;
    }

    #media-list-table td,
    #media-list-table th {
        padding: 6px 8px !important;
    }
}

/* Ensure table cells are positioned relative for the pseudo-element */
#media-datatable tbody tr {
    position: relative;
}

/* Selection tip styling */
.selection-tip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    font-size: 13px;
    color: #0073aa;
}

.selection-tip .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.selection-tip strong {
    color: #005177;
}

/* Checkbox styling */
.media-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* File type badge styling */
.file-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #646970;
}

/* Media thumbnail styling */
.media-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    display: block;
}

/* Document preview styling */
.document-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.file-icon {
    font-size: 32px;
}

/* DataTable Controls */
.dataTables_info {
    color: #646970 !important;
    font-size: 13px;
}

.dataTables_paginate {
    margin-top: 0 !important;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin-left: 2px !important;
    border: 1px solid #c3c4c7 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #3533cd !important;
    text-decoration: none !important;
    font-size: 13px !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #f6f7f7 !important;
    border-color: #8c8f94 !important;
}

.dataTables_paginate .paginate_button.current {
    background: #3533cd !important;
    color: #fff !important;
    border-color: #3533cd !important;
}

.dataTables_paginate .paginate_button.disabled {
    color: #8c8f94 !important;
    cursor: not-allowed !important;
}

.dataTables_paginate .paginate_button.disabled:hover {
    background: #fff !important;
    border-color: #c3c4c7 !important;
}

.check-column {
    width: 40px;
    text-align: center;
}

.media-title {
    font-weight: 600;
    color: #1d2327;
}

.media-details {
    font-size: 12px;
    color: #646970;
    margin-top: 2px;
}

.file-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.file-type-badge.jpg,
.file-type-badge.jpeg,
.file-type-badge.png,
.file-type-badge.gif,
.file-type-badge.webp {
    background: #00a32a;
}

.file-type-badge.pdf,
.file-type-badge.doc,
.file-type-badge.docx {
    background: #d63638;
}

.file-type-badge.mp4,
.file-type-badge.avi,
.file-type-badge.mov {
    background: #3533cd;
}

.file-type-badge.mp3,
.file-type-badge.wav {
    background: #dba617;
}

.media-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    display: block;
}

.document-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.file-icon {
    font-size: 32px;
}

.file-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #646970;
}

.file-type-badge.jpg,
.file-type-badge.jpeg,
.file-type-badge.png,
.file-type-badge.gif,
.file-type-badge.webp {
    background: #00a32a;
}

.file-type-badge.pdf {
    background: #d63638;
}

.file-type-badge.doc,
.file-type-badge.docx {
    background: #3533cd;
}

.file-type-badge.mp4,
.file-type-badge.avi,
.file-type-badge.mov {
    background: #8b5cf6;
}

.file-type-badge.mp3,
.file-type-badge.wav {
    background: #dba617;
}

.no-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
}

.no-preview .dashicons {
    color: #8c8f94;
    font-size: 20px;
}

/* Loading States */
.datatable-loading {
    padding: 20px;
}

.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-row {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
}

.skeleton-cell {
    background: #f0f0f1;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-checkbox {
    width: 16px;
    height: 16px;
}

.skeleton-title {
    flex: 2;
    height: 16px;
}

.skeleton-type {
    width: 60px;
    height: 16px;
}

.skeleton-size {
    width: 80px;
    height: 16px;
}

.skeleton-date {
    width: 100px;
    height: 16px;
}

.skeleton-preview {
    width: 50px;
    height: 50px;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.dataTables_wrapper .dataTables_length select {
    padding-right: 15px !important;
}

/* ========================================
   MODERN HELP & SUPPORT PAGE STYLES
   ======================================== */

/* Help Page Container */
.media-wipe-help-page {
    background: #f0f0f1;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.mw-hero-section {
    background: linear-gradient(90deg, #000 0%, #3533cd 100%);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mw-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.mw-hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 20px auto;
}

.mw-hero-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.mw-hero-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mw-hero-section h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
}

.mw-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Quick Navigation */
.mw-quick-nav {
    background: #fff;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 32px;
    z-index: 100;
}

.mw-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    color: #50575e;
    font-weight: 500;
}

.mw-nav-item:hover {
    background: #f6f7f7;
    color: #3533cd;
    transform: translateY(-2px);
}

.mw-nav-item.active {
    background: #f6f7f7;
    color: #3533cd;
    border-bottom-color: #3533cd;
}

.mw-nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Content Container */
.mw-help-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Styling */
.mw-help-section {
    padding: 40px;
}

.mw-help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    /* background: linear-gradient(to bottom, #3533cd, #135e96); */
}

.mw-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mw-section-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #3533cd;
    margin-bottom: 15px;
}

.mw-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 15px 0 15px;
}

.mw-section-header p {
    font-size: 16px;
    color: #646970;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Cards */
.mw-feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mw-feature-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.mw-feature-card:hover {
    transform: translateY(-5px);
    border-color: #3533cd;
}

.mw-card-icon {
    background: #3533cd;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mw-card-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.mw-feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1d2327;
}

.mw-feature-card p {
    color: #646970;
    margin: 0 0 20px;
    line-height: 1.6;
}

/* Steps */
.mw-steps {
    margin-top: 20px;
}

.mw-step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.mw-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mw-step-number {
    background: #3533cd;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

/* Features Grid */
.mw-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mw-feature-item {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.mw-feature-item:hover {
    transform: translateY(-5px);
}

.mw-feature-item .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #3533cd;
    margin-bottom: 15px;
}

.mw-feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1d2327;
}

.mw-feature-item p {
    color: #646970;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

/* Safety Alert */
.mw-safety-alert {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.mw-alert-icon {
    background: #dba617;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-alert-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.mw-alert-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #8a6d3b;
}

.mw-alert-content p {
    color: #8a6d3b;
    margin: 0;
    line-height: 1.5;
}

/* Safety Checklist */
.mw-safety-checklist h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1d2327;
}

.mw-checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mw-checklist-item:hover {
    background: #e7f3ff;
}

.mw-checklist-item .dashicons {
    color: #00a32a;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mw-checklist-item p {
    margin: 0;
    color: #1d2327;
    line-height: 1.5;
}

/* FAQ Container */
.mw-faq-container {
    margin-top: 30px;
}

.mw-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mw-faq-item:hover {
    border-color: #3533cd;
}

.mw-faq-item.active {
    border-color: #3533cd;
}

.mw-faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.mw-faq-question:hover {
    background: #f0f0f1;
}

.mw-faq-item.active .mw-faq-question {
    background: #e7f3ff;
}

.mw-faq-question .dashicons {
    color: #3533cd;
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.mw-faq-item.active .mw-faq-question .dashicons {
    transform: rotate(45deg);
}

.mw-faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.mw-faq-answer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.mw-faq-answer p {
    margin: 0;
    color: #646970;
    line-height: 1.6;
}

/* Support Options */
.mw-support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.mw-support-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.mw-support-card:hover {
    transform: translateY(-5px);
    border-color: #3533cd;
}

.mw-support-icon {
    background: #3533cd;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mw-support-icon .dashicons {
    font-size: 35px;
    width: 35px;
    height: 35px;
}

.mw-support-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1d2327;
}

.mw-support-card p {
    color: #646970;
    margin: 0 0 25px;
    line-height: 1.6;
}

.mw-button {
    display: inline-block;
    background: #3533cd;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mw-button:hover {
    background: #135e96;
    color: #fff;
    transform: translateY(-2px);
}

/* Plugin Info */
.mw-plugin-info {
    background: #f6f7f7;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.mw-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.mw-info-item:last-child {
    margin-bottom: 0;
}

.mw-info-item .dashicons {
    color: #3533cd;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mw-info-item a {
    color: #3533cd;
    text-decoration: none;
}

.mw-info-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .mw-help-content {
        padding: 30px 15px;
    }

    .mw-help-section {
        padding: 30px 20px;
    }
}

@media (max-width: 782px) {
    .media-wipe-help-page {
        margin: 0;
    }

    .mw-hero-section {
        padding: 40px 20px;
    }

    .mw-hero-section h1 {
        font-size: 28px;
    }

    .mw-hero-subtitle {
        font-size: 16px;
    }

    .mw-quick-nav {
        flex-direction: column;
        position: static;
    }

    .mw-nav-item {
        padding: 15px 20px;
        justify-content: center;
    }

    .mw-help-content {
        padding: 20px 10px;
    }

    .mw-help-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .mw-section-header h2 {
        font-size: 24px;
    }

    .mw-feature-cards,
    .mw-features-grid,
    .mw-support-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mw-safety-alert {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mw-hero-icon .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
        padding: 15px;
    }

    .mw-hero-section h1 {
        font-size: 24px;
    }

    .mw-feature-card,
    .mw-support-card {
        padding: 20px;
    }
}

/* Pagination */
.datatable-pagination {
    padding: 15px 20px;
    background: #f6f7f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 13px;
    color: #646970;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-controls .button {
    padding: 4px 8px;
    font-size: 12px;
    min-height: auto;
    line-height: 1.4;
}

.page-numbers {
    display: flex;
    gap: 2px;
    margin: 0 10px;
}

.page-number {
    padding: 4px 8px;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #3533cd;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    min-width: 28px;
    text-align: center;
}

.page-number:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
}

.page-number.current {
    background: #3533cd;
    color: #fff;
    border-color: #3533cd;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.per-page-selector label {
    color: #646970;
}

.per-page-selector select {
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
}

/* Action Buttons */
.datatable-actions {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #c3c4c7;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.datatable-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-info {
    margin-left: auto;
    font-size: 13px;
    color: #646970;
}

/* No Items State */
.no-items {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
    font-style: italic;
}

/* ================================
    DataTable Component Styles End
================================ */

/* ================================
    Enhanced Notification System Start
================================ */

/* Notification Containers */
.media-wipe-notifications-container {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
    pointer-events: none;
}

.media-wipe-progress-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999998;
    max-width: 500px;
    width: 90%;
}

/* Modern Toast Notifications */
.toast-notification {
    background: #fff;
    border: none;
    border-radius: 16px;
    margin-bottom: 15px;
    padding: 20px 25px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    max-width: 100%;
    backdrop-filter: blur(10px);
}

.toast-notification:hover {
    transform: translateY(-2px);
}

.toast-notification.toast-success {
    background: linear-gradient(135deg, #f0fff4 0%, #f7fcf0 100%);
}

.toast-notification.toast-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00a32a 0%, #28a745 100%);
}

.toast-notification.toast-warning {
    background: linear-gradient(135deg, #fff5cd 0%, #fcf9e8 100%);
}

.toast-notification.toast-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dba617 0%, #f39c12 100%);
}

.toast-notification.toast-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fcf0f1 100%);
}

.toast-notification.toast-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d63638 0%, #dc3545 100%);
}

.toast-notification.toast-info {
    background: linear-gradient(135deg, #f0f6fc 0%, #e3f2fd 100%);
}

.toast-notification.toast-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3533cd 0%, #667eea 100%);
}

.toast-icon {
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.toast-success .toast-icon {
    background: rgba(0, 163, 42, 0.1);
    color: #00a32a;
}

.toast-warning .toast-icon {
    background: rgba(219, 166, 23, 0.1);
    color: #dba617;
}

.toast-error .toast-icon {
    background: rgba(214, 54, 56, 0.1);
    color: #d63638;
}

.toast-info .toast-icon {
    background: rgba(53, 51, 205, 0.1);
    color: #3533cd;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.3;
}

.toast-message {
    color: #50575e;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #8c8f94;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #1d2327;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.toast-close .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Toast Progress Bar */
.toast-progress {
    margin-top: 8px;
    background: #f0f0f1;
    border-radius: 2px;
    height: 4px;
    overflow: hidden;
    position: relative;
}

.toast-progress-bar {
    height: 100%;
    background: #3533cd;
    transition: width 0.3s ease;
}

.toast-progress-text {
    font-size: 11px;
    color: #646970;
    margin-top: 4px;
    text-align: right;
}

/* Toast Actions */
.toast-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.toast-action {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #3533cd;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}

.toast-action:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
}

/* Toast Timer */
.toast-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toast-timer-bar {
    height: 100%;
    background: #3533cd;
    width: 100%;
    animation: toast-timer-countdown linear;
    transform-origin: left;
}

@keyframes toast-timer-countdown {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Progress Notifications */
.progress-notification {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    pointer-events: auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-weight: 600;
    color: #1d2327;
    font-size: 16px;
}

.progress-cancel {
    background: none;
    border: 1px solid #c3c4c7;
    color: #646970;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.progress-cancel:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
}

.progress-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3533cd;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-percentage {
    font-size: 12px;
    color: #646970;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

.progress-step {
    font-size: 13px;
    color: #50575e;
}

.progress-time {
    font-size: 12px;
    color: #646970;
}

/* Modern Dismissible Notices */
.media-wipe-notice {
    background: #fff;
    border: none;
    border-radius: 16px;
    margin: 20px 0;
    padding: 25px 30px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-wipe-notice:hover {
    transform: translateY(-2px);
}

.media-wipe-notice.notice-success {
    background: linear-gradient(135deg, #f0fff4 0%, #f7fcf0 100%);
}

.media-wipe-notice.notice-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00a32a 0%, #28a745 100%);
}

.media-wipe-notice.notice-warning {
    background: linear-gradient(135deg, #fff5cd 0%, #fcf9e8 100%);
}

.media-wipe-notice.notice-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dba617 0%, #f39c12 100%);
}

.media-wipe-notice.notice-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fcf0f1 100%);
}

.media-wipe-notice.notice-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d63638 0%, #dc3545 100%);
}

.media-wipe-notice.notice-info {
    background: linear-gradient(135deg, #f0f6fc 0%, #e3f2fd 100%);
}

.media-wipe-notice.notice-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3533cd 0%, #667eea 100%);
}

.notice-icon {
    background: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.notice-success .notice-icon {
    background: rgba(0, 163, 42, 0.1);
    color: #00a32a;
}

.notice-warning .notice-icon {
    background: rgba(219, 166, 23, 0.1);
    color: #dba617;
}

.notice-error .notice-icon {
    background: rgba(214, 54, 56, 0.1);
    color: #d63638;
}

.notice-info .notice-icon {
    background: rgba(53, 51, 205, 0.1);
    color: #3533cd;
}

.notice-content {
    flex: 1;
    min-width: 0;
}

.notice-title {
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.notice-message {
    color: #50575e;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.notice-message p {
    margin: 8px 0;
}

.notice-message p:first-child {
    margin-top: 0;
}

.notice-message p:last-child {
    margin-bottom: 0;
}

.notice-dismiss {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #8c8f94;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    line-height: 1;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-dismiss:hover {
    color: #1d2327;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.notice-dismiss .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 782px) {
    .media-wipe-notifications-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .media-wipe-progress-container {
        left: 10px;
        right: 10px;
        transform: translateY(-50%);
        max-width: none;
        width: auto;
    }

    .toast-notification {
        padding: 12px;
    }

    .progress-notification {
        padding: 15px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Animation Classes */
.notification-enter {
    transform: translateX(100%);
    opacity: 0;
}

.notification-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.notification-exit {
    transform: translateX(0);
    opacity: 1;
}

.notification-exit-active {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

/* ================================
    Enhanced Notification System End
================================ */

/* ================================
    Featured Elements CSS Start
================================ */

/* Featured Card Styling */
.mw-featured-card {
    position: relative;
    border: 1px solid #c3c4c7 !important;
}

.mw-featured-card .mw-card-icon.mw-featured-icon {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
}

.mw-featured-badge {
    position: absolute;
    /* top: -8px; */
    right: 15px;
    background: linear-gradient(135deg, #d63638, #b32d2e);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Feature Items */
.mw-featured-feature {
    background: linear-gradient(135deg, #f8fbff, #f0f8ff);
    position: relative;
}

.mw-featured-feature::before {
    content: "NEW";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #d63638;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
}

.mw-featured-feature .dashicons {
    color: #0073aa;
}

.mw-featured-feature h3 {
    color: #0073aa;
}

/* ================================
    Featured Elements CSS End
================================ */

/* ================================
    Recycle Bin CSS — moved to MD3 Step 14 block below
================================ */


/* ============================================================
   MD3 STEP 2 — App Shell: Global Layout, Page Header, Nav Tabs
   All values reference tokens from md3-tokens.css
   ============================================================ */

/* ---- App Shell Root ---- */
.mw-app-shell {
    background-color: var(--md-sys-color-background);
    margin: 0;
    padding: 0;
}

/* ---- Page Header (MD3 Top App Bar — Medium, 72dp) ---- */
.mw-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--md-spacing-4);
    min-height: 72px;
    padding: var(--md-spacing-3) var(--md-spacing-6);
    background-color: var(--md-sys-color-surface-container-low);
}

.mw-page-header-leading {
    display: flex;
    align-items: center;
    gap: var(--md-spacing-4);
    min-width: 0;
    flex: 1;
}

.mw-page-header-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-page-header-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--md-sys-color-on-primary-container);
}

.mw-page-header-text {
    min-width: 0;
    flex: 1;
}

.mw-page-title {
    font-family: var(--md-sys-typescale-title-large-font) !important;
    font-size: var(--md-sys-typescale-title-large-size) !important;
    line-height: var(--md-sys-typescale-title-large-line-height) !important;
    font-weight: var(--md-sys-typescale-title-large-weight) !important;
    letter-spacing: var(--md-sys-typescale-title-large-tracking) !important;
    color: var(--md-sys-color-on-surface) !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-page-subtitle {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-page-header-trailing {
    flex-shrink: 0;
}

.mw-version-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--md-spacing-2);
    border-radius: var(--md-sys-shape-corner-full);
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    font-family: var(--md-sys-typescale-label-small-font);
    font-size: var(--md-sys-typescale-label-small-size);
    font-weight: var(--md-sys-typescale-label-small-weight);
    letter-spacing: var(--md-sys-typescale-label-small-tracking);
}

/* ---- Navigation Tabs (MD3 Secondary Tab Bar, 48dp) ---- */
.mw-nav-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    background-color: var(--md-sys-color-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    padding: 0 var(--md-spacing-6);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mw-nav-tabs::-webkit-scrollbar {
    display: none;
}

.mw-nav-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--md-spacing-2);
    height: 48px;
    padding: 0 var(--md-spacing-4);
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none !important;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition:
        color var(--md-transition-quick),
        border-color var(--md-transition-quick);
    box-shadow: none !important;
    outline: none !important;
}

/* MD3 state layer (ripple overlay on hover/focus) */
.mw-nav-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--md-sys-shape-corner-extra-small) var(--md-sys-shape-corner-extra-small) 0 0;
    background-color: currentColor;
    opacity: 0;
    transition: opacity var(--md-transition-quick);
    pointer-events: none;
}

.mw-nav-tab:hover {
    color: var(--md-sys-color-on-surface);
}

.mw-nav-tab:hover::before {
    opacity: var(--md-sys-state-hover-opacity);
}

.mw-nav-tab:focus-visible {
    color: var(--md-sys-color-on-surface);
}

.mw-nav-tab:focus-visible::before {
    opacity: var(--md-sys-state-focus-opacity);
}

.mw-nav-tab--active {
    color: var(--md-sys-color-primary) !important;
    border-bottom-color: var(--md-sys-color-primary);
    font-weight: 600;
}

.mw-nav-tab-icon {
    font-size: var(--md-sys-icon-size-medium);
    width: var(--md-sys-icon-size-medium);
    height: var(--md-sys-icon-size-medium);
    flex-shrink: 0;
}

.mw-nav-tab-label {
    line-height: 1;
}

/* ---- Page Content Surface ---- */
.mw-page-content {
    padding: var(--md-spacing-6);
    background-color: var(--md-sys-color-background);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .mw-page-header {
        min-height: 64px;
        padding: var(--md-spacing-2) var(--md-spacing-4);
    }
}

@media (max-width: 782px) {
    .mw-page-header {
        min-height: 56px;
        padding: var(--md-spacing-2) var(--md-spacing-4);
    }

    .mw-page-subtitle {
        display: none;
    }

    .mw-version-badge {
        display: none;
    }

    .mw-page-header-icon {
        width: 40px;
        height: 40px;
    }

    .mw-nav-tabs {
        padding: 0 var(--md-spacing-2);
    }

    .mw-nav-tab {
        padding: 0 var(--md-spacing-2);
        gap: var(--md-spacing-1);
    }

    /* Icon-only tabs on small screens */
    .mw-nav-tab-label {
        display: none;
    }

    .mw-nav-tab-icon {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .mw-page-content {
        padding: var(--md-spacing-4);
    }
}

/* ============================================================
   MD3 STEP 2 — End
   ============================================================ */


/* ============================================================
   MD3 STEP 3 — Button Component
   Five variants: Filled, Tonal, Outlined, Elevated, Text
   Plus error (destructive) versions of Filled and Outlined.
   ============================================================ */

/* ---- Base ---- */
.md-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--md-comp-button-icon-gap);       /* 8px */
    height: var(--md-comp-button-height);      /* 40px */
    padding: 0 var(--md-comp-button-padding-h); /* 0 24px */
    border-radius: var(--md-comp-shape-button); /* pill */
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none !important;
    white-space: nowrap;
    /* Label Large */
    font-family: var(--md-sys-typescale-label-large-font);
    font-size:   var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
    line-height: 1;
    /* Transitions */
    transition:
        background-color var(--md-transition-quick),
        color var(--md-transition-quick);
    /* Reset WP / browser noise */
    margin: 0;
    vertical-align: middle;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* MD3 state layer — sits above bg, below content */
.md-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: currentColor;
    opacity: 0;
    transition: opacity var(--md-transition-quick);
    pointer-events: none;
    border-radius: inherit;
}

.md-btn:hover::after          { opacity: var(--md-sys-state-hover-opacity);   }
.md-btn:focus-visible::after  { opacity: var(--md-sys-state-focus-opacity);   }
.md-btn:active::after         { opacity: var(--md-sys-state-pressed-opacity); }
.md-btn:focus-visible         { outline: none; }

/* Leading icon sizing */
.md-btn .dashicons,
.md-btn-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* With a leading icon: tighten left padding per MD3 spec */
.md-btn--has-icon {
    padding-left: var(--md-comp-button-padding-h-icon); /* 16px */
}

/* ---- Filled (primary CTA) ---- */
.md-btn--filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}
.md-btn--filled:hover,
.md-btn--filled:focus-visible {
    color: var(--md-sys-color-on-primary);
}
.md-btn--filled:hover {
}

/* ---- Tonal (secondary CTA) ---- */
.md-btn--tonal {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}
.md-btn--tonal:hover,
.md-btn--tonal:focus-visible {
    color: var(--md-sys-color-on-primary-container);
}
.md-btn--tonal:hover {
}

/* ---- Outlined (neutral / cancel) ---- */
.md-btn--outlined {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
    box-shadow: none;
}
.md-btn--outlined:hover,
.md-btn--outlined:focus-visible {
    color: var(--md-sys-color-primary);
    background-color: transparent;
    box-shadow: none;
}

/* ---- Elevated (surface + shadow) ---- */
.md-btn--elevated {
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-primary);
}
.md-btn--elevated:hover {
    color: var(--md-sys-color-primary);
}

/* ---- Text (low emphasis) ---- */
.md-btn--text {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    padding: 0 var(--md-spacing-3); /* 12px, narrower */
    border: none;
    box-shadow: none;
}
.md-btn--text:hover,
.md-btn--text:focus-visible {
    color: var(--md-sys-color-primary);
    background-color: transparent;
    box-shadow: none;
}

/* ---- Filled Error (destructive primary) ---- */
.md-btn--filled-error {
    background-color: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
}
.md-btn--filled-error:hover,
.md-btn--filled-error:focus-visible {
    color: var(--md-sys-color-on-error);
}
.md-btn--filled-error:hover {
}

/* ---- Outlined Error (destructive secondary) ---- */
.md-btn--outlined-error {
    background-color: transparent;
    color: var(--md-sys-color-error);
    border: 1px solid var(--md-sys-color-error);
    box-shadow: none;
}
.md-btn--outlined-error:hover,
.md-btn--outlined-error:focus-visible {
    color: var(--md-sys-color-error);
    background-color: transparent;
    box-shadow: none;
}

/* ---- Disabled (all variants) ---- */
.md-btn:disabled,
.md-btn[disabled],
.md-btn.disabled {
    opacity: var(--md-sys-state-disabled-opacity);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}

/* ---- Size modifiers ---- */
.md-btn--sm {
    height: var(--md-comp-button-height-sm); /* 32px */
    padding: 0 var(--md-spacing-4);
    font-size: var(--md-sys-typescale-label-medium-size);
    font-weight: var(--md-sys-typescale-label-medium-weight);
}

.md-btn--full {
    width: 100%;
}

/* ---- Button group ---- */
.md-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--md-spacing-2);
}

/* ============================================================
   MD3 STEP 3 — End
   ============================================================ */


/* ============================================================
   MD3 STEP 4 — Card Component
   Variants: Elevated, Filled, Outlined, Primary, Error
   ============================================================ */

/* ---- Base Card ---- */
.md-card {
    position: relative;
    border-radius: var(--md-comp-shape-card); /* 12px */
    overflow: hidden;
    box-sizing: border-box;
}

/* ---- Elevated Card — surface-container-low + elevation ---- */
.md-card--elevated {
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
}
.md-card--elevated:hover {
}

/* ---- Filled Card — surface-container-highest, no shadow ---- */
.md-card--filled {
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
}
.md-card--filled:hover {
}

/* ---- Outlined Card — surface + border, flat ---- */
.md-card--outlined {
    background-color: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
}
.md-card--outlined:hover {
}

/* ---- Card internal sections ---- */
.md-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--md-spacing-4);
    padding: var(--md-comp-card-padding-lg);
    padding-bottom: var(--md-spacing-3);
}

.md-card-header-text {
    flex: 1;
    min-width: 0;
}

.md-card-title {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    line-height: var(--md-sys-typescale-title-large-line-height);
    font-weight: 600;
    color: inherit;
    margin: 0 0 var(--md-spacing-1);
    padding: 0;
}

.md-card-subtitle {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.md-card-body {
    padding: 0 var(--md-comp-card-padding-lg) var(--md-comp-card-padding-lg);
}

.md-card-description {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: 1.6;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0 0 var(--md-spacing-5);
}

.md-card-footer {
    display: flex;
    align-items: center;
    gap: var(--md-spacing-2);
    padding: var(--md-spacing-2) var(--md-comp-card-padding-lg) var(--md-comp-card-padding-lg);
    flex-wrap: wrap;
}

/* ---- Card icon container ---- */
.md-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-card-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--md-sys-color-on-secondary-container);
}

/* ---- Row layout modifier (logging settings card) ---- */
.md-card--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--md-spacing-4);
    flex-wrap: wrap;
    padding: var(--md-comp-card-padding-lg);
}

/* ---- History stats 3-col ---- */
.md-history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--md-spacing-4);
    margin-bottom: var(--md-spacing-5);
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
    .md-history-stats { grid-template-columns: 1fr; }
    .md-card--row     { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MD3 STEP 4 — End
   ============================================================ */

/* ============================================================
   MD3 STEP 5 — Form Controls
   Outlined Text Field · Checkbox · Switch · Select
   ============================================================ */

/* ----------------------------------------------------------------
   1. OUTLINED TEXT FIELD
   ---------------------------------------------------------------- */

.md-text-field {
    position: relative;
    width: 100%;
}

.md-text-field__input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-comp-shape-text-field);
    background: transparent;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    line-height: 1.5;
    color: var(--md-sys-color-on-surface);
    box-sizing: border-box;
    outline: none;
    transition: border-color var(--md-transition-quick),
                border-width var(--md-transition-quick),
                padding var(--md-transition-quick);
}

.md-text-field__input:hover:not(:focus) {
    border-color: var(--md-sys-color-on-surface);
}

.md-text-field__input:focus {
    border: 2px solid var(--md-sys-color-primary);
    padding: 0 15px;
}

.md-text-field__input:disabled {
    border-color: rgba(25, 28, 32, 0.38);
    color: rgba(25, 28, 32, 0.38);
    background: rgba(25, 28, 32, 0.04);
    cursor: not-allowed;
}

.md-text-field__label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 4px;
    background: var(--md-sys-color-surface-container-lowest);
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    line-height: 1;
    color: var(--md-sys-color-on-surface-variant);
    pointer-events: none;
    white-space: nowrap;
    transition: top var(--md-transition-quick),
                font-size var(--md-transition-quick),
                color var(--md-transition-quick);
}

.md-text-field__input:focus ~ .md-text-field__label,
.md-text-field__input:not(:placeholder-shown) ~ .md-text-field__label {
    top: 0;
    font-size: var(--md-sys-typescale-body-small-size);
}

.md-text-field__input:focus ~ .md-text-field__label {
    color: var(--md-sys-color-primary);
}

.md-text-field__support {
    display: block;
    margin-top: 4px;
    padding: 0 16px;
    font-family: var(--md-sys-typescale-body-small-font);
    font-size: var(--md-sys-typescale-body-small-size);
    color: var(--md-sys-color-on-surface-variant);
}

/* ----------------------------------------------------------------
   2. CHECKBOX
   ---------------------------------------------------------------- */

.md-checkboxes {
    display: flex;
    flex-direction: column;
    gap: var(--md-spacing-2);
}

.md-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--md-spacing-3);
    cursor: pointer;
    user-select: none;
    padding: var(--md-spacing-2) 0;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    line-height: var(--md-sys-typescale-body-large-line-height);
    color: var(--md-sys-color-on-surface);
    position: relative;
}

.md-checkbox__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.md-checkbox__box {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--md-sys-color-outline);
    border-radius: 2px;
    background: transparent;
    overflow: visible;
    transition: background-color var(--md-transition-quick),
                border-color var(--md-transition-quick);
}

.md-checkbox__box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--md-sys-color-on-surface);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity var(--md-transition-quick),
                transform var(--md-transition-quick);
    pointer-events: none;
    z-index: 0;
}

.md-checkbox:hover .md-checkbox__box::before {
    opacity: var(--md-sys-state-hover-opacity);
    transform: translate(-50%, -50%) scale(1);
}

.md-checkbox:focus-within .md-checkbox__box::before {
    opacity: var(--md-sys-state-focus-opacity);
    transform: translate(-50%, -50%) scale(1);
    background: var(--md-sys-color-primary);
}

.md-checkbox__box::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--md-sys-color-on-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    z-index: 1;
}

.md-checkbox__input:checked ~ .md-checkbox__box {
    background: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
}

.md-checkbox__input:checked ~ .md-checkbox__box::after {
    display: block;
}

.md-checkbox:hover .md-checkbox__input:checked ~ .md-checkbox__box::before {
    background: var(--md-sys-color-primary);
}

.md-checkbox__input:disabled ~ .md-checkbox__box {
    border-color: rgba(25, 28, 32, 0.38);
    cursor: not-allowed;
}

.md-checkbox__input:disabled:checked ~ .md-checkbox__box {
    background: rgba(25, 28, 32, 0.38);
    border-color: transparent;
}

/* ----------------------------------------------------------------
   3. SWITCH
   ---------------------------------------------------------------- */

.md-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
    cursor: pointer;
    flex-shrink: 0;
}

.md-switch__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.md-switch__track {
    position: absolute;
    inset: 0;
    border-radius: var(--md-comp-shape-switch);
    border: 2px solid var(--md-sys-color-outline);
    background-color: var(--md-sys-color-surface-variant);
    transition: background-color var(--md-transition-quick),
                border-color var(--md-transition-quick);
}

.md-switch__track::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--md-sys-color-outline);
    transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized),
                background-color var(--md-transition-quick),
                width var(--md-sys-motion-duration-short4),
                height var(--md-sys-motion-duration-short4);
}

.md-switch:hover .md-switch__track {
}

.md-switch__input:checked + .md-switch__track {
    background-color: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
}

.md-switch__input:checked + .md-switch__track::before {
    transform: translateX(16px) translateY(-50%);
    background-color: var(--md-sys-color-on-primary);
    width: 24px;
    height: 24px;
}

.md-switch:hover .md-switch__input:checked + .md-switch__track {
}

.md-switch__input:focus + .md-switch__track {
}

.md-switch__input:disabled + .md-switch__track {
    border-color: rgba(25, 28, 32, 0.38);
    background-color: rgba(25, 28, 32, 0.12);
    cursor: not-allowed;
}

.md-switch__input:disabled + .md-switch__track::before {
    background-color: rgba(25, 28, 32, 0.38);
}

/* ----------------------------------------------------------------
   4. OUTLINED SELECT
   ---------------------------------------------------------------- */

.md-select-wrapper {
    position: relative;
    width: 100%;
    min-width: 120px;
}

.md-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2374777F'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100%;
}

.md-select {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-comp-shape-text-field);
    background: transparent;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    color: var(--md-sys-color-on-surface);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--md-transition-quick);
}

.md-select:hover {
    border-color: var(--md-sys-color-on-surface);
}

.md-select:focus {
    border: 2px solid var(--md-sys-color-primary);
    padding: 0 39px 0 15px;
}

.md-select-label {
    display: block;
    margin-bottom: var(--md-spacing-2);
    font-family: var(--md-sys-typescale-label-medium-font);
    font-size: var(--md-sys-typescale-label-medium-size);
    font-weight: var(--md-sys-typescale-label-medium-weight);
    letter-spacing: var(--md-sys-typescale-label-medium-tracking);
    color: var(--md-sys-color-on-surface-variant);
}

/* ============================================================
   MD3 STEP 5 — End
   ============================================================ */

/* ============================================================
   MD3 STEP 6 — Data Table Component
   Targets: #unused-media-datatable · #deletion-history-datatable
            #media-datatable · #media-list-table · .mw-md-table
   ============================================================ */

/* ----------------------------------------------------------------
   TABLE HEADER — surface-variant bg, label-large typography
   ---------------------------------------------------------------- */

#unused-media-datatable thead th,
#deletion-history-datatable thead th,
#media-datatable thead th,
#media-list-table thead th,
.mw-md-table thead th {
    background-color: var(--md-sys-color-surface-variant) !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    font-family: var(--md-sys-typescale-label-large-font) !important;
    font-size: var(--md-sys-typescale-label-large-size) !important;
    font-weight: var(--md-sys-typescale-label-large-weight) !important;
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
    padding: 14px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
    text-transform: none !important;
    white-space: nowrap;
    position: relative;
}

/* Prevent nth-child striping on header rows */
#unused-media-datatable thead tr,
#deletion-history-datatable thead tr,
#media-datatable thead tr,
#media-list-table thead tr {
    background-color: transparent !important;
}

/* ----------------------------------------------------------------
   TABLE BODY CELLS — body-medium, outline-variant dividers
   ---------------------------------------------------------------- */

#unused-media-datatable tbody td,
#deletion-history-datatable tbody td,
#media-datatable tbody td,
#media-list-table tbody td,
.mw-md-table tbody td {
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--md-sys-color-outline-variant) !important;
    vertical-align: middle;
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size) !important;
    color: var(--md-sys-color-on-surface);
}

/* Remove alternating row stripe (MD3 uses hover instead) */
#unused-media-datatable tr:nth-child(even),
#deletion-history-datatable tr:nth-child(even),
#media-datatable tr:nth-child(even),
#media-list-table tr:nth-child(even) {
    background-color: transparent !important;
}

/* ----------------------------------------------------------------
   ROW HOVER STATE LAYER
   ---------------------------------------------------------------- */

#unused-media-datatable tbody tr:hover,
#deletion-history-datatable tbody tr:hover,
#media-datatable tbody tr:hover,
#media-list-table tbody tr:hover,
.mw-md-table tbody tr:hover {
    background-color: var(--md-state-on-surface-hover) !important;
    transform: none !important;
}

/* ----------------------------------------------------------------
   SELECTED ROW — secondary-container tonal fill
   ---------------------------------------------------------------- */

#unused-media-datatable tbody tr.selected,
#deletion-history-datatable tbody tr.selected,
#media-datatable tbody tr.selected,
#media-list-table tbody tr.selected,
.mw-md-table tbody tr.selected {
    background-color: rgba(0, 0, 0, 0.04) !important;
    transform: none !important;
}

#unused-media-datatable tbody tr.selected:hover,
#deletion-history-datatable tbody tr.selected:hover,
#media-datatable tbody tr.selected:hover,
#media-list-table tbody tr.selected:hover,
.mw-md-table tbody tr.selected:hover {
    background-color: rgba(0, 0, 0, 0.07) !important;
    filter: none;
}

/* Row focus ring for keyboard users */
#unused-media-datatable tbody tr:focus,
#deletion-history-datatable tbody tr:focus,
#media-datatable tbody tr:focus,
#media-list-table tbody tr:focus {
    outline: 2px solid var(--md-sys-color-primary) !important;
    outline-offset: -2px;
}

/* ----------------------------------------------------------------
   SORT ICONS — MD3 colors on DataTables' ::after pseudo-element
   ---------------------------------------------------------------- */

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    padding-right: 36px !important;
    position: relative;
}

/* Unsorted: subtle bidirectional indicator */
table.dataTable thead th.sorting::after {
    content: '⇅' !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    opacity: 0.54;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 1;
    background: none !important;
}

/* Sorted ascending */
table.dataTable thead th.sorting_asc::after {
    content: '↑' !important;
    color: var(--md-sys-color-primary) !important;
    opacity: 1;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 1;
    background: none !important;
}

/* Sorted descending */
table.dataTable thead th.sorting_desc::after {
    content: '↓' !important;
    color: var(--md-sys-color-primary) !important;
    opacity: 1;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    line-height: 1;
    background: none !important;
}

/* ----------------------------------------------------------------
   CONFIDENCE BADGE → MD3 ASSIST CHIP
   ---------------------------------------------------------------- */

.confidence-badge {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: var(--md-comp-shape-chip) !important;
    font-family: var(--md-sys-typescale-label-large-font) !important;
    font-size: var(--md-sys-typescale-label-large-size) !important;
    font-weight: var(--md-sys-typescale-label-large-weight) !important;
    letter-spacing: var(--md-sys-typescale-label-large-tracking) !important;
    text-transform: none !important;
    border: none !important;
    line-height: 1 !important;
    white-space: nowrap;
}

/* High confidence: tertiary (teal) — safe/positive signal */
.confidence-badge.high {
    background-color: var(--md-sys-color-tertiary-container) !important;
    color: var(--md-sys-color-on-tertiary-container) !important;
}

/* Medium confidence: warning (amber) */
.confidence-badge.medium {
    background-color: var(--md-color-warning-container) !important;
    color: var(--md-color-on-warning-container) !important;
}

/* Low confidence: error (red) — needs review */
.confidence-badge.low {
    background-color: var(--md-sys-color-error-container) !important;
    color: var(--md-sys-color-on-error-container) !important;
}

/* ----------------------------------------------------------------
   DATATABLES.NET WRAPPER CONTROLS
   Search · Length · Info · Pagination
   ---------------------------------------------------------------- */

/* Top control rows */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: var(--md-spacing-4) !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size) !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    display: inline-flex;
    align-items: center;
    gap: var(--md-spacing-2);
    font-weight: 400 !important;
}

/* Search input — MD3 outlined text field (compact 40px) */
.dataTables_wrapper .dataTables_filter input[type="search"] {
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid var(--md-sys-color-outline) !important;
    border-radius: var(--md-comp-shape-text-field) !important;
    background: transparent !important;
    font-family: var(--md-sys-typescale-body-medium-font) !important;
    font-size: var(--md-sys-typescale-body-medium-size) !important;
    color: var(--md-sys-color-on-surface) !important;
    margin-left: var(--md-spacing-2) !important;
    outline: none;
    box-shadow: none !important;
    transition: border-color var(--md-transition-quick);
}

.dataTables_wrapper .dataTables_filter input[type="search"]:hover:not(:focus) {
    border-color: var(--md-sys-color-on-surface) !important;
}

.dataTables_wrapper .dataTables_filter input[type="search"]:focus {
    border: 2px solid var(--md-sys-color-primary) !important;
    padding: 0 11px !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Length select — MD3 outlined select (compact 40px) */
.dataTables_wrapper .dataTables_length select {
    height: 40px !important;
    padding: 0 28px 0 12px !important;
    border: 1px solid var(--md-sys-color-outline) !important;
    border-radius: var(--md-comp-shape-text-field) !important;
    background: transparent !important;
    font-family: var(--md-sys-typescale-body-medium-font) !important;
    font-size: var(--md-sys-typescale-body-medium-size) !important;
    color: var(--md-sys-color-on-surface) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 0 var(--md-spacing-2) !important;
    outline: none;
    box-shadow: none !important;
    cursor: pointer;
}

/* Info text */
.dataTables_wrapper .dataTables_info {
    font-family: var(--md-sys-typescale-body-small-font) !important;
    font-size: var(--md-sys-typescale-body-small-size) !important;
    color: var(--md-sys-color-on-surface-variant) !important;
    padding: var(--md-spacing-3) var(--md-spacing-4) !important;
}

/* Pagination container */
.dataTables_wrapper .dataTables_paginate {
    padding: var(--md-spacing-2) var(--md-spacing-4) !important;
    margin: 0 !important;
}

/* Pagination buttons — MD3 icon-button style (circular) */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    margin: 0 2px !important;
    border: none !important;
    border-radius: var(--md-sys-shape-corner-full) !important;
    background: transparent !important;
    color: var(--md-sys-color-primary) !important;
    font-family: var(--md-sys-typescale-label-large-font) !important;
    font-size: var(--md-sys-typescale-label-large-size) !important;
    font-weight: var(--md-sys-typescale-label-large-weight) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color var(--md-transition-quick) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--md-state-primary-hover) !important;
    border: none !important;
    color: var(--md-sys-color-primary) !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--md-sys-color-primary) !important;
    color: var(--md-sys-color-on-primary) !important;
    border: none !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: rgba(25, 28, 32, 0.38) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */

@media (max-width: 782px) {
    #unused-media-datatable thead th,
    #deletion-history-datatable thead th,
    #media-datatable thead th,
    #media-list-table thead th {
        padding: 10px 12px !important;
    }

    #unused-media-datatable tbody td,
    #deletion-history-datatable tbody td,
    #media-datatable tbody td,
    #media-list-table tbody td {
        padding: 8px 12px !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        padding: var(--md-spacing-3) !important;
    }
}

/* ============================================================
   MD3 STEP 6 — End


/* ============================================================
   MD3 STEP 7 — Dialog / Modal Component
   ============================================================ */

/* ---- Dialog overlay wrapper ---- */
.mw-md3-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100001;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.mw-md3-dialog.is-open {
    display: flex;
}

/* ---- Scrim ---- */
.mw-md3-dialog__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

/* ---- Dialog surface ---- */
.mw-md3-dialog__container {
    position: relative;
    background: var(--md-sys-color-surface-container-high, #E7E9EF);
    border-radius: 28px;
    min-width: 280px;
    max-width: 540px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: mwDialogEnter 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes mwDialogEnter {
    from { opacity: 0; transform: scale(0.88) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ---- Dialog header ---- */
.mw-md3-dialog__header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mw-md3-dialog__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-secondary);
    margin-top: 2px;
}

.mw-md3-dialog__icon--error {
    color: var(--md-sys-color-error);
}

.mw-md3-dialog__icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mw-md3-dialog__title {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    font-weight: 600;
    line-height: var(--md-sys-typescale-title-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
    flex: 1;
}

.mw-md3-dialog__close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}

.mw-md3-dialog__close:hover {
    background: rgba(25, 28, 32, 0.08);
}

.mw-md3-dialog__close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ---- Dialog content ---- */
.mw-md3-dialog__content {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    color: var(--md-sys-color-on-surface-variant);
}

.mw-md3-dialog__content p {
    margin: 0 0 12px;
}

.mw-md3-dialog__content p:last-child {
    margin-bottom: 0;
}

/* ---- Dialog actions (right-aligned) ---- */
.mw-md3-dialog__actions {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ---- Multi-step support ---- */
.mw-md3-dialog__step {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.mw-md3-dialog__step--active {
    display: flex;
}

/* ---- Warning notice inside dialog ---- */
.mw-md3-dialog__warning {
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 20px;
}

/* ---- File breakdown grid inside dialog ---- */
.mw-md3-dialog__breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.mw-md3-dialog__breakdown-item {
    background: var(--md-sys-color-surface-container-lowest, #FFFFFF);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mw-md3-dialog__breakdown-icon {
    font-size: 20px;
    line-height: 1;
}

.mw-md3-dialog__breakdown-count {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: var(--md-sys-color-on-surface);
}

.mw-md3-dialog__breakdown-label {
    font-size: 11px;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.4px;
}

/* ---- Selected files list inside dialog ---- */
.mw-md3-dialog__files-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.mw-md3-dialog__impact-list {
    margin: 0;
    padding: 0 0 0 16px;
}

.mw-md3-dialog__impact-list li {
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--md-sys-color-on-surface-variant);
}

/* ---- Confirmation checkbox row ---- */
.mw-md3-dialog__confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--md-sys-color-surface-container-lowest, #FFFFFF);
    border-radius: 12px;
    padding: 16px;
}

.mw-md3-dialog__confirm-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--md-sys-color-primary);
    cursor: pointer;
}

.mw-md3-dialog__confirm-label {
    font-size: 14px;
    line-height: 20px;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
}

/* ---- Divider between sections ---- */
.mw-md3-dialog__divider {
    height: 1px;
    background: var(--md-sys-color-outline-variant);
    margin: 0 24px;
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .mw-md3-dialog {
        padding: 16px;
        align-items: flex-end;
    }

    .mw-md3-dialog__container {
        border-radius: 28px 28px 0 0;
        max-width: 100%;
        width: 100%;
        max-height: 85vh;
    }

    .mw-md3-dialog__breakdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .mw-md3-dialog__actions {
        flex-wrap: wrap;
    }
}

/* ============================================================
   MD3 STEP 7 — End
   ============================================================ */


/* ============================================================
   MD3 STEP 8 — Snackbar / Notification Component
   ============================================================ */

/* ---- Container: bottom-center anchor ---- */
.mw-snackbar-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100002;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 32px);
}

/* ---- Snackbar surface ---- */
.mw-snackbar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    background: var(--md-sys-color-inverse-surface, #2D3039);
    border-radius: 4px;
    min-width: 288px;
    max-width: 672px;
    width: max-content;
    max-width: calc(100vw - 48px);
    padding: 0 8px 0 16px;
    min-height: 48px;
    /* enter state: below + invisible */
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity  0.20s cubic-bezier(0.2, 0, 0, 1),
        transform 0.20s cubic-bezier(0.2, 0, 0, 1);
}

.mw-snackbar.mw-snackbar--visible {
    opacity: 1;
    transform: translateY(0);
}

.mw-snackbar.mw-snackbar--exiting {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity  0.15s ease,
        transform 0.15s ease;
}

/* ---- Type accent strip (left border) ---- */
.mw-snackbar--success { border-left: 3px solid #69F0AE; }
.mw-snackbar--error   { border-left: 3px solid #FF5252; }
.mw-snackbar--warning { border-left: 3px solid #FFD740; }
.mw-snackbar--info    { border-left: 3px solid var(--md-sys-color-inverse-primary, #A4C8FF); }

/* ---- Message text ---- */
.mw-snackbar__message {
    flex: 1;
    font-family: var(--md-sys-typescale-body-medium-font, sans-serif);
    font-size:   var(--md-sys-typescale-body-medium-size, 14px);
    line-height: var(--md-sys-typescale-body-medium-line-height, 20px);
    letter-spacing: 0.25px;
    color: var(--md-sys-color-inverse-on-surface, #EFF0F7);
    padding: 14px 0;
    word-break: break-word;
}

/* ---- Action button (UNDO, RETRY, etc.) ---- */
.mw-snackbar__action {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 4px;
    border-radius: 4px;
    font-family: var(--md-sys-typescale-label-large-font, sans-serif);
    font-size:   var(--md-sys-typescale-label-large-size, 14px);
    font-weight: var(--md-sys-typescale-label-large-weight, 500);
    letter-spacing: 0.1px;
    color: var(--md-sys-color-inverse-primary, #A4C8FF);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.mw-snackbar__action:hover {
    background: rgba(164, 200, 255, 0.12);
}

.mw-snackbar__action:focus-visible {
    outline: 2px solid var(--md-sys-color-inverse-primary, #A4C8FF);
    outline-offset: 2px;
}

/* ---- Dismiss (×) button ---- */
.mw-snackbar__dismiss {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--md-sys-color-inverse-on-surface, #EFF0F7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.70;
    transition: opacity 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-left: 4px;
}

.mw-snackbar__dismiss:hover {
    opacity: 1;
    background: rgba(239, 240, 247, 0.12);
}

.mw-snackbar__dismiss .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* ---- Responsive: full-width strip at mobile ---- */
@media (max-width: 600px) {
    .mw-snackbar-container {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    .mw-snackbar {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}

/* ============================================================
   MD3 STEP 8 — End
   ============================================================ */


/* ============================================================
   MD3 STEP 9 — Progress Indicators
   ============================================================ */

/* ----------------------------------------------------------------
   Linear Progress
   ---------------------------------------------------------------- */

.mw-linear-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--md-sys-color-surface-variant, #E0E2EC);
    border-radius: 2px;
    overflow: hidden;
}

.mw-linear-progress__indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--md-sys-color-primary, #1565C0);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
}

/* Indeterminate variant */
.mw-linear-progress--indeterminate .mw-linear-progress__indicator {
    width: 40%;
    animation: mwLinearBar1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.mw-linear-progress--indeterminate::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: var(--md-sys-color-primary, #1565C0);
    border-radius: 2px;
    animation: mwLinearBar2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
}

@keyframes mwLinearBar1 {
    0%   { left: -35%;  right: 100%; }
    60%  { left: 100%;  right: -90%; }
    100% { left: 100%;  right: -90%; }
}

@keyframes mwLinearBar2 {
    0%   { left: -200%; right: 100%; }
    60%  { left:  107%; right: -8%;  }
    100% { left:  107%; right: -8%;  }
}

/* ----------------------------------------------------------------
   Circular Progress (indeterminate only)
   ---------------------------------------------------------------- */

.mw-circular-progress {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mw-circular-progress::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--md-sys-color-surface-variant, #E0E2EC);
    border-top-color: var(--md-sys-color-primary, #1565C0);
    animation: mwCircularSpin 0.75s linear infinite;
    box-sizing: border-box;
}

@keyframes mwCircularSpin {
    to { transform: rotate(360deg); }
}

/* Size variants */
.mw-circular-progress--sm {
    width: 20px;
    height: 20px;
}
.mw-circular-progress--sm::before { border-width: 2px; }

.mw-circular-progress--lg {
    width: 56px;
    height: 56px;
}
.mw-circular-progress--lg::before { border-width: 4px; }

/* ----------------------------------------------------------------
   Scan Progress Card (MD3 surface)
   ---------------------------------------------------------------- */

.mw-progress-card {
    background: var(--md-sys-color-surface-container-low, #F3F5FA);
    border-radius: var(--md-sys-shape-corner-large, 16px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mw-progress-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mw-progress-card__title {
    font-family: var(--md-sys-typescale-title-medium-font, sans-serif);
    font-size:   var(--md-sys-typescale-title-medium-size, 16px);
    font-weight: var(--md-sys-typescale-title-medium-weight, 500);
    line-height: var(--md-sys-typescale-title-medium-line-height, 24px);
    color: var(--md-sys-color-on-surface, #191C20);
    margin: 0 0 2px;
}

.mw-progress-card__subtitle {
    font-family: var(--md-sys-typescale-body-small-font, sans-serif);
    font-size:   var(--md-sys-typescale-body-small-size, 12px);
    line-height: var(--md-sys-typescale-body-small-line-height, 16px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    margin: 0;
}

.mw-progress-card__text {
    flex: 1;
    min-width: 0;
}

.mw-progress-card__percentage {
    font-family: var(--md-sys-typescale-title-large-font, sans-serif);
    font-size:   var(--md-sys-typescale-title-large-size, 22px);
    font-weight: 600;
    line-height: 1;
    color: var(--md-sys-color-primary, #1565C0);
    min-width: 52px;
    text-align: right;
    flex-shrink: 0;
}

.mw-progress-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mw-progress-card__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--md-sys-color-surface-container-lowest, #FFFFFF);
    border-radius: 12px;
    padding: 12px 14px;
}

.mw-progress-card__stat-icon .dashicons {
    color: var(--md-sys-color-on-surface-variant, #43474E);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mw-progress-card__stat-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mw-progress-card__stat-number {
    font-family: var(--md-sys-typescale-title-medium-font, sans-serif);
    font-size:   var(--md-sys-typescale-title-medium-size, 16px);
    font-weight: var(--md-sys-typescale-title-medium-weight, 500);
    color: var(--md-sys-color-on-surface, #191C20);
    line-height: 1.2;
}

.mw-progress-card__stat-label {
    font-size: 11px;
    color: var(--md-sys-color-on-surface-variant, #43474E);
    letter-spacing: 0.4px;
}

/* ----------------------------------------------------------------
   Deletion Progress (inside MD3 dialog)
   ---------------------------------------------------------------- */

.mw-dialog-progress {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
}

.mw-dialog-progress__labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mw-dialog-progress__status {
    font-size: var(--md-sys-typescale-body-small-size, 12px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
}

.mw-dialog-progress__bar {
    margin-bottom: 4px;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (max-width: 600px) {
    .mw-progress-card__stats {
        grid-template-columns: 1fr;
    }

    .mw-progress-card__percentage {
        display: none;
    }
}

/* ============================================================
   MD3 STEP 9 — End
   ============================================================ */


/* ============================================================
   MD3 STEP 10 — Dashboard Hero
   ============================================================ */

/* ---- Primary container hero card ---- */
/* ---- Stat Cards (used on Deletion History page) ---- */
.md-stat-card {
    display: flex;
    flex-direction: column;
    gap: var(--md-spacing-3);
    padding: var(--md-comp-card-padding-lg);
}

.md-stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-secondary-container);
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--md-sys-color-on-secondary-container);
}

.md-stat-content {
    display: flex;
    flex-direction: column;
    gap: var(--md-spacing-1);
}

.md-stat-value {
    font-family: var(--md-sys-typescale-headline-small-font);
    font-size: var(--md-sys-typescale-headline-small-size);
    line-height: var(--md-sys-typescale-headline-small-line-height);
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin: 0;
    display: block;
}

.md-stat-label {
    font-family: var(--md-sys-typescale-label-medium-font);
    font-size: var(--md-sys-typescale-label-medium-size);
    font-weight: var(--md-sys-typescale-label-medium-weight);
    letter-spacing: var(--md-sys-typescale-label-medium-tracking);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    display: block;
}

/* ---- Dashboard Overview Card ---- */
.mw-db-overview {
    display: flex;
    flex-direction: row;
    padding: 0;
    overflow: hidden;
    margin-bottom: var(--md-spacing-5);
}

.mw-db-overview__summary {
    flex-shrink: 0;
    width: 240px;
    padding: 28px 24px;
    background-color: var(--md-sys-color-primary-container);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.mw-db-total {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mw-db-total__num {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: var(--md-sys-color-on-primary-container);
    display: block;
}

.mw-db-total__label {
    font-family: var(--md-sys-typescale-label-large-font, sans-serif);
    font-size: var(--md-sys-typescale-label-large-size, 14px);
    font-weight: 500;
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.75;
    display: block;
}

.mw-db-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mw-db-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--md-sys-typescale-body-medium-font, sans-serif);
    font-size: var(--md-sys-typescale-body-medium-size, 14px);
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.85;
}

.mw-db-meta__item .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    opacity: 0.7;
}

.mw-db-meta__item--version {
    align-self: flex-start;
    height: 22px;
    padding: 0 10px;
    border-radius: var(--md-sys-shape-corner-full);
    background: rgba(0, 0, 0, 0.10);
    font-family: var(--md-sys-typescale-label-small-font, sans-serif);
    font-size: var(--md-sys-typescale-label-small-size, 11px);
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 1;
}

.mw-db-overview__divider {
    width: 1px;
    flex-shrink: 0;
    background-color: var(--md-sys-color-outline-variant);
}

.mw-db-overview__breakdown {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mw-db-breakdown__heading {
    font-family: var(--md-sys-typescale-label-large-font, sans-serif);
    font-size: var(--md-sys-typescale-label-large-size, 14px);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.mw-db-breakdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mw-db-breakdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.mw-db-breakdown__item:last-child {
    border-bottom: none;
}

.mw-db-breakdown__icon {
    flex-shrink: 0;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

.mw-db-breakdown__icon--primary   { color: var(--md-sys-color-primary); }
.mw-db-breakdown__icon--secondary { color: var(--md-sys-color-secondary); }
.mw-db-breakdown__icon--tertiary  { color: var(--md-sys-color-tertiary); }
.mw-db-breakdown__icon--success   { color: #2E7D32; }
.mw-db-breakdown__icon--neutral   { color: var(--md-sys-color-outline); }

.mw-db-breakdown__label {
    flex-shrink: 0;
    width: 76px;
    font-family: var(--md-sys-typescale-body-medium-font, sans-serif);
    font-size: var(--md-sys-typescale-body-medium-size, 14px);
    color: var(--md-sys-color-on-surface);
}

.mw-db-breakdown__bar-track {
    flex: 1;
    min-width: 60px;
    height: 6px;
    border-radius: 3px;
    background-color: var(--md-sys-color-surface-variant);
    overflow: hidden;
}

.mw-db-breakdown__bar {
    height: 100%;
    border-radius: inherit;
    min-width: 2px;
    transition: width 0.6s var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
}

.mw-db-breakdown__bar--primary   { background-color: var(--md-sys-color-primary); }
.mw-db-breakdown__bar--secondary { background-color: var(--md-sys-color-secondary); }
.mw-db-breakdown__bar--tertiary  { background-color: var(--md-sys-color-tertiary); }
.mw-db-breakdown__bar--success   { background-color: #2E7D32; }
.mw-db-breakdown__bar--neutral   { background-color: var(--md-sys-color-outline); }

.mw-db-breakdown__count {
    flex-shrink: 0;
    width: 48px;
    text-align: right;
    font-family: var(--md-sys-typescale-label-large-font, sans-serif);
    font-size: var(--md-sys-typescale-label-large-size, 14px);
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
}

.mw-db-breakdown__pct {
    flex-shrink: 0;
    width: 40px;
    text-align: right;
    font-family: var(--md-sys-typescale-label-small-font, sans-serif);
    font-size: var(--md-sys-typescale-label-small-size, 11px);
    color: var(--md-sys-color-on-surface-variant);
}

/* ---- Quick Actions row ---- */
.mw-db-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--md-spacing-3);
    margin-top: var(--md-spacing-4);
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
    .mw-db-overview        { flex-direction: column; }
    .mw-db-overview__summary { width: 100%; }
    .mw-db-overview__divider { width: 100%; height: 1px; }
    .mw-db-breakdown__label  { width: 60px; }
}

/* ============================================================
   MD3 STEP 10 — End
   ============================================================ */


/* ============================================================
   MD3 STEP 11 — Delete Unused Page
   ============================================================ */

/* ---- Page intro: compact feature chip strip ---- */
.mw-page-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.mw-page-intro__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--md-sys-color-secondary-container, #D7E3F7);
    color: var(--md-sys-color-on-secondary-container, #101C2B);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.mw-page-intro__chip .dashicons {
    font-size: 14px !important;
    width: 14px;
    height: 14px;
}

/* ---- MD3 Filter Chip Group ---- */
.mw-chip-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0 24px 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
}

/* MD3 Filter Chip */
.mw-chip--filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--md-sys-color-outline, #74777F);
    border-radius: 8px;
    font-family: var(--md-sys-typescale-label-large-font, sans-serif);
    font-size:   var(--md-sys-typescale-label-large-size, 14px);
    font-weight: var(--md-sys-typescale-label-large-weight, 500);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.mw-chip--filter:hover {
    background: rgba(25, 28, 32, 0.08);
}

.mw-chip--filter.is-selected {
    background: var(--md-sys-color-secondary-container, #D7E3F7);
    border-color: transparent;
    color: var(--md-sys-color-on-secondary-container, #101C2B);
}

/* Spacer inside chip group to push delete button right */
.mw-chip-group__spacer {
    flex: 1;
    min-width: 8px;
}

/* ---- Results card (wraps the datatable) ---- */
.mw-results-card {
    margin-top: 0;
}

.mw-results-card .md-card-header {
    padding-bottom: 8px;
}

.mw-results-card .results-table-container {
    padding: 0 8px 8px;
}

/* ============================================================
   MD3 STEP 11 — End
   ============================================================ */

/* ============================================================
   MD3 STEP 12 — Delete Selected Page (Media Browser)
   ============================================================ */

/* ---- Filter bar ---- */
.mw-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.mw-filter-bar__search {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}

.mw-filter-bar__search-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    left: auto;
    transform: translateY(-50%);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    font-size: 20px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.mw-filter-bar__input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 16px;
    background: var(--md-sys-color-surface-variant, #E1E2EC);
    border: 1px solid var(--md-sys-color-outline, #74777F);
    border-radius: var(--md-sys-shape-corner-extra-small, 4px);
    font-family: var(--md-sys-typescale-body-large-font, sans-serif);
    font-size: var(--md-sys-typescale-body-large-size, 16px);
    color: var(--md-sys-color-on-surface, #1B1B1F);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mw-filter-bar__input:focus {
    border-color: var(--md-sys-color-primary, #1650A4);
}

.mw-filter-bar__input::placeholder {
    color: var(--md-sys-color-on-surface-variant, #43474E);
    opacity: 0.7;
}

.mw-filter-bar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ---- Media table card ---- */
.mw-media-table-card {
    overflow: hidden;
    padding: 0;
}

.mw-media-table-card .mw-dt-info {
    padding: 12px 20px 0;
    font-size: var(--md-sys-typescale-body-small-size, 12px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
}

.mw-media-table-card table.mw-data-table {
    margin: 0 !important;
}

/* Checkbox column */
.mw-dt-col-check {
    width: 44px !important;
    text-align: center !important;
    padding-left: 12px !important;
}

.mw-dt-col-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--md-sys-color-primary, #1650A4);
    cursor: pointer;
}

/* Preview column */
.mw-dt-col-preview {
    width: 64px !important;
}

.media-preview-cell {
    padding: 8px 12px !important;
}

.mw-ds-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
}

.mw-ds-file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-surface-variant, #E1E2EC);
    border-radius: 8px;
    font-size: 24px;
}

/* Type badge */
.mw-ds-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.mw-ds-type-badge--image    { background: #E8F4FD; color: #1565C0; }
.mw-ds-type-badge--video    { background: #F3E5F5; color: #7B1FA2; }
.mw-ds-type-badge--audio    { background: #E8F5E9; color: #2E7D32; }
.mw-ds-type-badge--document { background: #FFF3E0; color: #E65100; }
.mw-ds-type-badge--other    { background: var(--md-sys-color-surface-variant, #E1E2EC);
                               color: var(--md-sys-color-on-surface-variant, #43474E); }

/* Unattached label */
.mw-ds-unattached {
    color: var(--md-sys-color-on-surface-variant, #43474E);
    font-style: italic;
    font-size: 13px;
}

/* Row hover + selected state */
#media-list-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

#media-list-table tbody tr:hover {
    background: rgba(22, 80, 164, 0.06);
}

#media-list-table tbody tr.is-selected,
#media-list-table tbody tr:has(input[name="delete_media[]"]:checked) {
    background: rgba(22, 80, 164, 0.10);
}

/* Empty state */
.mw-dt-empty {
    text-align: center !important;
    padding: 48px 24px !important;
    color: var(--md-sys-color-on-surface-variant, #43474E);
}

/* ---- Sticky bottom action bar ---- */
.mw-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 160px;          /* WordPress sidebar width */
    right: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 12px 32px;
    background: var(--md-sys-color-surface-container-high, #ECE6F0);
    border-top: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);

    /* Hidden by default — slides up when visible */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2,0,0,1)),
                opacity  0.25s ease;
    pointer-events: none;
}

.mw-bottom-bar--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mw-bottom-bar__count {
    font-family: var(--md-sys-typescale-body-large-font, sans-serif);
    font-size: var(--md-sys-typescale-body-large-size, 16px);
    color: var(--md-sys-color-on-surface, #1B1B1F);
    margin-right: auto;
}

/* Collapsed WordPress sidebar */
@media (max-width: 960px) {
    .mw-bottom-bar {
        left: 36px;
    }
}

@media (max-width: 782px) {
    .mw-bottom-bar {
        left: 0;
        padding: 10px 16px;
    }

    .mw-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .mw-filter-bar__chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
}

/* ============================================================
   MD3 STEP 12 — End
   ============================================================ */

/* ============================================================
   MD3 STEP 13 — Delete All Page (Confirmation Text Field)
   ============================================================ */

/* ---- Confirmation text field in Step 2 dialog ---- */
.mw-md3-dialog__confirm-text-wrap {
    margin-bottom: 20px;
}

.mw-md3-dialog__confirm-text-label {
    display: block;
    font-family: var(--md-sys-typescale-body-medium-font, sans-serif);
    font-size: var(--md-sys-typescale-body-medium-size, 14px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    margin-bottom: 8px;
}

.mw-md3-dialog__confirm-text-label strong {
    color: var(--md-sys-color-error, #BA1A1A);
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.mw-md3-confirm-text {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: transparent;
    border: 2px solid var(--md-sys-color-outline, #74777F);
    border-radius: var(--md-sys-shape-corner-extra-small, 4px);
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--md-sys-color-on-surface, #1B1B1F);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mw-md3-confirm-text:focus {
}

.mw-md3-confirm-text::placeholder {
    color: var(--md-sys-color-on-surface-variant, #43474E);
    opacity: 0.45;
}

/* ============================================================
   MD3 STEP 13 — End
   ============================================================ */

/* ============================================================
   MD3 STEP 14 — Recycle Bin Page
   ============================================================ */

/* ---- Recycle Bin settings card ---- */
.mw-rb-settings-card {
    margin-bottom: var(--md-spacing-6, 24px);
    overflow: hidden;
}

.mw-recycle-settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.mw-recycle-setting {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-right: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
}

.mw-recycle-setting:last-child {
    border-right: none;
}

.mw-recycle-setting-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.mw-recycle-setting .md-select-wrapper {
    width: auto;
    min-width: 120px;
    flex-shrink: 0;
}

.mw-recycle-setting .md-select {
    height: 40px;
    padding: 0 36px 0 12px;
    font-size: var(--md-sys-typescale-body-medium-size, 14px);
    border-radius: var(--md-sys-shape-corner-small, 8px);
}

.mw-rb-setting-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mw-rb-setting-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--md-sys-shape-corner-medium, 12px);
    background: var(--md-sys-color-secondary-container, #D7E3F7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-rb-setting-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--md-sys-color-on-secondary-container, #101C2B);
}

.mw-rb-setting-body {
    flex: 1;
    min-width: 0;
}

.mw-rb-setting-title {
    display: block;
    font-family: var(--md-sys-typescale-title-small-font, sans-serif);
    font-size: var(--md-sys-typescale-title-small-size, 14px);
    font-weight: 500;
    color: var(--md-sys-color-on-surface, #1B1B1F);
    margin-bottom: 2px;
}

.mw-rb-setting-desc {
    font-family: var(--md-sys-typescale-body-small-font, sans-serif);
    font-size: var(--md-sys-typescale-body-small-size, 12px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    margin: 0;
}

/* ---- MD3 days-remaining chip (Assist Chip) ---- */
.mw-rb-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--md-sys-color-outline, #74777F);
    background: transparent;
    font-family: var(--md-sys-typescale-label-large-font, sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant, #43474E);
    margin-top: 8px;
}

.mw-rb-chip .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Expiring soon — tertiary/warning tint */
.mw-rb-chip.is-expiring {
    background: var(--md-sys-color-tertiary-container, #FFE0B2);
    border-color: transparent;
    color: #7C4F00;
}

.mw-rb-chip.is-expiring .dashicons {
    color: #A75C00;
}

/* Expired — error tint */
.mw-rb-chip.is-expired {
    background: var(--md-sys-color-error-container, #FFDAD6);
    border-color: transparent;
    color: var(--md-sys-color-on-error-container, #410002);
}

.mw-rb-chip.is-expired .dashicons {
    color: var(--md-sys-color-error, #BA1A1A);
}

/* ---- Recycle bin card — MD3 Outlined Card ---- */
.mw-recycle-card.md-card--outlined {
    border: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
    border-radius: var(--md-sys-shape-corner-medium, 12px);
    background: var(--md-sys-color-surface, #FDFBFF);
    box-shadow: none;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mw-recycle-card.md-card--outlined:hover {
    border-color: var(--md-sys-color-outline, #74777F);
}

.mw-recycle-card.md-card--outlined.is-selected {
    border-color: var(--md-sys-color-primary, #1650A4);
    background: rgba(22, 80, 164, 0.06);
    box-shadow: none;
}

/* Checkbox — top-right */
.mw-recycle-card-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--md-sys-color-primary, #1650A4);
    cursor: pointer;
    z-index: 1;
}

/* Preview */
.mw-recycle-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--md-sys-color-surface-variant, #E1E2EC);
    overflow: hidden;
    border-radius: var(--md-sys-shape-corner-medium, 12px) var(--md-sys-shape-corner-medium, 12px) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-rb-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mw-rb-card-file-icon {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--md-sys-color-on-surface-variant, #43474E);
    opacity: 0.5;
}

/* Body */
.mw-recycle-card-body {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mw-recycle-card-name {
    font-family: var(--md-sys-typescale-title-small-font, sans-serif);
    font-size: var(--md-sys-typescale-title-small-size, 14px);
    font-weight: 500;
    color: var(--md-sys-color-on-surface, #1B1B1F);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-recycle-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-family: var(--md-sys-typescale-body-small-font, sans-serif);
    font-size: var(--md-sys-typescale-body-small-size, 12px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
}

/* Actions row */
.mw-recycle-card-actions {
    display: flex;
    gap: 4px;
    padding: 6px 8px 10px;
    border-top: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
    margin-top: auto;
}

/* Error-tinted text button for delete */
.mw-text-error {
    color: var(--md-sys-color-error, #BA1A1A) !important;
}

.mw-text-error:hover {
    background: rgba(186, 26, 26, 0.08) !important;
}

@media (max-width: 782px) {
    .mw-recycle-setting {
        border-right: none;
        border-bottom: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
    }
    .mw-recycle-setting:last-child {
        border-bottom: none;
    }
}

/* ---- Bulk action toolbar ---- */
.mw-recycle-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: var(--md-spacing-4, 16px);
    background: var(--md-sys-color-surface-variant, #E1E2EC);
    border-radius: var(--md-sys-shape-corner-medium, 12px);
}

.mw-recycle-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.mw-recycle-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Loading state ---- */
.mw-recycle-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 56px 24px;
    font-family: var(--md-sys-typescale-body-medium-font, sans-serif);
    font-size: var(--md-sys-typescale-body-medium-size, 14px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
}

/* ---- Empty state ---- */
.mw-recycle-empty {
    display: flex;
    justify-content: center;
    padding: 20px 20px 48px;
}

.mw-recycle-empty-inner {
    border: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
    background: var(--md-sys-color-surface, #FDFBFF);
    border-radius: var(--md-sys-shape-corner-extra-large, 16px);
    padding: 56px 48px 48px;
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.mw-recycle-empty-illustration {
    margin-bottom: 28px;
}

.mw-recycle-empty-bin {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background: var(--md-sys-color-primary-container, #D9E2FF);
    border-radius: 50%;
}

.mw-recycle-empty-bin-icon {
    font-size: 44px !important;
    width: 44px !important;
    height: 44px !important;
    color: var(--md-sys-color-on-primary-container, #001356);
    opacity: 0.75;
}

.mw-recycle-empty-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mw-sparkle {
    position: absolute;
    color: var(--md-sys-color-primary, #1650A4);
    font-size: 12px;
    opacity: 0;
    animation: mw-sparkle-fade 2.4s ease-in-out infinite;
}

.mw-sparkle-1 { top: 6px; right: 10px; animation-delay: 0s; font-size: 10px; }
.mw-sparkle-2 { bottom: 8px; right: 4px; animation-delay: 0.8s; font-size: 14px; }
.mw-sparkle-3 { top: 14px; left: 6px; animation-delay: 1.6s; font-size: 9px; }

@keyframes mw-sparkle-fade {
    0%   { opacity: 0; transform: scale(0.6) translateY(0); }
    30%  { opacity: 1; transform: scale(1) translateY(-4px); }
    70%  { opacity: 0.6; }
    100% { opacity: 0; transform: scale(0.8) translateY(-8px); }
}

.mw-recycle-empty h3 {
    font-family: var(--md-sys-typescale-headline-small-font, sans-serif);
    font-size: var(--md-sys-typescale-headline-small-size, 24px);
    font-weight: 400;
    color: var(--md-sys-color-on-surface, #1B1B1F);
    margin: 0 0 10px;
}

.mw-recycle-empty p {
    font-size: var(--md-sys-typescale-body-medium-size, 14px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.mw-recycle-empty-hints {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    background: var(--md-sys-color-surface-variant, #E1E2EC);
    border-radius: var(--md-sys-shape-corner-medium, 12px);
    padding: 20px 24px;
}

.mw-recycle-empty-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--md-sys-typescale-body-small-size, 12px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    line-height: 1.5;
}

.mw-recycle-empty-hint .dashicons {
    color: var(--md-sys-color-primary, #1650A4);
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Media grid ---- */
.mw-recycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--md-spacing-4, 16px);
}

/* ============================================================
   MD3 STEP 14 — End
   ============================================================ */

/* ============================================================
   MD3 STEP 15 — Deletion History Page
   ============================================================ */

/* ---- Stats overview row ---- */
.mw-history-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--md-spacing-4, 16px);
    margin-bottom: var(--md-spacing-5, 20px);
}

.mw-history-overview .md-history-stats {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.mw-history-overview .mw-history-actions {
    flex-shrink: 0;
    text-align: right;
}

/* Security icon — error-container tint */
.mw-history-stat-icon--security {
    background: var(--md-sys-color-error-container, #FFDAD6) !important;
}

.mw-history-stat-icon--security .dashicons {
    color: var(--md-sys-color-on-error-container, #410002) !important;
}

/* Total icon — tertiary-container tint */
.mw-history-stat-icon--total {
    background: var(--md-sys-color-tertiary-container, #FFE0B2) !important;
}

.mw-history-stat-icon--total .dashicons {
    color: #7C4F00 !important;
}

/* ---- History table card ---- */
.mw-history-card {
    overflow: hidden;
    padding: 0;
}

.mw-history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
}

.mw-history-card-title {
    font-family: var(--md-sys-typescale-title-large-font, sans-serif);
    font-size: var(--md-sys-typescale-title-large-size, 22px);
    font-weight: var(--md-sys-typescale-title-large-weight, 400);
    color: var(--md-sys-color-on-surface, #1B1B1F);
    margin: 0;
}

/* Filter chips row inside card header */
.mw-history-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* DataTable wrapper */
.mw-history-datatable-wrap {
    padding: 0;
}

.mw-history-datatable-wrap table.mw-data-table {
    margin: 0 !important;
}

/* Empty state */
.mw-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px;
    text-align: center;
}

.mw-history-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--md-sys-color-surface-variant, #E1E2EC);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.mw-history-empty-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--md-sys-color-on-surface-variant, #43474E);
}

.mw-history-empty h3 {
    font-family: var(--md-sys-typescale-title-medium-font, sans-serif);
    font-size: var(--md-sys-typescale-title-medium-size, 16px);
    color: var(--md-sys-color-on-surface, #1B1B1F);
    margin: 0 0 8px;
}

.mw-history-empty p {
    font-family: var(--md-sys-typescale-body-medium-font, sans-serif);
    font-size: var(--md-sys-typescale-body-medium-size, 14px);
    color: var(--md-sys-color-on-surface-variant, #43474E);
    max-width: 400px;
    margin: 0;
}

@media (max-width: 782px) {
    .mw-history-overview {
        flex-direction: column;
        align-items: stretch;
    }

    .mw-history-overview .mw-history-actions {
        text-align: left;
    }

    .mw-history-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   MD3 STEP 15 — End
   ============================================================ */

/* ============================================================
   MD3 STEP 16 — Polish, Motion & Responsive
   ============================================================ */

/* ---- Keyframes ---- */
@keyframes mwFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes mwSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Page-level entrance ---- */
.mw-app-shell {
    animation: mwFadeIn var(--md-sys-motion-duration-medium2, 0.2s) ease;
}

/* Stagger cards inside the page content */
.mw-page-content > .md-card,
.mw-app-shell > .md-card,
.mw-app-shell > .mw-filter-bar,
.mw-app-shell > .mw-media-table-card,
.mw-app-shell > .mw-history-card,
.mw-app-shell > .mw-rb-settings-card {
    animation: mwSlideUp var(--md-sys-motion-duration-medium3, 0.3s)
               var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1))
               both;
}

.mw-page-content > .md-card:nth-child(2),
.mw-app-shell > .md-card:nth-child(3) {
    animation-delay: 0.04s;
}

.mw-page-content > .md-card:nth-child(3),
.mw-app-shell > .md-card:nth-child(4) {
    animation-delay: 0.08s;
}

/* ---- MD3 State-layer ripple on buttons (CSS-only) ---- */
.md-btn {
    position: relative;
    overflow: hidden;
}

.md-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--md-sys-motion-duration-short2, 0.1s) linear;
    pointer-events: none;
}

.md-btn:hover::after  { opacity: 0.08; }
.md-btn:focus::after  { opacity: 0.10; }
.md-btn:active::after { opacity: 0.14; }

/* ---- Card hover lift (unified) ---- */
.md-card--elevated {
    transition: 0.2s)
                var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
}

.md-card--elevated:hover {
}

/* ---- Dialog entrance (refine) ---- */
.mw-md3-dialog__container {
    transition: transform var(--md-sys-motion-duration-medium2, 0.2s)
                var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)),
                opacity  var(--md-sys-motion-duration-short4, 0.15s) ease;
    transform: translateY(4px);
    opacity: 0;
}

.mw-md3-dialog.is-open .mw-md3-dialog__container {
    transform: translateY(0);
    opacity: 1;
}

/* ---- Snackbar smooth exit ---- */
.mw-snackbar--exiting {
    transition: opacity var(--md-sys-motion-duration-short4, 0.15s) ease,
                transform var(--md-sys-motion-duration-short4, 0.15s) ease !important;
    opacity: 0 !important;
    transform: translateY(8px) !important;
}

/* ---- Filter chip hover transition (global) ---- */
.mw-chip--filter {
    transition: background var(--md-sys-motion-duration-short2, 0.1s),
                border-color var(--md-sys-motion-duration-short2, 0.1s),
                color var(--md-sys-motion-duration-short2, 0.1s);
}

/* ================================================================
   RESPONSIVE FINAL PASS — 782px (WordPress mobile admin breakpoint)
   ================================================================ */

@media (max-width: 782px) {

    /* App shell */
    .mw-app-shell {
        padding: 12px 12px 80px; /* room for bottom bar */
    }

    /* Page header */
    .mw-top-app-bar {
        padding: 12px 0 8px;
    }

    .mw-top-app-bar__title {
        font-size: var(--md-sys-typescale-headline-small-size, 24px);
    }

    /* Page intro strip */
    .mw-page-intro {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* History stats: 2 cols */
    .md-history-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Data table: allow horizontal scroll */
    .mw-media-table-card,
    .mw-history-card,
    .mw-results-card {
        overflow-x: auto;
    }

    /* Bottom bar: full width */
    .mw-bottom-bar {
        left: 0;
        padding: 10px 16px;
    }

    /* Dialog: bottom sheet */
    .mw-md3-dialog__container {
        max-width: 100%;
        width: 100%;
        border-radius: var(--md-sys-shape-corner-extra-large, 28px)
                       var(--md-sys-shape-corner-extra-large, 28px) 0 0;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        transform: translateY(100%);
        margin: 0;
    }

    .mw-md3-dialog.is-open .mw-md3-dialog__container {
        transform: translateY(0);
    }

    /* Nav tabs: scroll horizontally */
    .mw-nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mw-nav-tab {
        white-space: nowrap;
    }
}

@media (max-width: 600px) {

    /* History stats: single column */
    .md-history-stats {
        grid-template-columns: 1fr;
    }

    /* Recycle bin grid: 1 col */
    .mw-recycle-grid {
        grid-template-columns: 1fr;
    }

    /* History card header: stack */
    .mw-history-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Recycle bin settings: stack all */
    .mw-recycle-settings-row {
        flex-direction: column;
    }

    .mw-recycle-setting {
        border-right: none;
        border-bottom: 1px solid var(--md-sys-color-outline-variant, #C3C7CF);
    }

    .mw-recycle-setting:last-child {
        border-bottom: none;
    }
}

/* WordPress admin color-scheme tint guard:
   Ensure our surface colors don't bleed into WP admin panels */
#wpcontent .mw-wrap,
#wpbody-content .mw-wrap {
    color: var(--md-sys-color-on-surface, #1B1B1F);
}

/* ============================================================
   MD3 STEP 16 — End
   ============================================================ */