:root {
    --jixclean-primary: #2271b1;
    --jixclean-primary-dark: #135e96;
    --jixclean-success: #008a20;
    --jixclean-warning: #d63638;
    --jixclean-trash: #d35400;
    --jixclean-info: #0073aa;
    --jixclean-bg-light: #f6f7f7;
    --jixclean-border: #c3c4c7;
    --jixclean-card-bg: #ffffff;
    --jixclean-text-main: #2c3338;
    --jixclean-text-sub: #646970;
    --jixclean-radius: 8px;
    --jixclean-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.jixclean-wrapper {
    max-width: 960px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.jixclean-main-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--jixclean-text-main);
    font-weight: 600;
}

.jixclean-cleanup-card {
    background: var(--jixclean-card-bg);
    border: 1px solid var(--jixclean-border);
    border-radius: var(--jixclean-radius);
    box-shadow: var(--jixclean-shadow);
    padding: 30px;
}

.jixclean-notice {
    padding: 12px 16px;
    border-left: 4px solid var(--jixclean-primary);
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    margin-bottom: 25px;
}

.jixclean-notice-warning {
    border-left-color: #f0b849;
    background-color: #fcf9e8;
}

.jixclean-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--jixclean-text-sub);
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.jixclean-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.jixclean-setting-card {
    background: var(--jixclean-bg-light);
    border: 1px solid var(--jixclean-border);
    border-radius: var(--jixclean-radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
}

.jixclean-setting-card:hover {
    border-color: var(--jixclean-primary);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.jixclean-setting-card.jixclean-disabled {
    opacity: 0.7;
    pointer-events: none;
    background: #f0f0f1;
}

.jixclean-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.jixclean-toggle-label input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
}

.jixclean-toggle-text {
    display: flex;
    flex-direction: column;
}

.jixclean-toggle-title {
    font-weight: 600;
    color: var(--jixclean-text-main);
    font-size: 14px;
}

.jixclean-toggle-desc {
    font-size: 12px;
    color: var(--jixclean-text-sub);
    margin-top: 2px;
}

.jixclean-setting-alert {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--jixclean-danger);
    font-weight: bold;
    font-size: 18px;
    cursor: help;
}

.jixclean-log-actions {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.jixclean-two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .jixclean-two-col-layout {
        grid-template-columns: 1fr;
    }
}

.jixclean-criteria-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jixclean-criteria-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.jixclean-criteria-item:hover {
    background: var(--jixclean-bg-light);
}

.jixclean-criteria-item span {
    font-weight: 500;
    font-size: 13px;
    color: var(--jixclean-text-main);
}

.jixclean-criteria-danger {
    border-color: #f8d7da;
    background-color: #fdf2f2;
}
.jixclean-criteria-danger span {
    color: var(--jixclean-warning);
}

.jixclean-control-panel {
    background: #fff;
}

.jixclean-form-group {
    margin-bottom: 15px;
}

.jixclean-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--jixclean-text-main);
}

.jixclean-form-group input[type="text"],
.jixclean-form-group input[type="number"],
.jixclean-form-group input[type="email"],
.jixclean-form-group input[type="password"] {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--jixclean-border);
}

.jixclean-form-group small {
    color: var(--jixclean-text-sub);
}

.jixclean-flex-row {
    display: flex;
    gap: 15px;
}

.jixclean-flex-row .jixclean-form-group {
    flex: 1;
}

.jixclean-deep-scan-wrapper {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 15px;
}

.jixclean-deep-scan-wrapper.is-pro {
    background-color: #e5fbe5;
    border-color: #cce5cc;
}

.jixclean-deep-scan-label {
    display: flex !important;
    align-items: center;
    width: 100%;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.jixclean-deep-scan-label input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
    transform: scale(1.1);
}

.jixclean-actions-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.jixclean-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: white;
}

.jixclean-btn-info {
    background: var(--jixclean-info);
}
.jixclean-btn-info:hover {
    background: #006799;
}

.jixclean-btn-trash {
    background: var(--jixclean-trash);
}
.jixclean-btn-trash:hover {
    background: #c04d00;
}

.jixclean-btn-danger {
    background: var(--jixclean-warning);
}
.jixclean-btn-danger:hover {
    background: #c0392b;
}

.jixclean-btn-success {
    background: var(--jixclean-success);
}
.jixclean-btn-success:hover {
    background: #00761c;
}

.jixclean-btn-warning {
    background: #f0b849;
    color: #1d2327;
}
.jixclean-btn-warning:hover {
    background: #e0a800;
}

.jixclean-progress-area {
    margin-top: 20px;
    background: var(--jixclean-bg-light);
    padding: 15px;
    border-radius: var(--jixclean-radius);
}

.jixclean-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jixclean-text-sub);
}

.jixclean-stat-pill {
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--jixclean-border);
    font-size: 11px;
}

.jixclean-progress-track {
    background: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.jixclean-progress-fill {
    height: 100%;
    background: var(--jixclean-info);
    width: 0%;
    transition: width 0.3s ease;
}

.jixclean-results-toggle-area {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jixclean-text-sub);
}

.jixclean-log-console {
    margin-top: 15px;
    border: 1px solid var(--jixclean-border);
    border-radius: 4px;
    background: #fff;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.results-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.processed-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f6f7f7;
    font-size: 13px;
}

.processed-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.status-deleted { background-color: #fce8e9; color: var(--jixclean-warning); }
.status-would-delete { background-color: #e6f7ff; color: var(--jixclean-info); }
.status-orphan { background-color: #fff8e1; color: #d69e2e; }
.status-valid { background-color: #e5fbe5; color: var(--jixclean-success); }
.status-unattached { background-color: #f0f0f0; color: #555; }
.status-trashed { background-color: #ffe6cc; color: var(--jixclean-trash); }

.jixclean-help-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.jixclean-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.jixclean-help-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
}

.jixclean-help-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--jixclean-text-main);
    border-bottom: 2px solid var(--jixclean-bg-light);
    padding-bottom: 10px;
}

.jixclean-help-list {
    margin: 0;
}

.jixclean-help-list dt {
    font-weight: 700;
    color: var(--jixclean-primary);
    margin-top: 12px;
    font-size: 13px;
}

.jixclean-help-list dt:first-child {
    margin-top: 0;
}

.jixclean-help-list dd {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.jixclean-dashboard-widget { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.jixclean-stat-box { background: #fff; padding: 20px; border: 1px solid #c3c4c7; border-left: 4px solid #2271b1; border-radius: 4px; display: flex; align-items: center; gap: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.jixclean-stat-box .dashicons { font-size: 32px; width: 32px; height: 32px; color: #2271b1; }
.jixclean-stat-content { display: flex; flex-direction: column; }
.jixclean-stat-content strong { font-size: 20px; color: #1d2327; }
.jixclean-stat-content small { color: #646970; }
.jixclean-stat-warning { border-left-color: #f0b849; }
.jixclean-stat-warning .dashicons { color: #f0b849; }