/* WP Content Migration Admin Styles */

/* Import Migro Brand Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* Custom Color Variables - Migro Brand Palette */
:root {
    /* Migro Brand Colors */
    --wcm-primary: #FF6B6B;
    /* Warm Coral - primary CTAs */
    --wcm-primary-hover: #E55555;
    /* Darker Coral - hover state */
    --wcm-success: #1E40AF;
    /* Deep Blue - success/progress */
    --wcm-success-hover: #1e3a8a;
    /* Darker Blue - hover state */
    --wcm-warning: #f59e0b;
    /* Keep orange for warnings */
    --wcm-warning-hover: #d97706;
    --wcm-error: #ef4444;
    /* Keep red for errors */
    --wcm-error-hover: #dc2626;
    --wcm-accent: #A78BFA;
    /* Soft Purple - subtle accents */
    --wcm-info: #FF6B6B;
    /* Use coral for info states */
    --wcm-info-hover: #E55555;
    --wcm-background: #ffffff;
    /* White - content background */
    --wcm-page-background: #FFF8F0;
    /* Warm Cream - page/admin background */
    --wcm-border: #e2e8f0;
    /* Keep neutral border */
    --wcm-text: #2D3748;
    /* Charcoal - main text */
    --wcm-text-light: #64748b;
    /* Keep light text */
    --wcm-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wcm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wcm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Typography */
    --wcm-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Global Styles - Apply Migro Brand */
body,
#wpwrap,
#wpcontent {
    background: var(--wcm-page-background) !important;
}

#migro-content-migrator-container {
    font-family: var(--wcm-font-family);
    color: var(--wcm-text);
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: var(--wcm-shadow-lg);
    margin-top: 20px;
}

#migro-content-migrator-container h2,
#migro-content-migrator-container h3,
#migro-content-migrator-container h4 {
    font-family: var(--wcm-font-family);
    color: var(--wcm-text);
    font-weight: 600;
}

.wrap h1 {
    font-family: var(--wcm-font-family);
    color: var(--wcm-text);
    font-weight: 700;
    font-size: 28px;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.wrap h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--wcm-primary);
    border-radius: 2px;
}

/* Migro Logo Icon in Page Title */
.migro-content-migrator-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.migro-logo-icon {
    height: 32px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

#migro-content-migrator-container h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--wcm-text);
}

.migro-content-migrator-form {
    max-width: 800px;
    font-family: var(--wcm-font-family);
}

.migro-content-migrator-form .form-table {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.migro-content-migrator-form .form-table th {
    width: 180px;
    font-weight: 600;
    color: var(--wcm-text);
    padding: 16px 12px;
}

.migro-content-migrator-form .form-table td {
    padding: 16px 12px;
}

/* Enhanced Input Fields */
.migro-content-migrator-form input[type="text"],
.migro-content-migrator-form input[type="url"],
.migro-content-migrator-form input[type="password"],
.migro-content-migrator-form select,
.migro-content-migrator-form textarea {
    font-family: var(--wcm-font-family);
    border: 2px solid var(--wcm-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.migro-content-migrator-form input[type="text"]:focus,
.migro-content-migrator-form input[type="url"]:focus,
.migro-content-migrator-form input[type="password"]:focus,
.migro-content-migrator-form select:focus,
.migro-content-migrator-form textarea:focus,
#migro-content-migrator-container input[type="text"]:focus,
#migro-content-migrator-container select:focus {
    border-color: var(--wcm-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
    outline: none;
}

/* Tab Navigation - Migro Brand Style */
.nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--wcm-border);
    font-family: var(--wcm-font-family);
}

.nav-tab-wrapper .nav-tab {
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--wcm-text);
    background: transparent;
}

.nav-tab-wrapper .nav-tab:hover {
    border-bottom-color: var(--wcm-success);
    background: rgba(78, 205, 196, 0.05);
}

.nav-tab-wrapper .nav-tab-active {
    border-bottom-color: var(--wcm-primary) !important;
    color: var(--wcm-primary);
    background: #ffffff;
    font-weight: 600;
}

.tab-content {
    display: none;
    background: transparent;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Disabled Tabs (when license not active) */
.nav-tab.nav-tab-disabled {
    opacity: 0.5;
    color: #a0a5aa;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.nav-tab.nav-tab-disabled:hover {
    background-color: transparent;
    border-color: #c3c4c7;
    color: #a0a5aa;
}

.nav-tab.nav-tab-disabled::after {
    content: '\f160';
    font-family: dashicons;
    font-size: 14px;
    margin-left: 5px;
    opacity: 0.7;
}

/* Connection Status */
.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--wcm-shadow-sm);
}

.connection-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.connection-status-connected,
.connection-status-active {
    background-color: #f0f6fc;
    color: var(--wcm-success);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.connection-status-disconnected {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--wcm-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.connection-status-testing {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--wcm-warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Migration Interface - Migro Brand Style */
#migration-interface {
    padding: 0;
    background: transparent;
}

/* Migration sections - direction, content selection, conflict resolution */
.migration-direction-section,
.conflict-resolution-section {
    margin-bottom: 30px;
}

.content-selection-section {
    margin-bottom: 0;
}

.content-selection-section.limit-reached>*:not(#limit-reached-overlay) {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    pointer-events: none;
}

.migration-direction-section h3,
.content-selection-section h3,
.conflict-resolution-section h3 {
    margin-top: 0;
    border-bottom: 1px solid var(--wcm-border);
    padding-bottom: 12px;
    color: var(--wcm-text);
    font-weight: 600;
    font-family: var(--wcm-font-family);
    font-size: 16px;
}

/* Content Browser - Enhanced Cards */
.content-browser {
    border: 2px solid var(--wcm-border);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: var(--wcm-shadow-sm);
    position: relative;
}

.content-list {
    margin: 0;
}

/* Sticky header for Select All row */
.content-item.select-all-row {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.content-item:hover {
    background: #fff8f8;
    border-left: 4px solid var(--wcm-primary);
    padding-left: 14px;
    transform: translateX(2px);
}

#content-source-indicator {
    pointer-events: none;
    user-select: none;
}

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

.content-item input[type="checkbox"] {
    margin-right: 10px;
}

.content-meta {
    flex: 1;
}

.content-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.content-info {
    font-size: 12px;
    color: #666;
}

.content-actions {
    display: flex;
    gap: 5px;
}

/* Progress Indicator */
.migration-progress {
    display: none;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: var(--wcm-background);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wcm-border);
    box-shadow: var(--wcm-shadow-sm);
}

.progress-fill {
    height: 100%;
    background: var(--wcm-primary);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill.complete {
    background: var(--wcm-success);
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--wcm-text);
    font-weight: 500;
}

/* Migration Options - Enhanced Styling */
.migration-options {
    background: rgba(248, 250, 252, 0.5);
    padding: 20px 24px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid var(--wcm-border);
}

.migration-options h4 {
    margin-top: 0;
    color: var(--wcm-text);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wcm-border);
}

.migration-options label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--wcm-text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.migration-options label:hover {
    background: rgba(255, 107, 107, 0.05);
}

.migration-options input[type="checkbox"],
.migration-options input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--wcm-primary);
}

/* Direction Selector - Migro Brand Style */
.direction-selector {
    display: flex;
    gap: 16px;
    margin: 15px 0;
    padding: 16px;
    background: rgba(255, 107, 107, 0.03);
    border: 1px solid var(--wcm-border);
    border-radius: 8px;
}

.direction-option {
    flex: 1;
    text-align: center;
}

.direction-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.direction-option label {
    display: block;
    padding: 16px;
    border: 2px solid var(--wcm-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-weight: 500;
}

.direction-option label:hover {
    border-color: var(--wcm-primary);
    box-shadow: var(--wcm-shadow-md);
    transform: translateY(-2px);
}

/* Selected state for direction and conflict resolution options */
.direction-option input[type="radio"]:checked+label,
.conflict-option input[type="radio"]:checked+.conflict-option-label {
    border-color: rgb(255 107 107 / 25%);
    background: rgba(255, 107, 107, 0.06);
    box-shadow: var(--wcm-shadow-md);
}

/* Conflict Resolution Option Cards */
.conflict-option {
    position: relative;
}

.conflict-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.conflict-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    border: 2px solid var(--wcm-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
    min-height: 140px;
}

.conflict-option-label:hover {
    border-color: var(--wcm-primary);
    box-shadow: var(--wcm-shadow-md);
    transform: translateY(-2px);
}

.conflict-option-title {
    font-family: var(--wcm-font-family);
    color: var(--wcm-text);
    line-height: 1.4;
}

.conflict-option-description {
    font-family: var(--wcm-font-family);
    line-height: 1.5;
    max-width: 280px;
}

.migration-includes-info {
    font-family: var(--wcm-font-family);
}

/* ============================================================================
   SETTINGS TAB - Migro Brand Style
   ============================================================================ */

/* Toggle Connection Form Button */
#toggle-connection-form {
    font-family: var(--wcm-font-family);
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid var(--wcm-border);
    color: var(--wcm-text);
    font-size: 13px;
}

#toggle-connection-form:hover {
    border-color: var(--wcm-primary);
    color: var(--wcm-primary);
}

/* Connection Notice Styling */
#settings-tab .notice {
    border-left: 4px solid;
    border-radius: 6px;
    font-family: var(--wcm-font-family);
}

#settings-tab .notice-success {
    background: #f0f6fc;
    border-left-color: var(--wcm-success);
}

#settings-tab .notice h4 {
    color: var(--wcm-text);
    font-family: var(--wcm-font-family);
}

/* Delete Connection Link */
#delete-connection {
    color: #d63638 !important;
    font-weight: 500 !important;
}

#delete-connection:hover {
    color: #b32d2e !important;
}

/* ============================================================================
   LOGS TAB - Migro Brand Style
   ============================================================================ */

/* Tab Content Containers */
#migration-tab .migro-content-migrator-container,
#logs-tab .migro-content-migrator-container,
#settings-tab .migro-content-migrator-container,
#license-tab .migro-content-migrator-container {
    padding: 32px;
}

/* Logs Filters Section */
.wp-cm-logs-filters {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border: 1px solid var(--wcm-border);
    border-radius: 8px;
    box-shadow: var(--wcm-shadow-sm);
}

.wp-cm-filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 16px;
    align-items: end;
}

@media (max-width: 1200px) {
    .wp-cm-filters-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .wp-cm-filters-row {
        grid-template-columns: 1fr;
    }
}

.wp-cm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wp-cm-filter-group label {
    font-family: var(--wcm-font-family);
    font-weight: 600;
    color: var(--wcm-text);
    font-size: 14px;
    margin: 0;
}

.wp-cm-filter-group select,
.wp-cm-filter-group input[type="text"] {
    font-family: var(--wcm-font-family);
    border: 1px solid var(--wcm-border);
    border-radius: 6px;
    padding: 9px 12px;
    transition: all 0.2s ease;
    width: 100%;
    height: 38px;
    font-size: 13px;
    line-height: normal;
}

.wp-cm-filter-group select:focus,
.wp-cm-filter-group input[type="text"]:focus {
    border-color: var(--wcm-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
    outline: none;
}

.wp-cm-filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.wp-cm-filter-actions .button-primary {
    background-color: var(--wcm-primary);
    border-color: var(--wcm-primary);
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 9px 20px;
    transition: all 0.2s ease;
    box-shadow: none;
    font-family: var(--wcm-font-family);
    text-shadow: none;
    height: 38px;
    white-space: nowrap;
    font-size: 13px;
    line-height: normal;
}

.wp-cm-filter-actions .button-primary:hover {
    background-color: var(--wcm-primary-hover);
    border-color: var(--wcm-primary-hover);
    transform: translateY(-1px);
}

.wp-cm-filter-actions .button-primary:active {
    transform: translateY(0);
}

.wp-cm-filter-actions .button {
    border-radius: 6px;
    font-family: var(--wcm-font-family);
    padding: 9px 20px;
    transition: all 0.2s ease;
    height: 38px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    background: white;
    border: 1px solid var(--wcm-border);
    color: var(--wcm-text);
    line-height: normal;
}

.wp-cm-filter-actions .button:hover,
.wp-cm-filter-actions .button:focus,
.wp-cm-filter-actions .button:active {
    background: white;
    border-color: var(--wcm-primary);
    color: var(--wcm-primary);
}

/* Logs Table Container */
#migration-logs {
    overflow-x: auto;
    border: 2px solid var(--wcm-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--wcm-shadow-sm);
}

#migration-logs-table {
    font-family: var(--wcm-font-family);
    margin: 0;
    border: none;
    width: 100%;
    min-width: 800px;
}

/* Responsive Table - Mobile */
@media (max-width: 768px) {
    #logs-tab .migro-content-migrator-container {
        padding: 20px;
    }

    #migration-logs-table {
        min-width: 600px;
    }

    #migration-logs-table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

#migration-logs-table thead th {
    background: white;
    border-bottom: 1px solid var(--wcm-border);
    color: var(--wcm-text);
    font-weight: 600;
    padding: 12px 16px;
    font-size: 13px;
    text-align: left;
}

#migration-logs-table tbody tr {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: background 0.2s ease;
    background: white;
}

#migration-logs-table tbody tr:nth-child(odd) {
    background-color: #fffcf8;
}

#migration-logs-table tbody tr:hover {
    background: rgba(255, 107, 107, 0.02);
}

#migration-logs-table tbody tr:last-child {
    border-bottom: none;
}

#migration-logs-table tbody td {
    padding: 10px 10px;
    color: var(--wcm-text);
    font-size: 13px;
    vertical-align: middle;
}

/* Status Badges - Migro Brand Colors */
.log-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--wcm-font-family);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    vertical-align: middle;
}

.log-badge-success {
    background: rgba(78, 205, 196, 0.15);
    color: #2C7A7B;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.log-badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #C53030;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.log-badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Table Cell Content Styles */
.log-timestamp {
    color: var(--wcm-text-light);
    font-size: 12px;
}

.log-content-id {
    background: rgba(167, 139, 250, 0.15);
    color: #6B46C1;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 500;
}

.log-deleted-label {
    color: #d63638;
    font-size: 11px;
}

.log-user-name {
    color: #2271b1;
    font-size: 12px;
}

.log-direction {
    color: var(--wcm-text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

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

.log-message {
    color: var(--wcm-text);
    font-size: 13px;
}

/* Log Stats Text */
.wp-cm-log-stats {
    font-family: var(--wcm-font-family);
    margin-bottom: 16px;
}

#log-stats-text {
    color: var(--wcm-text-light);
    font-size: 13px;
}

/* Load More Button */
.wp-cm-logs-pagination .button-secondary {
    font-family: var(--wcm-font-family);
    border-radius: 6px;
    padding: 9px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 38px;
    white-space: nowrap;
    font-size: 13px;
    background: white;
    border: 1px solid var(--wcm-border);
    color: var(--wcm-text);
    line-height: normal;
}

.wp-cm-logs-pagination .button-secondary:hover,
.wp-cm-logs-pagination .button-secondary:focus,
.wp-cm-logs-pagination .button-secondary:active {
    background: white;
    border-color: var(--wcm-primary);
    color: var(--wcm-primary);
}

.log-entry {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

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

.log-entry.log-error {
    background-color: #fff5f5;
    color: #d63384;
}

.log-entry.log-success {
    background-color: #f0fff4;
    color: #198754;
}

.log-entry.log-info {
    background-color: #f8f9fa;
    color: #6c757d;
}

.log-timestamp {
    color: #6c757d;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .migro-content-migrator-form .form-table th {
        width: auto;
    }

    .direction-selector {
        flex-direction: column;
        gap: 10px;
    }

    .content-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Stack button below count on mobile */
    .content-browser+div {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .content-browser+div .button-migrate {
        width: 100%;
        text-align: center;
    }
}

/* Loading States - Enhanced Animations */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

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

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

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 107, 0.2);
    border-radius: 50%;
    border-top-color: var(--wcm-primary);
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

/* Fade-in animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.tab-content.active {
    animation: fadeIn 0.4s ease-out;
}

#migration-interface {
    animation: fadeIn 0.5s ease-out;
}

/* Buttons - Migro Brand Style */
#migro-content-migrator-container .button-primary,
#migro-content-migrator-container .button.button-primary,
.button-migrate {
    background-color: var(--wcm-primary);
    border-color: var(--wcm-primary);
    color: white;
    font-weight: 600;
    min-width: 120px;
    border-radius: 8px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    box-shadow: var(--wcm-shadow-sm);
    font-family: var(--wcm-font-family);
    text-shadow: none;
}

#migro-content-migrator-container .button-primary:hover,
#migro-content-migrator-container .button.button-primary:hover,
.button-migrate:hover {
    background-color: var(--wcm-primary-hover);
    border-color: var(--wcm-primary-hover);
    color: white;
    box-shadow: var(--wcm-shadow-md);
    transform: translateY(-1px);
}

#migro-content-migrator-container .button-primary:focus,
#migro-content-migrator-container .button.button-primary:focus,
.button-migrate:focus {
    background-color: var(--wcm-primary);
    border-color: var(--wcm-primary);
    color: white;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
}

.button-migrate:disabled,
#migro-content-migrator-container .button-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Content selection action bar - unified with content list */
.content-browser+div {
    padding: 15px 18px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    margin-top: -15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Notices within plugin - Migro Brand Style */
#migro-content-migrator-container .notice,
#migro-content-migrator-container .migro-content-migrator-notice {
    margin: 15px 0;
    padding: 14px 18px;
    border-left: 4px solid;
    border-radius: 8px;
    font-family: var(--wcm-font-family);
    box-shadow: var(--wcm-shadow-sm);
}

#migro-content-migrator-container .notice-success,
#migro-content-migrator-container .migro-content-migrator-notice.notice-success {
    border-left-color: var(--wcm-success);
    background-color: #f0f6fc;
    color: #1e3a8a;
}

#migro-content-migrator-container .notice-error,
#migro-content-migrator-container .migro-content-migrator-notice.notice-error {
    border-left-color: var(--wcm-error);
    background-color: rgba(239, 68, 68, 0.1);
    color: #7f1d1d;
}

#migro-content-migrator-container .notice-warning,
#migro-content-migrator-container .migro-content-migrator-notice.notice-warning {
    border-left-color: var(--wcm-warning);
    background-color: rgba(245, 158, 11, 0.1);
    color: #78350f;
}

#migro-content-migrator-container .notice-info,
#migro-content-migrator-container .migro-content-migrator-notice.notice-info {
    border-left-color: var(--wcm-primary);
    background-color: rgba(255, 107, 107, 0.1);
    color: #7f1d1d;
}

#migro-content-migrator-container .notice p {
    margin: 0.5em 0;
    font-size: 14px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

/* ========================================
   ENHANCED PROGRESS FEEDBACK SYSTEM
   ======================================== */

/* Migration Progress Container */
.migration-progress {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin: 10px 0 40px 0;
    display: none;
}

.migration-progress.active {
    display: block;
}

/* Statistics Dashboard */
.migration-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    border: 2px solid;
}

.stat-box.success {
    border-color: #00a32a;
}

.stat-box.skipped {
    border-color: #dba617;
}

.stat-box.failed {
    border-color: #d63384;
}

.stat-box.remaining {
    border-color: #72aee6;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-box.success .stat-number {
    color: #00a32a;
}

.stat-box.skipped .stat-number {
    color: #dba617;
}

.stat-box.failed .stat-number {
    color: #d63384;
}

.stat-box.remaining .stat-number {
    color: #72aee6;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #646970;
    letter-spacing: 0.5px;
}

/* Overall Progress Bar */
.overall-progress {
    margin-bottom: 20px;
}

.overall-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: #f0f0f1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--wcm-primary);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

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

/* Stop shimmer animation when complete */
.progress-fill.complete::after {
    animation: none;
}

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

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

/* Current Action Display */
.current-action {
    background: #f0f6fc;
    border: 1px solid rgba(30, 64, 175, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.current-action-label {
    font-weight: 600;
    color: var(--wcm-success);
    margin-bottom: 5px;
}

.current-action-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d2327;
    margin: 3px 0;
}

.current-action-step .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.step-complete {
    color: #00a32a;
}

.step-active {
    color: #0073aa;
}

.step-pending {
    color: #c3c4c7;
}

/* Item Status List */
.items-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.migration-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f1;
    transition: all 0.3s ease;
}

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

.migration-item.pending {
    background: #fff;
    opacity: 0.6;
}

.migration-item.processing {
    background: #f0f6fc;
    border-left: 3px solid #0073aa;
    animation: pulse 2s infinite;
}

.migration-item.success {
    background: #f0fff4;
    border-left: 3px solid #00a32a;
}

.migration-item.skipped {
    background: #fffbf0;
    border-left: 3px solid #dba617;
}

.migration-item.failed {
    background: #fff5f5;
    border-left: 3px solid #d63384;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.item-icon {
    font-size: 18px;
    line-height: 1;
}

.item-icon.pending {
    color: #c3c4c7;
}

.item-icon.processing .dashicons-update {
    animation: spin 1s linear infinite;
}

.item-icon.success {
    color: #00a32a;
}

.item-icon.skipped {
    color: #dba617;
}

.item-icon.failed {
    color: #d63384;
}

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

.item-status-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.item-status-badge.pending {
    background: #f0f0f1;
    color: #646970;
}

.item-status-badge.processing {
    background: #f0f6fc;
    color: #0073aa;
}

.item-status-badge.success {
    background: #d1e7dd;
    color: #0f5132;
}

.item-status-badge.skipped {
    background: #fff3cd;
    color: #997404;
}

.item-status-badge.failed {
    background: #f8d7da;
    color: #842029;
}

.item-details {
    font-size: 12px;
    color: #646970;
    margin-top: 5px;
    padding-left: 26px;
}

.item-details-list {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
}

.item-details-list li {
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-details-list .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Error Details */
.error-details {
    background: #fff;
    border: 1px solid #f1aeb5;
    border-radius: 4px;
    padding: 10px;
    margin-top: 8px;
}

.error-title {
    font-weight: 600;
    color: #842029;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message {
    color: #646970;
    margin: 5px 0;
}

.error-suggestions {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.error-suggestions-title {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-suggestions-list li {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #646970;
}

.error-suggestions-list li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #0073aa;
    font-weight: 600;
}

.error-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.error-actions .button {
    font-size: 12px;
    height: 28px;
    line-height: 26px;
    padding: 0 10px;
}

/* Results Summary */
.results-summary {
    margin-top: 20px;
    display: none;
}

.results-summary.active {
    display: block;
}

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

.results-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.results-body {
    border: 1px solid #c3c4c7;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.result-item {
    border-bottom: 1px solid #f0f0f1;
    transition: background-color 0.2s ease;
}

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

.result-item-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.result-item-header:hover {
    background: #f8f9fa;
}

.result-item.success .result-item-header {
    border-left: 3px solid #00a32a;
}

.result-item.skipped .result-item-header {
    border-left: 3px solid #dba617;
}

.result-item.failed .result-item-header {
    border-left: 3px solid #d63384;
}

.result-item-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.result-toggle {
    transition: transform 0.3s ease;
}

.result-item.expanded .result-toggle {
    transform: rotate(180deg);
}

.result-item-content {
    padding: 0 15px 12px 15px;
    display: none;
    background: #f8f9fa;
}

.result-item.expanded .result-item-content {
    display: block;
}

.result-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.result-detail-section {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #dcdcde;
}

.result-detail-title {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
    font-size: 13px;
}

.result-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.result-detail-list li {
    font-size: 12px;
    color: #646970;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 782px) {
    .migration-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-details-grid {
        grid-template-columns: 1fr;
    }

    .items-list {
        max-height: 300px;
    }
}

/* ========================================
   LOGS VIEWER STYLES
   ======================================== */

/* Log Status Badges */
.log-badge-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.log-badge-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

.log-badge-pending {
    background-color: #fff3cd;
    color: #997404;
    border: 1px solid #ffe69c;
}

/* Log Rows */
.log-row {
    transition: background-color 0.2s ease;
}

.log-row:hover {
    background-color: #f8f9fa !important;
}

.log-status-success {
    border-left: 3px solid #0f5132;
}

.log-status-error {
    border-left: 3px solid #842029;
}

.log-status-pending {
    border-left: 3px solid #997404;
}

/* Logs Table */
#migration-logs-table th {
    background-color: #f6f7f7;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 2px solid #c3c4c7;
}

#migration-logs-table td {
    padding: 10px;
    vertical-align: middle;
}

/* Logs Container */
.wp-cm-logs-container {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

/* Empty State */
.wp-cm-logs-container .description {
    padding: 40px;
    text-align: center;
    color: #646970;
    font-size: 14px;
}

/* Filters */
.wp-cm-logs-filters {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.wp-cm-filter-group label {
    color: #1d2327;
    font-size: 13px;
}

.wp-cm-filter-group select,
.wp-cm-filter-group input[type="text"] {
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07);
}

.wp-cm-filter-group select:focus,
.wp-cm-filter-group input[type="text"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Filter Actions */
.wp-cm-filter-actions button {
    height: 38px;
    padding: 0 12px;
}

/* Stats Text */
#log-stats-text {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

#log-stats-text strong {
    color: #1d2327;
    font-weight: 600;
}

/* Load More Button */
#load-more-logs {
    min-width: 150px;
}

#load-more-logs:disabled {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 782px) {
    .wp-cm-filters-row {
        flex-direction: column;
    }

    .wp-cm-filter-group,
    .wp-cm-filter-actions {
        width: 100%;
    }

    .wp-cm-filter-actions {
        flex-direction: column;
    }

    .wp-cm-filter-actions button {
        width: 100%;
    }

    #migration-logs-table {
        font-size: 12px;
    }

    #migration-logs-table th,
    #migration-logs-table td {
        padding: 8px 6px;
    }
}

/* ========================================
   COLLAPSIBLE RESULTS TABLE
   ======================================== */

/* Migration Results Container */
.migration-results {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
}

.migration-results h3 {
    margin-top: 0;
    color: #1d2327;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 10px;
}

/* Results Section */
.results-section {
    margin-bottom: 15px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.results-section-header {
    padding: 12px 15px;
    background: #f6f7f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background-color 0.2s ease;
}

.results-section-header:hover {
    background: #eaeaea;
}

.results-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1d2327;
}

.section-toggle {
    color: #646970;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.results-section-body {
    padding: 15px;
    background: #fff;
}

/* Result Items Grid */
.result-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.result-item-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px;
    transition: all 0.2s ease;
}

.result-item-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-item-card.success {
    border-left: 3px solid #00a32a;
}

.result-item-card.skipped {
    border-left: 3px solid #dba617;
}

.result-item-card.failed {
    border-left: 3px solid #d63384;
    background: #fff5f5;
}

.result-item-header-card {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.result-item-header-card .dashicons {
    font-size: 20px;
    line-height: 1;
}

.result-item-title-card {
    font-weight: 600;
    font-size: 14px;
    color: #1d2327;
    flex: 1;
    line-height: 1.4;
}

/* Result Item Meta */
.result-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 3px 8px;
    background: #f6f7f7;
    border-radius: 3px;
    color: #646970;
}

.meta-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Result Item Error */
.result-item-error {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1aeb5;
}

.result-item-error button {
    margin-top: 8px;
    font-size: 11px;
    height: 26px;
    line-height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.result-item-error .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Failed Actions Section */
.failed-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.failed-actions .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.failed-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Toggle Items List Button */
#toggle-items-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#toggle-items-list .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Retry Button States */
.retry-result-item:disabled,
.retry-all-failed:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.retry-result-item .spinner,
.retry-all-failed .spinner {
    float: none;
    margin: 0;
}

/* Responsive for Results */
@media (max-width: 782px) {
    .result-items-grid {
        grid-template-columns: 1fr;
    }

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

    .failed-actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   POST TYPE SELECTOR GRID (Phase 6.2)
   ======================================== */

.wp-cm-post-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.wp-cm-post-type-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.wp-cm-post-type-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

.wp-cm-post-type-card input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.wp-cm-post-type-card input[type="checkbox"]:checked {
    accent-color: #2271b1;
}

.wp-cm-post-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px 20px;
    text-align: center;
    gap: 8px;
}

.wp-cm-post-type-card input[type="checkbox"]:checked~.wp-cm-post-type-content {
    background: #f0f6fc;
}

.wp-cm-post-type-card input[type="checkbox"]:checked~.wp-cm-post-type-content .dashicons {
    color: #2271b1;
}

.wp-cm-post-type-content .dashicons {
    color: #646970;
    transition: color 0.2s;
}

.wp-cm-post-type-label {
    font-size: 14px;
    color: #1d2327;
    font-weight: 600;
    line-height: 1.3;
}

.wp-cm-post-type-count {
    font-size: 12px;
    color: #646970;
    font-weight: normal;
}

.wp-cm-custom-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    padding: 3px 7px;
    background: #f0f6fc;
    border: 1px solid #c0d3e8;
    border-radius: 3px;
    color: #0073aa;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-cm-custom-type {
    border-color: #c0d3e8;
}

.wp-cm-custom-type:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
}

/* Responsive */
@media (max-width: 782px) {
    .wp-cm-post-types-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .wp-cm-post-type-content {
        padding: 20px 12px 15px;
    }

    .wp-cm-post-type-content .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 600px) {
    .wp-cm-post-types-grid {
        grid-template-columns: 1fr;
    }
}

/* CPT Auto-Registration Modals */
.cpt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cpt-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
}

.cpt-modal-large {
    max-width: 800px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

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

.cpt-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #1d2327;
}

.cpt-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #646970;
    line-height: 1;
    transition: color 0.2s;
}

.cpt-modal-close:hover {
    color: #d63638;
}

.cpt-modal-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.cpt-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cpt-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #dcdcde;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* CPT Messages */
.cpt-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpt-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.cpt-message p {
    margin: 0;
    line-height: 1.5;
}

.cpt-message.success {
    background: #d4f4dd;
    color: #0a5f1e;
    border-left: 4px solid #00a32a;
}

.cpt-message.success .dashicons {
    color: #00a32a;
}

.cpt-message.info {
    background: #f0f6fc;
    color: #1d2327;
    border-left: 4px solid #2271b1;
}

.cpt-message.info .dashicons {
    color: #2271b1;
}

.cpt-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #f0b849;
}

.cpt-message.warning .dashicons {
    color: #f0b849;
}

.cpt-message .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Code Snippets */
.code-snippet-section {
    margin-bottom: 20px;
}

.code-snippet-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1d2327;
}

.code-snippet-container {
    position: relative;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 16px;
}

.code-snippet {
    margin: 0;
    padding: 0;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #1d2327;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #2271b1;
    color: #2271b1;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.copy-code-btn:hover {
    background: #2271b1;
    color: #fff;
}

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

/* Responsive Modal */
@media (max-width: 782px) {
    .cpt-modal {
        width: 95%;
        max-height: 95vh;
    }

    .cpt-modal-header {
        padding: 16px 20px;
    }

    .cpt-modal-body {
        padding: 20px;
    }

    .cpt-modal-footer {
        padding: 14px 20px;
        flex-direction: column;
    }

    .cpt-modal-footer .button {
        width: 100%;
        justify-content: center;
    }

    .code-snippet {
        font-size: 11px;
    }

    .copy-code-btn {
        position: static;
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   LICENSE TAB STYLES
   ============================================================================ */

/* ============================================================================
   LICENSE TAB - Migro Brand Style
   ============================================================================ */

.license-tab-content {
    padding: 0;
    max-width: 100%;
    font-family: var(--wcm-font-family);
}

/* License Status Section */
.license-status-section {
    margin-bottom: 40px;
}

.license-status-box {
    background: var(--wcm-page-background);
    border: 2px solid var(--wcm-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 0 0 30px 0;
    position: relative;
    box-shadow: var(--wcm-shadow-sm);
}

.license-status-box .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.license-status-box h3 {
    margin: 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--wcm-text);
    font-family: var(--wcm-font-family);
}

.license-status-box p {
    margin: 10px 0 0;
    color: var(--wcm-text-light);
    font-size: 14px;
    font-family: var(--wcm-font-family);
}

/* Active License */
.license-status-box.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
}

.license-status-box.active .dashicons {
    color: #10b981;
}

.license-status-box.active h3 {
    color: #059669;
}

/* Inactive License */
.license-status-box.inactive {
    background: rgba(245, 158, 11, 0.08);
    border-color: #F59E0B;
}

.license-status-box.inactive .dashicons {
    color: #F59E0B;
}

.license-status-box.inactive h3 {
    color: #B45309;
}

/* Expired License */
.license-status-box.expired {
    background: rgba(239, 68, 68, 0.08);
    border-color: #EF4444;
}

.license-status-box.expired .dashicons {
    color: #EF4444;
}

.license-status-box.expired h3 {
    color: #C53030;
}

/* Invalid License */
.license-status-box.invalid {
    background: rgba(239, 68, 68, 0.08);
    border-color: #EF4444;
}

.license-status-box.invalid .dashicons {
    color: #EF4444;
}

.license-status-box.invalid h3 {
    color: #C53030;
}

/* License Details Table */
.license-details {
    margin-top: 30px;
}

.license-info-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border: 2px solid var(--wcm-border);
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--wcm-font-family);
}

.license-info-table th,
.license-info-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.license-info-table th {
    font-weight: 600;
    color: var(--wcm-text);
    width: 40%;
    background: var(--wcm-page-background);
}

.license-info-table td {
    color: var(--wcm-text);
}

.license-info-table td code {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.license-info-table tr:last-child th,
.license-info-table tr:last-child td {
    border-bottom: none;
}

/* License Activation Section */
.license-activation-section {
    background: var(--wcm-page-background);
    border: 2px solid var(--wcm-border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--wcm-shadow-sm);
}

.license-activation-section h3 {
    margin-top: 0;
    font-size: 20px;
    color: var(--wcm-text);
    font-family: var(--wcm-font-family);
    font-weight: 600;
}

.license-activation-section p {
    color: var(--wcm-text-light);
    margin-bottom: 20px;
    font-family: var(--wcm-font-family);
}

/* License Input Group */
.license-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.license-key-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Monaco', 'Courier New', monospace;
    letter-spacing: 1px;
    border: 2px solid var(--wcm-border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.license-key-input:focus {
    border-color: var(--wcm-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
}

.license-key-input::placeholder {
    letter-spacing: normal;
    font-family: var(--wcm-font-family);
    color: var(--wcm-text-light);
}

#activate-license-btn {
    padding: 12px 32px;
    font-size: 14px;
    height: auto;
    white-space: nowrap;
    font-family: var(--wcm-font-family);
    background-color: var(--wcm-primary);
    border-color: var(--wcm-primary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#activate-license-btn:hover {
    background-color: var(--wcm-primary-hover);
    border-color: var(--wcm-primary-hover);
    transform: translateY(-1px);
}

#deactivate-license-btn {
    padding: 12px 32px;
    font-size: 14px;
    height: auto;
    font-family: var(--wcm-font-family);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: white;
    border: 2px solid #EF4444;
    color: #EF4444;
}

#deactivate-license-btn:hover {
    background-color: #EF4444;
    border-color: #EF4444;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

#deactivate-license-btn:active {
    transform: translateY(0);
}

/* License Messages */
.license-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
    font-size: 14px;
}

.license-message.success {
    display: block;
    background: #e7f5e7;
    border: 1px solid #46b450;
    color: #2d6b2f;
}

.license-message.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* License Help Section */
.license-help {
    margin-top: 30px;
    padding: 20px;
    background: #f0f6fc;
    border-left: 4px solid var(--wcm-success);
    border-radius: 8px;
}

.license-help h4 {
    margin-top: 0;
    color: var(--wcm-success);
    font-size: 16px;
}

.license-help ul {
    margin: 10px 0 0 20px;
    color: #555;
}

.license-help li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .license-input-group {
        flex-direction: column;
    }

    #activate-license-btn {
        width: 100%;
    }

    .license-info-table th,
    .license-info-table td {
        padding: 10px 15px;
        font-size: 14px;
    }

    .license-status-box {
        padding: 20px;
    }

    .license-status-box .dashicons {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }

    .license-status-box h3 {
        font-size: 20px;
    }
}

/* ============================================================================
   BETA PROMOTION BANNER
   ============================================================================ */
.migro-beta-banner {
    margin-top: 50px;
    background: linear-gradient(180deg, #FFF4EC 0%, #FFEAE0 100%);
    color: var(--wcm-text);
    border-radius: 16px;
    padding: 48px;
    font-family: var(--wcm-font-family);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.migro-beta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.migro-beta-banner h2 {
    color: #1a202c !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.migro-beta-banner .main-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #4a5568;
    max-width: 750px;
    margin-bottom: 40px;
}

.migro-beta-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.migro-beta-feature {
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.migro-beta-feature:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.migro-beta-feature .feature-icon {
    width: 40px;
    height: 40px;
    background: #FF6B6B;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #ffffff;
}

.migro-beta-feature h3 {
    color: #1a202c !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
}

.migro-beta-feature p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.migro-beta-button {
    display: inline-flex;
    align-items: center;
    background: #1a202c; /* Match "Apply for Beta Access" button in screenshot */
    color: white !important;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.migro-beta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: #000000;
    color: white !important;
}

.migro-beta-button .dashicons {
    margin-left: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 1024px) {
    .migro-beta-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .migro-beta-banner {
        padding: 32px;
    }
    
    .migro-beta-banner h2 {
        font-size: 26px !important;
    }
}