.gf-migration-page {
    max-width: 1100px;
}

.gf-migration-lead {
    color: #50575e;
}

.gf-migration-shell {
    margin-top: 20px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
}

.gf-migration-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid #dcdcde;
    position: relative;
}

.gf-migration-tab {
    border: none;
    background: transparent;
    padding: 12px 16px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    color: #50575e;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf-migration-tab:hover {
    color: #1d2327;
}

.gf-migration-tab.is-active {
    color: #1d2327;
}

.gf-migration-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--wp-admin-theme-color, #3858e9);
    border-radius: 2px 2px 0 0;
}

.gf-migration-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #e2e4e7;
    color: #50575e;
    line-height: 1;
}

.gf-migration-tab.is-active .gf-migration-tab-badge {
    background: var(--wp-admin-theme-color, #3858e9);
    color: #ffffff;
}

.gf-migration-panel {
    display: none;
    padding: 20px 16px;
}

.gf-migration-panel.is-active {
    display: block;
}

.gf-migration-panel-head h2 {
    margin: 0 0 6px;
}

.gf-migration-form-toolbar {
    margin: 16px 0 10px;
}

.gf-migration-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.gf-migration-panel-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 6px;
}

.gf-migration-form-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    background: #ffffff;
    max-height: 360px;
    overflow: auto;
}

.gf-migration-form-row {
    border-bottom: 1px solid #eef1f3;
    padding: 12px 14px;
}

.gf-migration-form-row:last-child {
    border-bottom: 0;
}

.gf-migration-form-row label {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gf-migration-form-title {
    font-weight: 600;
}

.gf-migration-form-count {
    color: #6c7781;
    font-size: 12px;
}

.gf-migration-footer {
    position: sticky;
    bottom: 0;
    margin-top: 16px;
    padding: 14px 16px;
    border-top: 1px solid #e2e4e7;
    border-radius: 0;
    background: transparent;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.gf-migration-mode {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.gf-migration-actions {
    margin-left: auto;
}

.gf-migration-inline-status {
    margin-top: 16px;
}

.gf-migration-progress {
    max-width: 720px;
    height: 6px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.gf-migration-progress .progress-bar {
    background: var(--wp-admin-theme-color, #3858e9);
    color: #ffffff;
}

.gf-migration-progress-label,
.gf-migration-animated-text {
    margin-top: 12px;
}

.gf-migration-animated-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gf-migration-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #dcdcde;
    border-top-color: var(--wp-admin-theme-color, #3858e9);
    border-radius: 50%;
    animation: gf-migration-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes gf-migration-spin {
    to { transform: rotate(360deg); }
}

.gf-migration-results-table-wrap {
    margin-top: 18px;
}


.gf-migration-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.gf-migration-badge-migrated {
    background: #d1e7dd;
    color: #0f5132;
}

.gf-migration-badge-partial {
    background: #fff3cd;
    color: #664d03;
}

.gf-migration-badge-error {
    background: #f8d7da;
    color: #842029;
}

.gf-migration-badge-skipped {
    background: #e2e3e5;
    color: #41464b;
}

.gf-migration-skipped-row td {
    background: #fbfbfc;
}

.gf-migration-skipped-list {
    margin: 0;
    padding-left: 18px;
}

.gf-migration-results-actions {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .gf-migration-footer {
        align-items: stretch;
    }

    .gf-migration-mode,
    .gf-migration-actions {
        width: 100%;
    }

    .gf-migration-actions .button {
        width: 100%;
        text-align: center;
    }

    .gf-migration-form-row label {
        align-items: flex-start;
        flex-direction: column;
    }
}
