/**
 * Quick Migrate Styles
 */

/* Quick migrate links in post list */
.migro-content-migrator-quick {
    color: #2271b1;
    text-decoration: none;
}

.migro-content-migrator-quick:hover {
    color: #135e96;
}

.migro-content-migrator-quick:focus {
    box-shadow: none;
    outline: 1px solid #2271b1;
    outline-offset: 1px;
}

/* Dialog overlay */
.wp-cm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dialog box */
.wp-cm-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 90%;
    padding: 24px;
    animation: slideIn 0.3s ease-out;
    border: 1px solid #e2e8f0;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wp-cm-dialog h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
    color: #1d2327;
}

/* Warning message */
.wp-cm-warning {
    background: #fcf3cd;
    border-left: 4px solid #dba617;
    padding: 12px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wp-cm-warning .dashicons {
    color: #dba617;
    flex-shrink: 0;
    margin-top: 2px;
}

.wp-cm-warning p {
    margin: 0;
    color: #1d2327;
}

/* CPT Info */
.wp-cm-cpt-info {
    background: #d4f4dd;
    border-left: 4px solid #00a32a;
    padding: 10px 12px;
    margin: 15px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-cm-cpt-info p {
    margin: 0;
    color: #1d2327;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-cm-cpt-info .dashicons {
    color: #00a32a;
    flex-shrink: 0;
}

/* CPT Note */
.wp-cm-note {
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    padding: 10px 12px;
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #1d2327;
}

.wp-cm-note strong {
    font-weight: 600;
}

/* Migration includes - matches Settings tab style */
.wp-cm-migration-includes {
    background: #f0f6fc;
    border-left: 4px solid #1E40AF; /* Deep Blue - matches --wcm-success from admin.css */
    border-radius: 6px;
    padding: 16px 20px;
    margin: 15px 0;
}

.wp-cm-includes-heading {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    font-family: var(--wcm-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

.wp-cm-includes-list {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #1d2327;
    font-family: var(--wcm-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

/* Dialog actions */
.wp-cm-dialog-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wp-cm-dont-show-label {
    font-size: 13px;
    color: #50575e;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.wp-cm-dont-show-label input[type="checkbox"] {
    margin: 0;
}

.wp-cm-dialog-buttons {
    display: flex;
    gap: 10px;
}

.wp-cm-dialog-buttons .button {
    border-radius: 6px;
    font-family: var(--wcm-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
    padding: 9px 20px;
    transition: all 0.2s ease;
    height: 38px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
}

.wp-cm-dialog-buttons .button:not(.button-primary) {
    background: white;
    border: 1px solid #dcdcde;
    color: #1d2327;
}

.wp-cm-dialog-buttons .button:not(.button-primary):hover,
.wp-cm-dialog-buttons .button:not(.button-primary):focus,
.wp-cm-dialog-buttons .button:not(.button-primary):active {
    background: white;
    border-color: #FF6B6B;
    color: #FF6B6B;
}

.wp-cm-dialog-buttons .button-primary {
    background: #FF6B6B;
    border-color: #FF6B6B;
    color: white;
    box-shadow: 0 1px 2px rgba(255, 107, 107, 0.15);
}

.wp-cm-dialog-buttons .button-primary:hover,
.wp-cm-dialog-buttons .button-primary:focus,
.wp-cm-dialog-buttons .button-primary:active {
    background: #ff5252;
    border-color: #ff5252;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

/* Error dialog */
.wp-cm-error-dialog {
    max-width: 550px;
}

.wp-cm-error-message {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    padding: 12px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wp-cm-error-message .dashicons {
    color: #d63638;
    flex-shrink: 0;
    margin-top: 2px;
}

.wp-cm-error-message p {
    margin: 0;
    color: #1d2327;
}

.wp-cm-error-details {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 13px;
}

.wp-cm-error-details strong {
    display: block;
    margin-bottom: 8px;
    color: #1d2327;
}

.wp-cm-error-details ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.wp-cm-error-details li {
    padding: 3px 0;
    color: #d63638;
}

/* Success notice */
.wp-cm-notice {
    margin: 15px 0;
}

.wp-cm-notice .wp-cm-details {
    margin: 8px 0 0 0;
    padding: 0 0 0 20px;
    font-size: 13px;
    color: #50575e;
}

.wp-cm-notice .wp-cm-details li {
    padding: 2px 0;
}

/* Skip icon styling */
.wp-cm-notice .dashicons-controls-forward {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-right: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .wp-cm-dialog {
        width: 95%;
        padding: 15px;
    }
    
    .wp-cm-dialog h2 {
        font-size: 18px;
    }
    
    .wp-cm-dialog-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wp-cm-dialog-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .wp-cm-dialog-buttons .button {
        width: 100%;
        text-align: center;
    }
}

/* Loading state */
body.wp-cm-loading {
    cursor: wait !important;
}

body.wp-cm-loading * {
    pointer-events: none;
}
