/**
 * Product Configurator - Migration Page Styles
 */

.pc-migration-page {
    max-width: 800px;
}

.pc-migration-intro {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pc-migration-intro ul {
    margin-left: 20px;
    list-style: disc;
}

.pc-migration-intro li {
    margin-bottom: 5px;
}

.pc-migration-card {
    background: #fff;
    padding: 20px 25px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pc-migration-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-migration-card h2 .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pc-migration-card .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pc-migration-card .button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.pc-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pc-results h3 {
    margin-top: 0;
}

.pc-count-col {
    width: 100px;
    text-align: center;
}

.pc-warning {
    background: #fff8e5;
    border: 1px solid #ffb900;
    border-left-width: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pc-warning .dashicons {
    color: #ffb900;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pc-warning p {
    margin: 0;
}

.pc-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f0f6fc;
    border-radius: 4px;
    text-align: center;
}

.pc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: pc-spin 1s linear infinite;
}

@keyframes pc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pc-success-card {
    border-color: #46b450;
    background: #f0fff0;
}

.pc-success-card h2 {
    color: #46b450;
}

.pc-success-card h2 .dashicons {
    color: #46b450;
}

.pc-info-card {
    border-color: #0073aa;
    background: #f0f6fc;
}

.pc-info-card h2 {
    color: #0073aa;
}

.pc-info-card h2 .dashicons {
    color: #0073aa;
}

.pc-log {
    background: #f6f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
}

.pc-log-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.pc-log-item:last-child {
    border-bottom: none;
}

.pc-log-item.success {
    color: #46b450;
}

.pc-log-item.error {
    color: #dc3232;
}

.pc-log-item .count {
    font-weight: bold;
}

.pc-next-steps {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
}

.pc-next-steps h3 {
    margin-top: 0;
}

.pc-next-steps ol {
    margin-left: 20px;
    margin-bottom: 0;
}

.pc-next-steps li {
    margin-bottom: 8px;
}

.button-hero {
    padding: 12px 24px !important;
    height: auto !important;
    font-size: 16px !important;
}

.button-hero .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

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

.button.is-loading .dashicons {
    animation: pc-spin 1s linear infinite;
}

/* Status badges */
.pc-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.pc-status-success {
    background: #e8f5e9;
    color: #00a32a;
}

.pc-status-warning {
    background: #fff8e5;
    color: #996800;
}

.pc-status-error {
    background: #fef1f1;
    color: #dc3232;
}

/* Grids table */
#pc-grids-table {
    margin-top: 15px;
}

#pc-grids-table th,
#pc-grids-table td {
    vertical-align: middle;
}

#pc-grids-table .button-small {
    padding: 2px 8px;
    font-size: 12px;
}
