/* Source: admin-style.css */
/**
 * AI Image SEO - Admin Styles (Minimal)
 * Core admin styles - page-specific styles are in plugin/*.css
 * Refactored: 2025-12-04 13:47:13
 */

/* @import removed - file already included */
/* @import removed - file already included */
.infyp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif
}

.infyp-wrap h1,
.wrap h1 {
    margin-bottom: 0.8rem;
}

/* =============================================
   TABLE COLUMN WIDTHS - FREE VERSION
   Category A: Fixed Small (ID)
   Category B: Visual Fixed (Image, Usage, SEO Score)
   Category C: Content Editable (Keywords, Filename, Alt Text, Title)
   Category D: Actions
   ============================================= */

/* Category A: Fixed Small */

/* Category B: Visual Fixed */

/* Category C: Content Editable - ALL EQUAL WIDTH */

/* Category D: Actions */

.infyp-score-modal-content .infyp-score-progress {
    stroke-width: 5
}

/* Score Summary Table Styles */

.infyp-quick-fix-icon {
    color: var(--infyp-info);
    font-size: var(--infyp-font-size-2xl);
    flex-shrink: 0;
    margin-top: var(--infyp-spacing-xxs)
}

.infyp-quick-fix-content {
    flex: 1;
    font-size: var(--infyp-font-size-md);
    line-height: 1.5
}

.infyp-quick-fix-content strong {
    color: var(--infyp-text-primary)
}

.infyp-optimize-from-modal {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-sm)
}

.infyp-optimize-from-modal .infyp-optimize-icon {
    font-size: var(--infyp-font-size-lg);
    line-height: 1
}

/* column-usage and column-actions widths defined in column width section above */

tr.infyp-optimizing {
    background: linear-gradient(135deg, var(--infyp-warning-bg) 0%, #fde68a 100%) !important;
    animation: infyp-pulse 2s ease-in-out infinite
}

tr.infyp-optimizing td {
    position: relative;
    overflow: hidden
}

tr.infyp-optimizing td::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: infyp-shimmer 2s infinite
}

tr.infyp-success {
    background-color: var(--infyp-success-bg) !important;
    transition: background-color 0.3s ease
}

tr.infyp-success td {
    animation: infyp-success-flash 0.5s ease
}

/* Row optimizing state - disable all inputs */

/* Field loading spinner - shown while modal is loading */

.infyp-field-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    float: none !important;
}

.infyp-field-spinner.spinner {
    background-size: 20px 20px;
    visibility: visible;
}

/* Keywords wrapper loading state */

/* Usage details wrapper loading state */

/* Actions wrapper loading state */

/* Action column loading state (for bulk optimization) */

/* Bulk processing row highlight */

tr.infyp-error {
    background-color: var(--infyp-error-bg) !important;
    transition: background-color 0.3s ease
}

/* Form Styles Following WordPress Standards */

.infyp-settings-form {
    padding: 0;
    padding-top: 5px;
}

.infyp-form-row {
    margin-top: 10px;
    margin-bottom: 10px;
}

.infyp-form-row:last-child {
    margin-bottom: 0;
}

.infyp-form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--infyp-text-primary);
}

.infyp-form-label strong {
    font-weight: 600;
}

.infyp-field-description {
    margin-top: 0;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-secondary); /* WordPress description text color */
    font-size: var(--infyp-font-size-base);
    font-style: normal;
}

.infyp-form-row label {
    display: block;
    margin-bottom: var(--infyp-spacing-xs);
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary)
}

.infyp-form-row select,
.infyp-form-row input[type="text"],
.infyp-form-row textarea {
    width: 100%;
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    background: var(--infyp-bg-white);
    transition: all var(--infyp-transition-fast)
}

.infyp-form-row select:focus,
.infyp-form-row input[type="text"]:focus,
.infyp-form-row textarea:focus {
    border-color: var(--infyp-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--infyp-primary)
}

/* Form Actions */

.infyp-save-status {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    font-size: var(--infyp-font-size-base);
    line-height: 18px; /* Align with button height */
}

/* Notice inside metabox */

.infyp-model-notice {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    background: white !important;
}

.infyp-status-message {
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    border-radius: var(--infyp-radius-md);
    margin: var(--infyp-spacing-sm) 0;
    font-size: var(--infyp-font-size-md)
}

.infyp-status-message.success {
    background: var(--infyp-success-bg);
    color: var(--infyp-success-text);
    border: 1px solid var(--infyp-success)
}

.infyp-status-message.error {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text);
    border: 1px solid var(--infyp-error)
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden
}

@media (prefers-contrast:high) {

    .infyp-card {
        border-width: 2px
    }

    .infyp-btn:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid var(--infyp-primary);
        outline-offset: 2px
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important
    }
}

.infyp-seo-score-wrapper {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm)
}

.infyp-score-circle {
    position: relative;
    width: 70px;
    height: 70px
}

.infyp-score-circle.small {
    width: 60px;
    height: 60px
}

.infyp-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg)
}

.infyp-score-bg {
    fill: none;
    stroke: var(--infyp-bg-light);
    stroke-width: 3.8
}

.infyp-score-progress {
    fill: none;
    stroke: var(--infyp-success-secondary);
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease 0s
}

.infyp-score-progress.optimized {
    stroke: var(--infyp-success-secondary)
}

.infyp-score-progress.good {
    stroke: var(--infyp-primary)
}

.infyp-score-progress.fair {
    stroke: var(--infyp-warning)
}

.infyp-score-progress.poor {
    stroke: var(--infyp-error)
}

.infyp-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center
}

.infyp-score-number {
    font-size: var(--infyp-font-size-sm);
    font-weight: 600;
    color: var(--infyp-text-dark);
    display: block
}

.infyp-score-circle.small .infyp-score-number {
    font-size: 0.9rem
}

.infyp-check-seo-breakdown {
    display: block;
    width: 100%
}

.infyp-optimize-ai {
    display: block;
    width: 100%;
}

/* column-seo_score width defined in column width section above */

.infyp-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--infyp-spacing-sm);
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    background-color: var(--infyp-text-primary);
    color: var(--infyp-white);
    font-size: var(--infyp-font-size-sm);
    line-height: 1.4;
    white-space: nowrap;
    border-radius: var(--infyp-radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10000;
    pointer-events: none
}

.infyp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: var(--infyp-text-primary) transparent transparent transparent
}

/* column-keywords width defined in column width section above */

button.infyp-optimize-ai {
    width: 100%;
}

button.infyp-has-icon .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    line-height: 14px;
    vertical-align: text-bottom;
    margin-right: var(--infyp-spacing-xs)
}

button.infyp-has-icon .dashicons-yes-alt {
    color: var(--infyp-success-secondary);
    vertical-align: sub !important;
}

.infyp-disclaimer-text {
    line-height: 1.2;
}

.infyp-modal-image-preview {
    width: 100%;
    margin-bottom: var(--infyp-spacing-lg);
    border-radius: var(--infyp-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px
}

.infyp-modal-image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    background: white;
}

/* Alt text styles moved to modals.css */

.infyp-field-optimization-section {
    display: flex;
    flex-direction: column;
    gap: var(--infyp-spacing-sm);
}

.infyp-optimize-button-grid {
    display: grid;
    gap: var(--infyp-spacing-sm);
    width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}

.infyp-optimize-button-grid .infyp-optimize-ai {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px!important;
}

@media screen and (max-width: 480px) {
    .infyp-optimize-button-grid {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }
}

/* Title input styles moved to modals.css */

.infyp-seo-guidelines {
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md);
    margin-top: var(--infyp-spacing-md);
}

.infyp-seo-guidelines h4 {
    margin: 0 0 var(--infyp-spacing-sm) 0;
    font-size: 0.875rem;
    font-weight: 600
}

.infyp-seo-guidelines ul {
    margin: 0;
    padding-left: 0;
    list-style: none
}

.infyp-seo-guidelines li {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-xs)
}

.infyp-seo-guidelines .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
    color: var(--infyp-primary)
}

/* Usage Modal Styles */

/* Post Type Filter Styles - Inline Version */

/* ============================================
   Post Type Filter Styles - Dedicated Classes
   ============================================ */

/* Filter Wrapper */

/* Filter Token List Container */

/* Hide scrollbar but keep functionality */

/* Individual Filter Token */

/* All Token Special Styling */

/* Filter Token Remove Button */

/* Filter Input Field */

/* Placeholder text when limit is reached */

/* Table wrapper */

/* Hide table, search box and filters until page is fully loaded */

/* Use generic selector to work with all languages (class 'images' is translated) */

/* Hide old search box during skeleton loading */

/* Hide old search box - we use modern search now */

/* =============================================
   TABLE CONTROLS - Filter & Bulk Actions
   ============================================= */

/* Hide controls until page is ready */

/* Responsive adjustments */

/* =============================================
   HIDE TOP PAGINATION - Keep only bottom
   ============================================= */

/* Hide empty top tablenav area */

/* Modern Search Styles */

/* Hide native search cancel button (we have our own clear button) */

/* Search Results Dropdown */

/* Search result keyboard focus */

/* Search result SEO badge */

/* Row highlight animation for search result click */

/* Skeleton loading animation */

/* Dynamic overlay positioned by JavaScript (for filtering/pagination) */

/* Post Type Filter Token Styles */

.infyp-post-type-tokens {
    border: 1px solid var(--infyp-text-lighter);
    border-radius: var(--infyp-radius-md);
    background: var(--infyp-white);
}

.infyp-post-type-tokens:focus-within {
    border-color: var(--infyp-primary);
    box-shadow: 0 0 0 1px var(--infyp-primary);
}

.infyp-post-type-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--infyp-spacing-xs);
    background: var(--infyp-white);
    border: 1px solid var(--infyp-text-lighter);
    border-radius: var(--infyp-radius-md);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.infyp-dropdown-search {
    padding: var(--infyp-spacing-sm);
    border-bottom: 1px solid var(--infyp-border-light);
}

.infyp-dropdown-search-input {
    width: 100%;
    padding: 6px var(--infyp-spacing-sm);
    border: 1px solid var(--infyp-text-lighter);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
}

.infyp-dropdown-options {
    overflow-y: auto;
    max-height: 250px;
}

.infyp-dropdown-option {
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    cursor: pointer;
    font-size: var(--infyp-font-size-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.infyp-dropdown-option:hover {
    background: var(--infyp-bg-light);
}

.infyp-dropdown-option.infyp-option-selected {
    background: var(--infyp-primary-bg);
}

.infyp-dropdown-option.infyp-option-selected:hover {
    background: var(--infyp-info-bg-light);
}

/* Limit reached state */

.infyp-dropdown-option.infyp-option-limit-reached {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.infyp-dropdown-option.infyp-option-limit-reached:hover {
    background: transparent;
}

/* Selected check icon */

.infyp-dropdown-option .infyp-selected-check {
    margin-left: auto;
    color: var(--infyp-success-secondary);
    font-size: var(--infyp-font-size-xl);
    width: 18px;
    height: 18px;
    line-height: 18px;
    display: none;
}

.infyp-dropdown-option.infyp-option-selected .infyp-selected-check {
    display: inline-block !important;
}

/* Hide category badge when item is selected (check icon is shown) */

.infyp-dropdown-option.infyp-option-selected .infyp-category-badge {
    display: none !important;
}

/* Category badges for post type dropdown */

.infyp-category-badge {
    display: inline-block;
    font-size: var(--infyp-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 6px;
    border-radius: 3px;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

/* WordPress badge */

.infyp-post-type-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    box-shadow: var(--infyp-shadow-md);
    z-index: 1000;
    margin-top: var(--infyp-spacing-xs);
    max-height: 300px;
    overflow-y: auto;
}

/* Alt text recommendations styles moved to modals.css */

.infyp-alt-text-trigger,
.infyp-title-trigger {
    background: var(--infyp-bg-white) !important;
    cursor: pointer !important;
    transition: all var(--infyp-transition-fast)
}

.infyp-alt-text-trigger:hover,
.infyp-title-trigger:hover {
    background: var(--infyp-bg-light) !important;
    border-color: var(--infyp-primary) !important;
    box-shadow: 0 0 0 1px var(--infyp-primary)
}

.infyp-manual-update-status {
    display: block;
    height: 20px;
    margin-top: 5px
}

/* Modal optimize styles moved to modals.css */

/* Notice Styles */

.infyp-model-notice {
    display: none;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    background: white !important;
}

/* Status Icon Colors */

.infyp-status-error {
    color: var(--infyp-error);
}

.infyp-status-icon {
    vertical-align: middle;
}

.infyp-status-message {
    vertical-align: middle;
}

/* Enhanced Keywords Styles */

/* Icon styling in keyword badges */

/* Plus icon specific sizing */

/* Clear keywords button - matches Edit Keywords button style */

/* Clear Keywords Confirmation Modal - uses keywords lightbox base styles */

/* Keywords Modal - WordPress Token Field Style */

/* WordPress-style Token Field */

/* Override WordPress admin styles for keyword modal input */

/* Override WordPress disabled styles for keyword modal */

/* Notification styles */

.infyp-notification {
    position: fixed;
    top: 50px;
    right: 20px;
    padding: var(--infyp-spacing-md) var(--infyp-spacing-xl);
    background: var(--infyp-bg-white);
    border-left: 4px solid var(--infyp-primary);
    box-shadow: var(--infyp-shadow-md);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
    z-index: 100002;
    display: none;
}

.infyp-notification .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
    line-height: 16px;
    flex-shrink: 0;
}

.infyp-notification-text {
    font-weight: var(--infyp-font-weight-bold);
    font-size: var(--infyp-font-size-base);
    line-height: 1.4;
}

.infyp-notification-success {
    border-left-color: var(--infyp-success);
}

.infyp-notification-success .dashicons {
    color: var(--infyp-success);
}

.infyp-notification-error {
    border-left-color: var(--infyp-error);
}

.infyp-notification-error .dashicons {
    color: var(--infyp-error);
}

.infyp-notification-warning {
    border-left-color: var(--infyp-warning);
}

.infyp-notification-warning .dashicons {
    color: var(--infyp-warning);
}

/* Modal Keywords Display - moved to modals.css */

/* Save Status Display (consistent across all settings) */

.infyp-save-status {
    margin-left: 10px;
    padding: 5px var(--infyp-spacing-md);
    border-radius: var(--infyp-radius-md);
    display: none;
    align-items: center;
    gap: 5px;
    font-size: var(--infyp-font-size-base);
}

.infyp-save-status.success {
    display: inline-flex;
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text);
    border: 1px solid var(--infyp-success-secondary-bg);
}

.infyp-save-status.error {
    display: inline-flex;
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text);
    border: 1px solid var(--infyp-error-border-light);
}

.infyp-save-status .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
}

/* Usage Modal Badges */

/* Post Type Badges */

/* Usage Type Badges */

/* Specific Page Builder Badges */

.infyp-check-usage {
    min-width: 130px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* =============================================
   AJAX TABLE LOADER - Skeleton & Loading States
   ============================================= */

/* Skeleton loader container */
.infyp-table-skeleton {
    display: block;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Skeleton header row */
.infyp-skeleton-header {
    display: flex;
    background: #f0f0f1;
    border-bottom: 1px solid #c3c4c7;
    padding: 8px 10px;
}

/* Skeleton data rows */
.infyp-skeleton-row {
    display: flex;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f1;
}

.infyp-skeleton-row:last-child {
    border-bottom: none;
}

/* Skeleton cells */
.infyp-skeleton-cell {
    flex: 1;
    padding: 4px 8px;
}

.infyp-skeleton-cell.infyp-skeleton-checkbox {
    flex: 0 0 40px;
    max-width: 40px;
}

.infyp-skeleton-cell.infyp-skeleton-image {
    flex: 0 0 80px;
    max-width: 80px;
}

.infyp-skeleton-cell.infyp-skeleton-title,
.infyp-skeleton-cell.infyp-skeleton-field {
    flex: 1 1 150px;
}

.infyp-skeleton-cell.infyp-skeleton-actions {
    flex: 0 0 200px;
    max-width: 200px;
}

/* Skeleton content placeholder */
.infyp-skeleton-content {
    height: 20px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: infyp-skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Table row skeleton (inside actual table) */
tr.infyp-skeleton-row td.infyp-skeleton-cell {
    padding: 15px 10px;
}

tr.infyp-skeleton-row td.infyp-skeleton-cell .infyp-skeleton-content {
    height: 16px;
    width: 80%;
}

/* Shimmer animation */
@keyframes infyp-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Loading overlay */
.infyp-table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 4px;
}

.infyp-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.infyp-loading-spinner .spinner {
    float: none;
    margin: 0;
}

.infyp-loading-text {
    color: #50575e;
    font-size: 14px;
}

/* Table wrapper loading state */
.infyp-table-wrapper.infyp-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error state */
.infyp-table-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    color: #d63638;
}

.infyp-table-error .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.infyp-table-error .infyp-retry-load {
    margin-left: auto;
}

/* AJAX pagination buttons */
.infyp-ajax-page {
    cursor: pointer;
}

.infyp-ajax-page:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.infyp-page-input {
    width: 50px;
    text-align: center;
}

/* =============================================
   CACHE WARMING BANNER
   Shows during first load to inform user
   ============================================= */

.infyp-cache-warming-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #e7f3ff 0%, #f0f8ff 100%);
    border-left: 4px solid var(--infyp-primary, #0073aa);
    border-radius: 0 4px 4px 0;
    margin: 16px 0;
    animation: infyp-slide-in 0.3s ease-out;
}

.infyp-cache-warming-banner .spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: 20px 20px;
}

.infyp-cache-warming-message {
    color: var(--infyp-primary, #0073aa);
    font-size: 13px;
    font-weight: 500;
}

@keyframes infyp-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thumbnail styles for image table */
.infyp-table-thumbnail {
    border-radius: 4px;
    object-fit: cover;
}

.infyp-no-thumbnail {
    opacity: 0.5;
    background: #f0f0f0;
}


/* Source: modals.css */
/**
 * AI Image SEO - Modal Content Styles
 * Content-specific styles for lightbox modals (inputs, recommendations, scores, etc.)
 * Base lightbox structure is defined in framework/components/modals.css
 */

/* ==========================================================================
   Filename Modal Content
   ========================================================================== */

.infyp-filename-input {
    width: 100%;
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    font-size: 1rem;
}

.infyp-filename-counter {
    font-size: 0.875rem;
    color: var(--infyp-text-secondary);
}

/* ==========================================================================
   Alt Text Modal Content
   ========================================================================== */

.infyp-alt-text-textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--infyp-spacing-sm);
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
    resize: vertical;
}

.infyp-alt-text-textarea:focus {
    border-color: var(--infyp-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--infyp-primary);
}

.infyp-alt-text-counter {
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-secondary);
}

/* ==========================================================================
   Title Modal Content
   ========================================================================== */

.infyp-title-input {
    width: 100%;
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    font-size: 1rem;
}

.infyp-title-counter {
    font-size: 0.875rem;
    color: var(--infyp-text-secondary);
}

/* ==========================================================================
   Modal Keywords Display
   ========================================================================== */

.infyp-modal-keywords-display {
    background: var(--infyp-bg-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md);
    margin-bottom: var(--infyp-spacing-md);
    border: 1px solid var(--infyp-border-light);
}

.infyp-modal-keywords-header {
    margin-bottom: var(--infyp-spacing-sm);
}

.infyp-modal-keywords-label {
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infyp-modal-keywords-list {
    display: flex;
    gap: var(--infyp-spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--infyp-spacing-sm);
}

.infyp-modal-keyword-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    background: var(--infyp-bg-white);
    border: none;
    border-radius: var(--infyp-radius-full);
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-primary);
    font-weight: var(--infyp-font-weight-medium);
    transition: all 0.2s ease;
}

.infyp-modal-keyword-badge.keyword-used {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text);
    border: none;
}

.infyp-modal-keyword-badge.keyword-unused {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text);
    border: none;
}

.infyp-modal-keyword-badge .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
}


.infyp-modal-keyword-badge.keyword-unused .dashicons {
    color: var(--infyp-warning-text);
}

.infyp-modal-keywords-hint {
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-secondary);
    font-style: italic;
}

/* ==========================================================================
   Usage Modal Content
   ========================================================================== */

.infyp-usage-details-section {
    background: var(--infyp-bg-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md);
    margin-bottom: var(--infyp-spacing-md);
}

.infyp-usage-details-section h4 {
    margin-top: 0;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-primary);
    font-size: 1rem;
}

.infyp-usage-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infyp-usage-details li {
    padding: var(--infyp-spacing-sm);
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-sm);
    margin-bottom: var(--infyp-spacing-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.infyp-usage-details li:hover {
    background: var(--infyp-bg-hover);
    border-color: var(--infyp-primary);
}

.infyp-usage-details li a {
    text-decoration: none;
    color: var(--infyp-primary);
    font-weight: 500;
    flex: 1;
}

.infyp-usage-details li a:hover {
    text-decoration: underline;
}

.infyp-usage-info {
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md);
}

.infyp-usage-info h4 {
    margin-top: 0;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-primary);
    font-size: 1rem;
}

.infyp-usage-legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infyp-usage-legend li {
    padding: var(--infyp-spacing-xs) 0;
    color: var(--infyp-text-secondary);
    font-size: 0.9rem;
}

.infyp-usage-badge {
    display: inline-block;
    padding: var(--infyp-spacing-xxs) var(--infyp-spacing-sm);
    border-radius: var(--infyp-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: var(--infyp-spacing-xs);
}

.infyp-usage-badge.featured {
    background: var(--infyp-badge-featured-bg);
    color: var(--infyp-primary-dark);
}

.infyp-usage-badge.content {
    background: var(--infyp-badge-content-bg);
    color: var(--infyp-badge-content-text);
}

.infyp-usage-badge.builder {
    background: var(--infyp-badge-builder-bg);
    color: var(--infyp-badge-builder-text);
}

.infyp-refresh-usage {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
}

.infyp-usage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infyp-usage-list li {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm);
    flex-wrap: wrap;
}

.infyp-usage-list a {
    font-weight: 500;
    text-decoration: none;
    color: var(--infyp-primary);
}

.infyp-usage-list a:hover {
    color: var(--infyp-primary-dark);
    text-decoration: underline;
}

.infyp-usage-list p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   Modal Image Preview
   ========================================================================== */

.infyp-modal-image-preview {
    width: 100%;
    margin-bottom: var(--infyp-spacing-lg);
    border-radius: var(--infyp-radius-md);
    overflow: hidden;
    background: var(--infyp-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.infyp-modal-image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

/* Image Preview Modal - full-size image display */
.infyp-image-preview-lightbox .infyp-modal-image-preview {
    margin-bottom: 0;
}

.infyp-image-preview-lightbox .infyp-modal-image-preview img {
    max-height: 70vh;
}

.infyp-image-preview-lightbox-footer {
    gap: var(--infyp-spacing-md);
}

/* ==========================================================================
   Custom Prompt Modal Content
   ========================================================================== */

h4.infyp-custom-prompt-description {
    margin: 0 0 var(--infyp-spacing-sm) 0;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
    font-weight: var(--infyp-font-weight-semibold);
}

.infyp-custom-prompt-textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--infyp-spacing-sm);
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
    resize: vertical;
    box-sizing: border-box;
}

.infyp-custom-prompt-textarea:focus {
    border-color: var(--infyp-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--infyp-primary);
}

.infyp-custom-prompt-lightbox-footer {
    justify-content: flex-end;
}

/* ==========================================================================
   Modal Optimize Grid
   ========================================================================== */

.infyp-modal-optimize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--infyp-spacing-sm);
    padding-top: var(--infyp-spacing-md);
    margin-top: var(--infyp-spacing-sm);
    margin-bottom: var(--infyp-spacing-sm);
    border-top: 1px solid var(--infyp-border-light);
}

.infyp-modal-optimize-grid.infyp-optimizing {
    grid-template-columns: 1fr 1fr;
}

.infyp-ai-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--infyp-spacing-xs);
    width: 100%;
    min-height: 29px;
    box-sizing: border-box;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-xs);
    font-weight: 500;
    color: var(--infyp-text-muted);
    position: relative;
    cursor: help;
}

.infyp-ai-disclaimer .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: var(--infyp-text-muted);
}

.infyp-ai-disclaimer .infyp-tooltip {
    white-space: normal;
    min-width: 200px;
    text-align: center;
}

.infyp-ai-disclaimer:hover .infyp-tooltip {
    opacity: 1;
    visibility: visible;
}

.infyp-modal-optimize-grid.infyp-optimizing .infyp-ai-disclaimer,
.infyp-modal-optimize-grid.infyp-optimizing .infyp-optimize-ai {
    display: none;
}

.infyp-modal-optimize-spinner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-sm);
    padding: var(--infyp-spacing-sm);
    color: var(--infyp-primary);
}

.infyp-modal-optimize-spinner .spinner {
    float: none;
    margin: 0;
}

/* Status container inside modal spinner */
.infyp-modal-optimize-spinner .infyp-optimize-status {
    min-height: auto;
}

.infyp-modal-optimize-spinner .infyp-optimize-status .infyp-field-spinner {
    position: static;
    transform: none;
    float: none;
    margin: 0;
}

.infyp-modal-optimize-center {
    margin-top: var(--infyp-spacing-lg);
    text-align: center;
}

.infyp-modal-optimize-icon {
    margin-right: 5px;
    vertical-align: middle;
}

/* ==========================================================================
   Modal Counter Badges

   The parent .infyp-modal-counter-badges layout (flex column + gap) is defined
   in plugin/seo-score-display.css. Only child styles live here.
   ========================================================================== */

.infyp-modal-counter-badges .infyp-field-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--infyp-spacing-xs);
    padding: var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-sm);
    border-radius: var(--infyp-radius-md);
    text-align: center;
    box-sizing: border-box;
}

.infyp-modal-counter-badges .infyp-field-feedback.char-count,
.infyp-modal-counter-badges .infyp-field-feedback.word-count {
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
}

.infyp-modal-counter-badges .infyp-field-feedback .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   Modal Header Badges
   ========================================================================== */

.infyp-modal-header-badges {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: var(--infyp-spacing-md);
    gap: 10px;
}

/* ==========================================================================
   Column Display Styles
   ========================================================================== */

/* Column display styles moved to plugin/image-table.css */

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media screen and (max-width: 782px) {
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-keywords,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-filename,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-alt_text,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-image_title,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-title {
        padding-left: 10px;
        text-align: left;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-keywords:before,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-filename:before,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-alt_text:before,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-image_title:before,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-title:before {
        display: block;
        position: static;
        content: attr(data-colname);
        font-weight: 600;
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 480px) {
    .infyp-modal-optimize-grid {
        grid-template-columns: 1fr;
    }

    .infyp-modal-optimize-grid .infyp-ai-disclaimer {
        order: 2;
    }

    .infyp-modal-optimize-grid .infyp-optimize-ai {
        order: 1;
    }

    .infyp-modal-optimize-grid .infyp-modal-optimize-spinner {
        order: 1;
    }

}

/* ==========================================================================
   Score Display & Circle Progress Components
   ========================================================================== */

.infyp-score-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--infyp-spacing-xl);
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    margin-bottom: var(--infyp-spacing-md);
    text-align: center
}

.infyp-score-header h4 {
    margin: var(--infyp-spacing-md) 0 0 0;
    font-size: var(--infyp-font-size-md);
    font-weight: 600;
    color: var(--infyp-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.infyp-score-percentage {
    font-size: 1rem;
    width: 100%
}

/* Points Breakdown */
.infyp-score-points-breakdown {
    margin-top: var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-md);
    color: var(--infyp-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--infyp-spacing-xs)
}

.infyp-points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-xs);
    font-weight: var(--infyp-font-weight-semibold);
    border-radius: var(--infyp-radius-full);
    background: var(--infyp-bg-light);
    color: var(--infyp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infyp-points-earned {
    background: var(--infyp-bg-light);
}

.infyp-points-total {
    background: transparent;
    color: var(--infyp-text-muted);
}

.infyp-points-separator {
    color: var(--infyp-text-muted);
    font-weight: 300;
}

/* ==========================================================================
   Circular Progress Indicator
   ========================================================================== */

.infyp-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--infyp-spacing-sm)
}

.infyp-circle-container h4 {
    margin: var(--infyp-spacing-sm) 0 0 0;
    font-size: var(--infyp-font-size-base);
    font-weight: 600;
    color: var(--infyp-text-primary);
}

.infyp-circle-progress {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg)
}

.infyp-circle-bg {
    fill: none;
    stroke: var(--infyp-border-gray);
    stroke-width: 8;
    stroke-linecap: round
}

.infyp-circle-fg {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73
}

.infyp-circle-text {
    font-size: var(--infyp-font-size-2xl);
    font-weight: 700;
    transform: rotate(90deg);
    transform-origin: center;
    fill: var(--infyp-text-primary)
}

/* Circle Color Variants */
.infyp-circle-progress.infyp-circle-success .infyp-circle-fg {
    stroke: var(--infyp-success-secondary)
}

.infyp-circle-progress.infyp-circle-warning .infyp-circle-fg {
    stroke: var(--infyp-warning)
}

.infyp-circle-progress.infyp-circle-error .infyp-circle-fg {
    stroke: var(--infyp-error)
}

/* ==========================================================================
   Score Breakdown & Metric Cards
   ========================================================================== */

.infyp-score-breakdown {
    margin-top: var(--infyp-spacing-md);
}

.infyp-score-details {
    display: flex;
    flex-direction: row;
    gap: var(--infyp-spacing-lg);
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap
}

/* Individual Metric Card */
.infyp-metric-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--infyp-spacing-lg) var(--infyp-spacing-md);
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    gap: var(--infyp-spacing-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease
}

.infyp-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1)
}

/* Small Circle for Metrics */
.infyp-metric-circle {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg)
}

.infyp-metric-circle-bg {
    fill: none;
    stroke: var(--infyp-border-gray);
    stroke-width: 6;
    stroke-linecap: round
}

.infyp-metric-circle-fg {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
    stroke-dasharray: 245.04;
    stroke-dashoffset: 245.04
}

.infyp-metric-circle-text {
    font-size: var(--infyp-font-size-xl);
    font-weight: 700;
    transform: rotate(90deg);
    transform-origin: center;
    fill: var(--infyp-text-primary)
}

/* Metric circle color states */
.infyp-metric-circle.infyp-circle-success .infyp-metric-circle-fg {
    stroke: var(--infyp-success-secondary)
}

.infyp-metric-circle.infyp-circle-warning .infyp-metric-circle-fg {
    stroke: var(--infyp-warning)
}

.infyp-metric-circle.infyp-circle-error .infyp-metric-circle-fg {
    stroke: var(--infyp-error)
}

.infyp-metric-label {
    font-weight: 600;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
    text-align: center;
    margin-top: var(--infyp-spacing-xs)
}

.infyp-metric-value {
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-secondary);
    text-align: center;
    line-height: 1.4
}

/* Score Hint */
.infyp-score-hint {
    margin-top: 15px;
    padding: 10px;
    background: var(--infyp-bg-secondary);
    border-radius: var(--infyp-radius-md)
}

.infyp-score-hint:empty {
    display: none;
}

.infyp-score-hint .count {
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-primary);
    padding: 0 var(--infyp-spacing-xxs);
}

/* Grid layout only for SEO score modal breakdown, not individual field modals */
#infyp-score-modal .infyp-score-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--infyp-spacing-md);
}

/* ==========================================================================
   Score Field Sections (SEO Score Modal Breakdown)
   ========================================================================== */

.infyp-score-breakdown-sections {
    display: flex;
    flex-direction: column;
    gap: var(--infyp-spacing-md);
}

.infyp-score-display {
    margin-top: var(--infyp-spacing-md);
}

.infyp-score-field-section {
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md);
}

.infyp-score-field-section > h3 {
    margin: 0 0 var(--infyp-spacing-md) 0;
    font-size: var(--infyp-font-size-lg);
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary);
    padding-bottom: var(--infyp-spacing-sm);
    border-bottom: 1px solid var(--infyp-border-light);
}

/* Override for field sections inside breakdown modal */
.infyp-score-field-section .infyp-score-display {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
}

.infyp-score-field-section .infyp-score-header {
    margin-bottom: var(--infyp-spacing-md);
}

.infyp-score-field-section .infyp-score-breakdown {
    padding: 0;
}

/* Adjust grid layout for field section breakdown items */
.infyp-score-field-section .infyp-score-details {
    display: flex;
    gap: var(--infyp-spacing-md);
    flex-wrap: wrap;
    justify-content: stretch;
}

.infyp-score-field-section .infyp-metric-card {
    flex: 1 1 0;
    min-width: 0;
}

/* ==========================================================================
   Responsive Circle Adjustments
   ========================================================================== */

@media screen and (max-width: 768px) {
    .infyp-circle-progress {
        width: 70px;
        height: 70px
    }

    .infyp-circle-text {
        font-size: var(--infyp-font-size-2xl)
    }

    .infyp-score-points-breakdown {
        font-size: var(--infyp-font-size-sm);
        margin-top: var(--infyp-spacing-sm)
    }

    .infyp-metric-card {
        padding: var(--infyp-spacing-md) var(--infyp-spacing-sm)
    }
}

@media screen and (max-width: 480px) {
    .infyp-circle-progress {
        width: 60px;
        height: 60px
    }

    .infyp-circle-text {
        font-size: var(--infyp-font-size-xl)
    }

    .infyp-circle-bg,
    .infyp-circle-fg {
        stroke-width: 6
    }

    .infyp-score-details {
        flex-direction: column;
    }

    .infyp-metric-card {
        flex: 1 1 100%;
    }

    .infyp-metric-circle {
        width: 50px;
        height: 50px
    }

    .infyp-metric-circle-text {
        font-size: var(--infyp-font-size-md)
    }
}


/* Source: optimize-icon.css */
.infyp-optimize-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: var(--infyp-spacing-xs);
    background-color: currentColor;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M480-392.35 392.35-480 480-567.65 567.65-480 480-392.35Zm-85-248.63L289.98-746l125.37-125.37q13.67-13.67 30.58-20.39 16.92-6.72 34.07-6.72t34.07 6.72q16.91 6.72 30.58 20.39L670.02-746 565-640.98l-85-85-85 85Zm-181 351L88.63-415.35q-13.67-13.67-20.39-30.58-6.72-16.92-6.72-34.07t6.72-34.07q6.72-16.91 20.39-30.58L214-670.02 319.02-565l-85 85 85 85L214-289.98Zm532 0L640.98-395l85-85-85-85L746-670.02l125.37 125.37q13.67 13.67 20.39 30.58 6.72 16.92 6.72 34.07t-6.72 34.07q-6.72 16.91-20.39 30.58L746-289.98ZM415.35-88.63 289.98-214 395-319.02l85 85 85-85L670.02-214 544.65-88.63q-13.67 13.67-30.58 20.39-16.92 6.72-34.07 6.72t-34.07-6.72q-16.91-6.72-30.58-20.39Z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M480-392.35 392.35-480 480-567.65 567.65-480 480-392.35Zm-85-248.63L289.98-746l125.37-125.37q13.67-13.67 30.58-20.39 16.92-6.72 34.07-6.72t34.07 6.72q16.91 6.72 30.58 20.39L670.02-746 565-640.98l-85-85-85 85Zm-181 351L88.63-415.35q-13.67-13.67-20.39-30.58-6.72-16.92-6.72-34.07t6.72-34.07q6.72-16.91 20.39-30.58L214-670.02 319.02-565l-85 85 85 85L214-289.98Zm532 0L640.98-395l85-85-85-85L746-670.02l125.37 125.37q13.67 13.67 20.39 30.58 6.72 16.92 6.72 34.07t-6.72 34.07q-6.72 16.91-20.39 30.58L746-289.98ZM415.35-88.63 289.98-214 395-319.02l85 85 85-85L670.02-214 544.65-88.63q-13.67 13.67-30.58 20.39-16.92 6.72-34.07 6.72t-34.07-6.72q-16.91-6.72-30.58-20.39Z"/></svg>');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center
}

/* Source: plugin/image-table.css */
/**
 * Dashboard Image Table Styles
 * Extracted from admin-style.css
 * Generated: 2025-12-04 13:47:13
 */

.wp-list-table th {
    font-weight: var(--infyp-font-weight-semibold)
}

.infyp-image-table,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table {
    table-layout: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box
}

.toplevel_page_infy-ai-image-seo-optimizer .tablenav,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table {
    margin-right: 0
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-id {
    width: 3%;
    min-width: 45px
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table th.column-id,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-id {
    text-align: left
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-thumbnail {
    width: 4%;
    min-width: 60px
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-usage_info {
    width: 5%;
    min-width: 60px
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-seo_score {
    width: 7%;
    min-width: 80px;
    text-align: center
}


.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table th.column-thumbnail,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail {
    padding: var(--infyp-spacing-sm) 7px
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-keywords,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-filename,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-alt_text,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-image_title,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-title {
    width: 14%;
    min-width: 100px
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-actions {
    width: 10%;
    min-width: 100px
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td input[type="text"],
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td .infyp-editable-field {
    max-width: 100%;
    box-sizing: border-box
}

.infyp-image-id {
    color: var(--infyp-text-secondary);
    text-decoration: none;
    font-weight: var(--infyp-font-weight-medium);
    font-size: var(--infyp-font-size-base);
    display: inline-block
}

.infyp-image-id:hover {
    color: var(--infyp-primary);
    text-decoration: underline
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-id,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail {
    white-space: nowrap
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail img {
    max-height: 100px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail.infyp-wrapper-loading {
    position: relative;
    min-height: 60px;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail.infyp-wrapper-loading > *:not(.infyp-field-spinner) {
    display: none !important;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail.infyp-wrapper-loading > .infyp-field-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    float: none;
    margin: 0;
}

.infyp-thumbnail-preview {
    cursor: pointer;
}

.infyp-editable-field {
    width: 100%;
    box-sizing: border-box
}


tr.infyp-row-optimizing .infyp-optimizing-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

tr.infyp-row-optimizing .infyp-editable-field,
tr.infyp-row-optimizing .infyp-alt-text-trigger,
tr.infyp-row-optimizing .infyp-filename-trigger,
tr.infyp-row-optimizing .infyp-title-trigger {
    background-color: var(--infyp-bg-light) !important;
}

tr.infyp-row-optimizing .infyp-add-keywords-trigger,
tr.infyp-row-optimizing .infyp-keyword-badge {
    opacity: 0.5;
    pointer-events: none;
}

.infyp-field-wrapper {
    position: relative;
}

/* Loading states moved to loading-states.css */

.infyp-actions-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--infyp-spacing-sm);
}

.infyp-actions-wrapper .button {
    min-height: 29px !important;
    box-sizing: border-box;
}

/* Actions loading states moved to loading-states.css */


.infyp-thumbnail {
    max-width: 60px;
    height: auto;
    border-radius: var(--infyp-radius-sm);
    box-shadow: var(--infyp-shadow-sm)
}

/* Mobile styles (< 782px) moved to image-table-responsive.css */

.wp-list-table .infyp-seo-score-wrapper {
    flex-direction: column;
    gap: var(--infyp-spacing-xs)
}

@media screen and (min-width:783px) and (max-width:1400px) {
    /* Responsive: Content columns slightly smaller */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-keywords,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-filename,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-alt_text,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-image_title,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-title {
        width: 13%;
        min-width: 90px
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-actions {
        width: 11%;
        min-width: 110px
    }

    .infyp-keywords-wrapper {
        flex-wrap: wrap
    }
}

.infyp-field-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--infyp-spacing-sm);
}

.infyp-alt-text-lightbox-header .infyp-image-id,
.infyp-title-lightbox-header .infyp-image-id {
    color: var(--infyp-text-muted);
    font-weight: var(--infyp-font-weight-normal);
    font-size: var(--infyp-font-size-base);
    margin-left: var(--infyp-spacing-xs)
}

.infyp-table-wrapper {
    position: relative;
}

.infyp-table-wrapper .wp-list-table {
    display: none;
}

#infyp-image-seo-form .search-box {
    display: none;
}

.infyp-table-wrapper.infyp-table-ready .wp-list-table {
    display: table;
}

#infyp-image-seo-form .search-box {
    display: none !important;
}

#infyp-image-seo-form .infyp-table-controls {
    display: none;
}

.infyp-page-ready #infyp-image-seo-form .infyp-table-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--infyp-spacing-md);
    margin-bottom: var(--infyp-spacing-lg);
}

@media screen and (max-width: 782px) {
    .infyp-page-ready #infyp-image-seo-form .infyp-table-controls {
        flex-direction: column;
        align-items: stretch;
    }

}

.toplevel_page_infy-ai-image-seo-optimizer .tablenav.top .tablenav-pages {
    display: none !important;
}

.toplevel_page_infy-ai-image-seo-optimizer .tablenav.top {
    display: none;
}

.toplevel_page_infy-ai-image-seo-optimizer .tablenav.bottom .tablenav-pages {
    float: left;
}

/* Pagination button spacing — applies to all plugin admin pages */
[class*="_page_"][class*="ai-image-seo-optimizer"] .tablenav-pages .pagination-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[class*="_page_"][class*="ai-image-seo-optimizer"] .tablenav-pages .pagination-links .button {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[class*="_page_"][class*="ai-image-seo-optimizer"] .tablenav-pages .paging-input {
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[class*="_page_"][class*="ai-image-seo-optimizer"] .tablenav-pages .paging-input .current-page {
    width: 50px;
    text-align: center;
    margin: 0 4px;
}

[class*="_page_"][class*="ai-image-seo-optimizer"] .tablenav-pages .displaying-num {
    margin-right: 12px;
    color: var(--infyp-text-secondary);
}

#infyp-image-seo-form .infyp-modern-search-wrapper {
    display: none;
}

.infyp-page-ready #infyp-image-seo-form .infyp-modern-search-wrapper {
    display: block;
    margin-bottom: var(--infyp-spacing-lg);
}

/* Active row highlighting - persists until user clicks elsewhere */
tr.infyp-row-active {
    background-color: rgba(0, 124, 186, 0.08) !important;
    box-shadow: inset 3px 0 0 var(--infyp-primary);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

tr.infyp-row-active td {
    background-color: transparent !important;
}

/* Subtle pulse animation when row is first activated */
@keyframes infyp-row-activate {
    0% {
        background-color: rgba(0, 124, 186, 0.15);
    }
    100% {
        background-color: rgba(0, 124, 186, 0.08);
    }
}

tr.infyp-row-active.infyp-row-just-activated {
    animation: infyp-row-activate 0.4s ease-out;
}

.infyp-table-skeleton {
    width: 100%;
    border: 1px solid var(--infyp-border);
    border-radius: var(--infyp-radius-md);
    overflow: hidden;
    background: var(--infyp-white);
}

/* Skeleton visibility moved to loading-states.css */

.infyp-table-overlay {
    background: rgba(248, 248, 248, 0.7) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.infyp-table-overlay .spinner {
    float: none;
}

/* Source: plugin/image-table-responsive.css */
/**
 * Responsive Table Styles
 * AI Image SEO WordPress Plugin
 *
 * This file contains all responsive-specific styles for the image table,
 * organized by breakpoint for easy maintenance.
 *
 * Breakpoints:
 * - Desktop: > 1420px (full view with keyword badges, text usage button)
 * - Laptop: 1240px - 1420px (condensed keywords, icon-only usage)
 * - Small Laptop: 1240px - 1400px (hidden ID column, compressed columns)
 * - Scroll View: 1024px - 1240px (horizontal scroll, min-width table)
 * - Tablet: 782px - 1024px (hybrid card/table view)
 * - Mobile: < 782px (full card layout)
 */

/* ==========================================================================
   1. DEFAULT STATE - Desktop View (> 1420px)
   Show full keyword badges, hide condensed view
   ========================================================================== */

/* Hide condensed view by default (desktop) */
.infyp-keywords-condensed-view {
    display: none;
}

/* Show full view by default (desktop) */
.infyp-keywords-full-view {
    display: flex;
    flex-wrap: wrap;
    gap: var(--infyp-spacing-xs);
    align-items: center;
}

/* Hide field condensed view by default (desktop) */
.infyp-field-condensed-view {
    display: none;
}

/* Show field full view by default (desktop) */
.infyp-field-full-view {
    display: flex;
    flex-direction: column;
    gap: var(--infyp-spacing-sm);
}

/* Compact button styling for condensed field view */
.infyp-field-compact-btn {
    padding: var(--infyp-spacing-xs) !important;
    min-width: 32px !important;
    width: 32px;
    height: 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--infyp-radius-sm);
}

.infyp-field-compact-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    margin: 0;
}

/* Status color variants for compact buttons */
.infyp-field-compact-btn.success {
    background: var(--infyp-success-secondary-bg);
    border-color: var(--infyp-success);
    color: var(--infyp-success);
}

.infyp-field-compact-btn.success:hover {
    background: var(--infyp-success);
    color: var(--infyp-white);
}

.infyp-field-compact-btn.empty,
.infyp-field-compact-btn.warning {
    background: var(--infyp-warning-bg);
    border-color: var(--infyp-warning);
    color: var(--infyp-warning-text);
}

.infyp-field-compact-btn.empty:hover,
.infyp-field-compact-btn.warning:hover {
    background: var(--infyp-warning);
    color: var(--infyp-white);
}

.infyp-field-compact-btn.error {
    background: var(--infyp-error-bg-lightest);
    border-color: var(--infyp-error);
    color: var(--infyp-error);
}

.infyp-field-compact-btn.error:hover {
    background: var(--infyp-error);
    color: var(--infyp-white);
}

/* Usage button styling */
.infyp-check-usage {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
}

/* Hide icon by default (desktop), show text */
.infyp-check-usage .infyp-usage-text {
    display: inline;
}

.infyp-check-usage .dashicons {
    display: none;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Hide SEO breakdown icon by default (desktop), show text */
.infyp-check-seo-breakdown .dashicons {
    display: none;
}

/* Desktop column widths */
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-id {
    width: 3%;
    min-width: 40px;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-thumbnail {
    width: 4%;
    min-width: 55px;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-keywords {
    width: 14%;
    min-width: 120px;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-filename,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-alt_text,
.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-title {
    width: 14%;
    min-width: 120px;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-usage_info {
    width: 7%;
    min-width: 90px;
    text-align: center;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-actions {
    width: 10%;
    min-width: 100px;
}

.toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-seo_score {
    width: 6%;
    min-width: 70px;
}

/* ==========================================================================
   2. CONDENSED KEYWORDS BUTTON STYLES
   ========================================================================== */

/* Condensed Keywords Button */
.infyp-keywords-condensed-view .infyp-keywords-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-sm);
    white-space: nowrap;
    border-radius: var(--infyp-radius-md);
    transition: all var(--infyp-transition-fast);
}

.infyp-keywords-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.infyp-keyword-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 var(--infyp-spacing-xs);
    background: var(--infyp-gradient-start);
    color: var(--infyp-white);
    border-radius: var(--infyp-radius-full);
    font-size: var(--infyp-font-size-xs);
    font-weight: var(--infyp-font-weight-semibold);
    margin-left: var(--infyp-spacing-xs);
}

.infyp-keywords-btn.infyp-has-keywords {
    background: var(--infyp-bg-light);
    border-color: var(--infyp-border-light);
    color: var(--infyp-text-primary);
}

.infyp-keywords-btn.infyp-has-keywords:hover {
    background: var(--infyp-primary-bg);
    border-color: var(--infyp-primary);
    color: var(--infyp-primary);
}

/* ==========================================================================
   4. ICON-ONLY USAGE BUTTON STYLES
   ========================================================================== */

/* ==========================================================================
   5. LAPTOP VIEW (<= 1420px) - Condensed Keywords & Icon-Only Usage
   ========================================================================== */

@media screen and (max-width: 1420px) {
    /* Switch to condensed keywords view */
    .infyp-keywords-full-view {
        display: none !important;
    }

    .infyp-keywords-condensed-view {
        display: block;
    }

    /* Make usage button icon-only */
    .infyp-check-usage {
        padding: var(--infyp-spacing-xs) !important;
        min-width: 32px !important;
        width: 32px;
        height: 32px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .infyp-check-usage .dashicons {
        display: block !important;
        font-size: 16px;
        width: 16px;
        height: 16px;
        line-height: 16px;
    }

    .infyp-check-usage .infyp-usage-text {
        display: none !important;
    }

    /* Adjust column widths for condensed view */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-keywords {
        width: 8%;
        min-width: 90px;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-usage_info {
        width: 4%;
        min-width: 45px;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-filename,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-alt_text,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-title {
        width: 16%;
        min-width: 110px;
    }

    /* Hide AI disclaimer at laptop view */
    .toplevel_page_infy-ai-image-seo-optimizer .infyp-ai-disclaimer {
        display: none !important;
    }
}

/* ==========================================================================
   5b. CARD LAYOUT VIEW (<= 1300px) - Two Column Card Grid
   Switch from table to card layout for better readability
   ========================================================================== */

@media screen and (max-width: 1300px) {
    /* Hide table header and footer */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table thead,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tfoot {
        display: none;
    }

    /* Table body becomes a 2-column card grid */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tbody {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--infyp-spacing-lg);
        padding: var(--infyp-spacing-md);
    }

    /* Each row becomes a card */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tr {
        display: block;
        border: 1px solid var(--infyp-border-light);
        border-radius: var(--infyp-radius-lg);
        background: var(--infyp-white);
        box-shadow: var(--infyp-shadow-sm);
        overflow: visible;
        position: relative;
        min-width: 0; /* Prevent grid blowout */
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tr:hover {
        box-shadow: var(--infyp-shadow-md);
        border-color: var(--infyp-primary);
    }

    /* Hide ID column */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-id {
        display: none !important;
    }

    /* Card cells - block layout */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td {
        display: block;
        text-align: left;
        border: none;
        padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
        width: auto !important;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
        box-sizing: border-box;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td:not(:last-child) {
        border-bottom: 1px solid var(--infyp-border-lightest);
    }

    /* Field labels from data-colname */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td::before {
        content: attr(data-colname);
        display: block;
        font-size: var(--infyp-font-size-xs);
        font-weight: var(--infyp-font-weight-semibold);
        color: var(--infyp-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: var(--infyp-spacing-xs);
    }

    /* Checkbox - positioned top right of card */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-cb {
        position: absolute;
        top: var(--infyp-spacing-md);
        right: var(--infyp-spacing-md);
        padding: 0;
        width: auto !important;
        border: none !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-cb::before {
        display: none;
    }

    /* Thumbnail - card header */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail {
        display: flex !important;
        align-items: center;
        gap: var(--infyp-spacing-md);
        padding: var(--infyp-spacing-md);
        margin-top: var(--infyp-spacing-sm);
        background: var(--infyp-bg-slate-light);
        border-top: 1px solid var(--infyp-border-light) !important;
        border-bottom: 1px solid var(--infyp-border-light) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail::before {
        display: none;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail img {
        max-height: 70px;
        max-width: 70px;
        border-radius: var(--infyp-radius-md);
    }

    /* Show full field view in cards (not condensed buttons) */
    .infyp-field-full-view {
        display: flex !important;
    }

    .infyp-field-condensed-view {
        display: none !important;
    }

    /* Keywords - full width */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-keywords {
        padding: var(--infyp-spacing-md);
    }

    .infyp-keywords-btn {
        width: 100%;
        justify-content: center;
    }

    .infyp-keywords-btn .infyp-btn-text {
        display: inline;
    }

    /* Usage button - full with text */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-usage_info .infyp-check-usage {
        width: auto;
        min-width: auto !important;
        height: auto;
        padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-usage_info .infyp-check-usage .infyp-usage-text {
        display: inline !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-usage_info .infyp-check-usage .dashicons {
        display: none !important;
    }

    /* Actions - card footer style */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-actions {
        background: var(--infyp-bg-lighter);
        padding: var(--infyp-spacing-md);
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-actions::before {
        display: none;
    }

    .infyp-actions-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--infyp-spacing-sm);
    }

    .infyp-actions-wrapper .button {
        flex: 1;
        justify-content: center;
    }

    /* Show button text in cards */
    .toplevel_page_infy-ai-image-seo-optimizer .infyp-actions-wrapper .infyp-btn-text {
        display: inline !important;
    }

    /* Hide SEO breakdown icon in cards (show text) */
    .infyp-check-seo-breakdown .dashicons {
        display: none !important;
    }

    /* Show AI disclaimer in cards */
    .toplevel_page_infy-ai-image-seo-optimizer .infyp-ai-disclaimer {
        display: inline-flex !important;
    }

    /* SEO Score - card footer style with circle */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-seo_score {
        background: var(--infyp-bg-lighter);
        padding: var(--infyp-spacing-md);
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: var(--infyp-spacing-md);
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-seo_score::before {
        display: none;
    }

    /* Show full score circle in cards */
    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-svg {
        display: block !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-text {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-circle.small .infyp-score-number {
        font-size: 0.8rem;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-label {
        display: inline !important;
    }

}

/* ==========================================================================
   6. SMALL LAPTOP VIEW (1301px - 1400px) - Compressed Table Columns
   Just before card layout kicks in
   ========================================================================== */

@media screen and (min-width: 1301px) and (max-width: 1400px) {
    /* Hide ID column */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-id {
        display: none;
    }

    /* Redistribute column widths */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-thumbnail {
        width: 5%;
        min-width: 55px;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-keywords {
        width: 8%;
        min-width: 80px;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-filename,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-alt_text,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-title {
        width: 17%;
        min-width: 120px;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-usage_info {
        width: 4%;
        min-width: 40px;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-actions {
        width: 11%;
        min-width: 100px;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-seo_score {
        width: 6%;
        min-width: 60px;
    }

    /* Hide character count badges */
    .infyp-badge-container .char-count {
        display: none;
    }

    /* Smaller thumbnail */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail img {
        max-height: 50px;
        max-width: 50px;
    }

    /* Compact action buttons */
    .infyp-actions-wrapper {
        gap: var(--infyp-spacing-xs);
    }

    .infyp-actions-wrapper .button {
        font-size: var(--infyp-font-size-xs) !important;
        padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm) !important;
    }

    /* Hide button text on smaller screens, show only icon + count */
    .infyp-keywords-btn .infyp-btn-text {
        display: none;
    }

    .infyp-keywords-btn {
        padding: var(--infyp-spacing-xs);
    }
}

/* ==========================================================================
   7. MOBILE VIEW (< 782px) - Single Column Cards
   Explicitly override WordPress core mobile styles to match 2-column card layout
   ========================================================================== */

@media screen and (max-width: 782px) {
    /* Single column card grid */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tbody {
        grid-template-columns: 1fr;
        padding: var(--infyp-spacing-sm);
        gap: var(--infyp-spacing-md);
    }

    /* Override WordPress core mobile table styles */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.column-primary)::before {
        display: none !important;
    }

    /* Hide WordPress toggle-row button (not needed in card layout) */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .toggle-row {
        display: none !important;
    }

    /* Ensure card structure matches 2-column layout exactly */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tr {
        display: block !important;
        border: 1px solid var(--infyp-border-light) !important;
        border-radius: var(--infyp-radius-lg) !important;
        background: var(--infyp-white) !important;
        box-shadow: var(--infyp-shadow-sm) !important;
        overflow: visible !important;
        position: relative !important;
        min-width: 0 !important;
        margin-bottom: 0 !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table tr:hover {
        box-shadow: var(--infyp-shadow-md) !important;
        border-color: var(--infyp-primary) !important;
    }

    /* Card cells - block layout matching 2-column */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td {
        display: block !important;
        text-align: left !important;
        border: none !important;
        padding: var(--infyp-spacing-sm) var(--infyp-spacing-md) !important;
        width: auto !important;
        min-width: 0 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        padding-left: var(--infyp-spacing-md) !important;
        position: static !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td:not(:last-child) {
        border-bottom: 1px solid var(--infyp-border-lightest) !important;
    }

    /* Field labels - matching 2-column card style */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td::before {
        content: attr(data-colname) !important;
        display: block !important;
        position: static !important;
        width: auto !important;
        font-size: var(--infyp-font-size-xs) !important;
        font-weight: var(--infyp-font-weight-semibold) !important;
        color: var(--infyp-text-secondary) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: var(--infyp-spacing-xs) !important;
    }

    /* Hide ID column */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-id {
        display: none !important;
    }

    /* Checkbox - positioned top right of card */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-cb {
        position: absolute !important;
        top: var(--infyp-spacing-md) !important;
        right: var(--infyp-spacing-md) !important;
        padding: 0 !important;
        width: auto !important;
        border: none !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-cb::before {
        display: none !important;
    }

    /* Thumbnail - card header matching 2-column */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail {
        display: flex !important;
        align-items: center !important;
        gap: var(--infyp-spacing-md) !important;
        padding: var(--infyp-spacing-md) !important;
        margin-top: var(--infyp-spacing-sm) !important;
        background: var(--infyp-bg-slate-light) !important;
        border-top: 1px solid var(--infyp-border-light) !important;
        border-bottom: 1px solid var(--infyp-border-light) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail::before {
        display: none !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail img {
        max-height: 70px !important;
        max-width: 70px !important;
        border-radius: var(--infyp-radius-md) !important;
    }

    /* Keywords - full width */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-keywords {
        padding: var(--infyp-spacing-md) !important;
    }

    /* Actions - card footer style matching 2-column */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-actions {
        background: var(--infyp-bg-lighter) !important;
        padding: var(--infyp-spacing-md) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-actions::before {
        display: none !important;
    }

    /* SEO Score - card footer style matching 2-column */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-seo_score {
        background: var(--infyp-bg-lighter) !important;
        padding: var(--infyp-spacing-md) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: var(--infyp-spacing-md) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-seo_score::before {
        display: none !important;
    }

    /* Show full score circle in mobile cards */
    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-svg {
        display: block !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-text {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .infyp-score-label {
        display: inline !important;
    }

    /* Usage button - full with text */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-usage_info .infyp-check-usage {
        width: auto !important;
        min-width: auto !important;
        height: auto !important;
        padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm) !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-usage_info .infyp-check-usage .infyp-usage-text {
        display: inline !important;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-usage_info .infyp-check-usage .dashicons {
        display: none !important;
    }

    /* Show AI disclaimer */
    .toplevel_page_infy-ai-image-seo-optimizer .infyp-ai-disclaimer {
        display: inline-flex !important;
    }

    /* Show SEO breakdown text (hide icon) */
    .infyp-check-seo-breakdown .dashicons {
        display: none !important;
    }
}

/* ==========================================================================
   8. PRINT STYLES
   ========================================================================== */

@media print {
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-usage_info,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-actions {
        display: none;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table {
        font-size: 10pt;
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table td.column-thumbnail img {
        max-height: 40px;
        max-width: 40px;
    }
}


/* Source: plugin/search-filters.css */
/**
 * Modern Search and Filter Styles
 * Extracted from admin-style.css
 * Generated: 2025-12-04 13:47:13
 */

/* Search Layout: Post Type | Page/Post | Search | SEO Score */
#infyp-image-seo-form .infyp-search-grid {
    display: none;
}

.infyp-page-ready #infyp-image-seo-form .infyp-search-grid {
    display: flex;
    gap: var(--infyp-spacing-md);
    align-items: stretch;
    margin-bottom: var(--infyp-spacing-lg);
}

.infyp-search-grid-filter {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
}

.infyp-search-grid-page {
    position: relative;
    flex: 0 1 220px;
    min-width: 140px;
}

.infyp-search-grid-search {
    flex: 1 1 0;
    min-width: 180px;
}

.infyp-search-grid-sort {
    display: flex;
    gap: var(--infyp-spacing-md);
    flex: 0 0 auto;
    align-items: stretch;
}

/* Medium screens: sort buttons wrap to new row, 50/50 */
@media screen and (max-width: 1300px) {
    .infyp-page-ready #infyp-image-seo-form .infyp-search-grid {
        flex-wrap: wrap;
    }

    .infyp-search-grid-sort {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .infyp-search-grid-sort .infyp-date-sort-btn,
    .infyp-search-grid-sort .infyp-seo-sort-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile: post type + page/post 50/50, search full, sort 50/50 */
@media screen and (max-width: 782px) {
    .infyp-page-ready #infyp-image-seo-form .infyp-search-grid {
        flex-wrap: wrap;
        gap: var(--infyp-spacing-sm);
    }

    .infyp-search-grid-filter {
        flex: 1 1 calc(50% - var(--infyp-spacing-sm) / 2);
        min-width: 0;
    }

    .infyp-search-grid-page {
        flex: 1 1 calc(50% - var(--infyp-spacing-sm) / 2);
        min-width: 0;
    }

    .infyp-search-grid-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .infyp-search-grid-sort {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--infyp-spacing-sm);
    }

    .infyp-search-grid-sort .infyp-date-sort-btn,
    .infyp-search-grid-sort .infyp-seo-sort-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   Page/Post Filter + SEO Sort Controls
   ========================================================================= */

/* Page/Post Filter */
.infyp-page-filter-wrapper {
    position: relative;
}

.infyp-page-filter-display {
    display: flex;
    align-items: center;
    border: 1px solid var(--infyp-text-lighter, #c3c4c7);
    border-radius: var(--infyp-radius-md, 6px);
    padding: 0 var(--infyp-spacing-sm, 8px);
    background: var(--infyp-white, #fff);
    min-height: 40px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.infyp-page-filter-display:focus-within {
    border-color: var(--infyp-primary, #3858e9);
    box-shadow: 0 0 0 1px var(--infyp-primary, #3858e9);
}

.infyp-page-filter-icon {
    color: var(--infyp-text-lighter, #c3c4c7);
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-right: 4px;
}

.infyp-page-filter-display:focus-within .infyp-page-filter-icon {
    color: var(--infyp-primary, #3858e9);
}

.infyp-page-filter-input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
    background: transparent !important;
    padding: 4px 8px !important;
    font-size: var(--infyp-font-size-md, 13px) !important;
    line-height: 1.5 !important;
    outline: none !important;
}

.infyp-page-filter-input::placeholder {
    color: var(--infyp-text-lighter, #c3c4c7);
}

.infyp-page-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--infyp-white, #fff);
    border: 1px solid var(--infyp-border, #c3c4c7);
    border-radius: var(--infyp-radius-md, 6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
}

.infyp-page-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--infyp-bg-hover, #f0f0f1);
    transition: background 0.15s ease;
}

.infyp-page-option:last-child {
    border-bottom: none;
}

.infyp-page-option:hover,
.infyp-page-option.is-focused {
    background: var(--infyp-bg-lighter, #f0f6fc);
}

.infyp-page-option-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--infyp-font-size-base, 13px);
    color: var(--infyp-text-primary, #1d2327);
}

.infyp-page-option-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
}

.infyp-page-type-badge {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--infyp-bg-light, #f0f0f1);
    color: var(--infyp-text-secondary, #646970);
    text-transform: uppercase;
    font-weight: 500;
}

.infyp-page-image-count {
    font-size: 12px;
    color: var(--infyp-primary, #007cba);
    font-weight: 500;
    white-space: nowrap;
}

.infyp-page-option-empty {
    padding: 16px 12px;
    text-align: center;
    color: var(--infyp-text-secondary, #646970);
    font-size: var(--infyp-font-size-base, 13px);
}

/* Active page filter token */
.infyp-page-filter-active {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    background: #e7f3ff;
    border: 1px solid var(--infyp-primary, #007cba);
    border-radius: var(--infyp-radius-md, 6px);
    padding: 4px var(--infyp-spacing-sm, 8px) 4px var(--infyp-spacing-md, 12px);
    font-size: var(--infyp-font-size-md, 13px);
    color: var(--infyp-primary, #007cba);
    min-height: 40px;
    box-sizing: border-box;
}

.infyp-page-filter-active .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.infyp-page-filter-active-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.infyp-page-filter-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--infyp-primary, #007cba);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.infyp-page-filter-clear-btn:hover {
    opacity: 1;
}

.infyp-page-filter-clear-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* SEO Sort Button */
.infyp-seo-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 var(--infyp-spacing-md, 12px);
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--infyp-text-lighter, #c3c4c7);
    border-radius: var(--infyp-radius-md, 6px);
    background: var(--infyp-white, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-size: var(--infyp-font-size-md, 13px);
    color: var(--infyp-text-secondary, #646970);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.infyp-seo-sort-btn:hover {
    border-color: var(--infyp-primary, #007cba);
    color: var(--infyp-primary, #007cba);
}

.infyp-seo-sort-btn.active {
    border-color: var(--infyp-primary, #007cba);
    color: var(--infyp-primary, #007cba);
    background: #f0f6fc;
}

.infyp-seo-sort-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.infyp-seo-sort-arrow {
    font-weight: 600;
    min-width: 10px;
}

/* Upload Date Sort Button */
.infyp-date-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 var(--infyp-spacing-md, 12px);
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--infyp-text-lighter, #c3c4c7);
    border-radius: var(--infyp-radius-md, 6px);
    background: var(--infyp-white, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-size: var(--infyp-font-size-md, 13px);
    color: var(--infyp-text-secondary, #646970);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.infyp-date-sort-btn:hover {
    border-color: var(--infyp-primary, #007cba);
    color: var(--infyp-primary, #007cba);
}

.infyp-date-sort-btn.active {
    border-color: var(--infyp-primary, #007cba);
    color: var(--infyp-primary, #007cba);
    background: #f0f6fc;
}

.infyp-date-sort-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.infyp-date-sort-arrow {
    font-weight: 600;
    min-width: 10px;
}

/* Responsive: Page Filter */
@media screen and (max-width: 782px) {
    .infyp-page-filter-active-title {
        flex: 1;
        min-width: 0;
    }
}

.infyp-modern-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.infyp-modern-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--infyp-white);
    border: 1px solid var(--infyp-text-lighter);
    border-radius: var(--infyp-radius-md);
    padding: 0 var(--infyp-spacing-lg);
    min-height: 40px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.infyp-modern-search:focus-within {
    border-color: var(--infyp-primary, #3858e9);
    box-shadow: 0 0 0 1px var(--infyp-primary, #3858e9), 0 2px 8px rgba(34, 113, 177, 0.15);
}

.infyp-search-icon {
    color: var(--infyp-text-lighter);
    font-size: var(--infyp-font-size-xl);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.infyp-modern-search:focus-within .infyp-search-icon {
    color: var(--infyp-primary, #3858e9);
}

.infyp-modern-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px var(--infyp-spacing-md) !important;
    font-size: var(--infyp-font-size-md) !important;
    line-height: 1.5 !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: auto !important;
}

.infyp-modern-search-input::placeholder {
    color: var(--infyp-text-lighter);
}

.infyp-modern-search-input::-webkit-search-cancel-button,
.infyp-modern-search-input::-webkit-search-decoration,
.infyp-modern-search-input::-webkit-search-results-button,
.infyp-modern-search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

.infyp-modern-search-input::-ms-clear,
.infyp-modern-search-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.infyp-search-spinner {
    float: none !important;
    margin: 0 !important;
    visibility: hidden;
}

.infyp-search-spinner.is-active {
    visibility: visible;
}

.infyp-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: var(--infyp-spacing-xs);
    cursor: pointer;
    color: var(--infyp-text-lighter);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.infyp-search-clear:hover {
    background: var(--infyp-bg-light);
    color: var(--infyp-text-primary);
}

.infyp-search-clear .dashicons {
    font-size: var(--infyp-font-size-xl);
    width: 18px;
    height: 18px;
}



/* Source: plugin/post-type-filters.css */
/**
 * Post Type Filter Token Styles
 * Extracted from admin-style.css
 * Generated: 2025-12-04 13:47:13
 */

.infyp-post-type-filter-wrapper {
    display: block;
    position: relative;
    width: 100%;
}

.infyp-filter-token-list {
    display: flex;
    flex-wrap: nowrap; /* Keep tokens in single line */
    align-items: center;
    gap: var(--infyp-spacing-xs);
    padding: 0 var(--infyp-spacing-sm);
    min-height: 40px;
    cursor: text;
    border: 1px solid var(--infyp-text-lighter);
    border-radius: var(--infyp-radius-md);
    background: var(--infyp-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow-x: auto; /* Allow horizontal scroll if needed */
    overflow-y: hidden;
}

.infyp-filter-token-list::-webkit-scrollbar {
    height: 0;
}

.infyp-filter-token-list {
    scrollbar-width: none; /* Firefox */
}

.infyp-filter-token-list:focus-within {
    border-color: var(--infyp-primary);
    box-shadow: 0 0 0 1px var(--infyp-primary);
}

.infyp-filter-token {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--infyp-spacing-xs) 0 var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-md);
    line-height: 24px;
    background: var(--infyp-border-light);
    color: var(--infyp-text-darker);
    border-radius: var(--infyp-radius-sm);
    white-space: nowrap;
    flex-shrink: 0; /* Prevent tokens from shrinking */
}

.infyp-filter-token.infyp-all-token {
    background: var(--infyp-primary);
    color: white;
}

.infyp-filter-token-remove {
    background: none;
    border: none;
    color: var(--infyp-text-darker);
    cursor: pointer;
    padding: 0 var(--infyp-spacing-xs);
    font-size: 19px;
    line-height: 1;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.infyp-filter-token-remove:hover {
    opacity: 1;
    color: var(--infyp-error);
}

.infyp-all-token .infyp-filter-token-remove {
    color: white;
    opacity: 0.8;
}

.infyp-all-token .infyp-filter-token-remove:hover {
    opacity: 1;
    color: white;
}

.infyp-post-type-filter-wrapper {
    position: relative;
    display: inline-block;
}

.infyp-filter-input {
    border: none !important;
    box-shadow: none !important;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
    min-height: auto;
    flex: 1;
    min-width: 120px;
}

.infyp-all-token {
    background: var(--infyp-primary);
    color: var(--infyp-white);
}

.infyp-all-token .infyp-token-remove {
    color: var(--infyp-white);
}

/* Source: plugin/keywords.css */
/**
 * Keyword Input and Display Styles
 * Extracted from admin-style.css
 * Generated: 2025-12-04 13:47:13
 */

.infyp-keywords-used {
    color: var(--infyp-success);
    font-size: var(--infyp-font-size-sm);
    margin-left: var(--infyp-spacing-xs)
}

.infyp-keywords-missing {
    color: var(--infyp-error);
    font-size: var(--infyp-font-size-sm);
    margin-left: var(--infyp-spacing-xs)
}

tr.infyp-row-optimizing .infyp-add-keywords-trigger,
tr.infyp-row-optimizing .infyp-keyword-badge {
    opacity: 0.5;
    pointer-events: none;
}

/* Loading states moved to loading-states.css */

.infyp-keywords-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--infyp-spacing-xs);
    align-items: flex-start;
    min-height: 30px
}

.infyp-keyword-badge {
    display: inline-block;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-md);
    font-size: var(--infyp-font-size-xs);
    line-height: 1.4;
    font-weight: var(--infyp-font-weight-medium);
    border-radius: var(--infyp-radius-full);
    background-color: var(--infyp-gradient-start);
    color: var(--infyp-bg-white);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle
}

.infyp-keyword-badge.placeholder {
    background-color: var(--infyp-bg-light);
    color: var(--infyp-text-secondary);
    border: 1px dashed var(--infyp-border-primary);
    font-style: italic
}

.infyp-keywords-help {
    display: inline-flex;
    align-items: center;
    margin-left: var(--infyp-spacing-sm);
    position: relative
}

.infyp-keywords-help .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
    color: var(--infyp-text-lighter);
    cursor: help;
    transition: color 0.2s ease
}

.infyp-keywords-help .dashicons:hover {
    color: var(--infyp-primary)
}

.infyp-keywords-help:hover .infyp-tooltip {
    opacity: 1;
    visibility: visible
}

.infyp-keywords-help .help-text {
    display: none
}

.infyp-keywords-wrapper:hover .infyp-keywords-help .help-text {
    display: none
}

@media screen and (min-width:783px) and (max-width:1400px) {
    /* Responsive: Content columns slightly smaller */
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-keywords,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-filename,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-alt_text,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-image_title,
    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-title {
        width: 13%;
        min-width: 90px
    }

    .toplevel_page_infy-ai-image-seo-optimizer .wp-list-table .column-actions {
        width: 11%;
        min-width: 110px
    }

    .infyp-keywords-wrapper {
        flex-wrap: wrap
    }
}

.infyp-post-type-tokens .infyp-token-input {
    min-width: 120px;
}

/* .infyp-all-token styles moved to post-type-filters.css */

.infyp-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--infyp-spacing-xs);
    align-items: center;
}

.infyp-keyword-badge {
    transition: all var(--infyp-transition-fast);
}

.infyp-add-keywords-trigger {
    background: transparent;
    border: 1px dashed var(--infyp-border-primary);
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-xs);
    cursor: pointer;
    transition: all var(--infyp-transition-fast);
}

.infyp-keyword-badge .dashicons-edit,
.infyp-add-keywords-trigger .dashicons-edit {
    width: 15px;
    height: 15px;
    font-size: 15px;
    vertical-align: middle;
    margin-right: var(--infyp-spacing-xxs);
}

.infyp-keyword-badge .dashicons-plus,
.infyp-add-keywords-trigger .dashicons-plus {
    width: 13px;
    height: 13px;
    font-size: var(--infyp-font-size-base);
    vertical-align: middle;
    margin-top: 1px;
    margin-right: var(--infyp-spacing-xxs);
}

.infyp-add-keywords-trigger:hover {
    background: var(--infyp-bg-light);
    border-color: var(--infyp-primary);
    color: var(--infyp-primary);
}

.infyp-clear-keywords-trigger {
    background: transparent;
    border: 1px dashed var(--infyp-border-primary);
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-xs);
    cursor: pointer;
    transition: all var(--infyp-transition-fast);
    color: var(--infyp-text-secondary, #646970);
}

.infyp-clear-keywords-trigger .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
    vertical-align: middle;
    color: inherit;
}

.infyp-clear-keywords-trigger:hover {
    background: var(--infyp-error-bg-lightest);
    border-color: var(--infyp-error);
    color: var(--infyp-error);
}

.infyp-clear-keywords-trigger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.infyp-clear-keywords-lightbox.infyp-keywords-lightbox {
    width: 400px;
}

.infyp-keywords-indicator {
    margin-left: var(--infyp-spacing-xs);
    color: var(--infyp-primary);
}

.infyp-keywords-indicator .dashicons {
    font-size: var(--infyp-font-size-base);
    width: 14px;
    height: 14px;
}

/* Keywords lightbox base styles handled by modals.css unified system */

.infyp-keywords-lightbox-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--infyp-spacing-lg, 16px);
    border-bottom: 1px solid var(--infyp-border-light, #e0e0e0);
    background: var(--infyp-bg-lighter, #f9f9f9);
}

.infyp-keywords-lightbox-header h3 {
    margin: 0;
    font-size: var(--infyp-font-size-xl);
    font-weight: 600;
}

.infyp-keywords-lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--infyp-radius-md);
    font-size: 1.5rem;
    color: var(--infyp-text-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.infyp-keywords-lightbox-close:hover {
    background-color: var(--infyp-bg-light);
    color: var(--infyp-text-primary);
}

.infyp-keywords-lightbox-content {
    grid-area: body;
    padding: var(--infyp-spacing-lg, 16px);
    overflow-y: auto;
    min-height: 0; /* Critical for grid row shrinking */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.infyp-form-token-field {
    margin-bottom: 10px;
}

.infyp-token-field-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--infyp-spacing-sm);
    width: 100%;
}

.infyp-token-field-label {
    display: inline-block;
    font-weight: 600;
    font-size: var(--infyp-font-size-md);
    color: var(--infyp-text-primary);
    margin: 0;
    flex-shrink: 0;
}

.infyp-token-field-input-container {
    position: relative;
    width: 100%;
    background: var(--infyp-white);
    border: 1px solid var(--infyp-text-lighter);
    border-radius: var(--infyp-radius-sm);
    box-shadow: 0 0 0 transparent;
    transition: border-color 0.1s linear, box-shadow 0.1s linear;
    min-height: 40px;
}

.infyp-token-field-input-container:focus-within {
    border-color: var(--infyp-primary-alt);
    box-shadow: 0 0 0 1px var(--infyp-primary-alt);
    outline: 2px solid transparent;
}

.infyp-token-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    min-height: 32px;
    cursor: text;
}

.infyp-keyword-token {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--infyp-spacing-xs) 0 var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-base);
    line-height: 24px;
    background: var(--infyp-border-light);
    color: var(--infyp-text-darker);
    border-radius: var(--infyp-radius-sm);
    white-space: nowrap;
    max-width: 100%;
}

.infyp-keyword-token .infyp-token-remove {
    background: none;
    border: none;
    color: var(--infyp-text-darker);
    cursor: pointer;
    padding: 0 var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-2xl);
    line-height: 1;
    height: 24px;
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    margin-left: var(--infyp-spacing-xxs);
}

.infyp-keyword-token .infyp-token-remove:hover {
    opacity: 1;
    color: var(--infyp-error);
}

.infyp-token-input {
    flex: 1 1 auto;
    min-width: 100px;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: var(--infyp-font-size-base);
    line-height: 24px;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--infyp-text-darker) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.infyp-token-field-input-container input[type="text"].infyp-token-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.infyp-token-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

.infyp-token-input:disabled {
    display: none !important;
}

.infyp-token-field-input-container input:disabled,
.infyp-token-field-input-container input.disabled {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.infyp-token-field-help {
    margin-top: var(--infyp-spacing-xs);
    margin-bottom: 0;
    font-size: var(--infyp-font-size-sm);
    font-style: normal;
    color: var(--infyp-text-muted);
}

.infyp-keywords-counter {
    color: var(--infyp-text-darker);
    font-size: var(--infyp-font-size-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.infyp-token-field-header .infyp-keywords-counter {
    margin: 0;
    margin-left: auto;
    text-align: right;
}

.infyp-keywords-ai-generate {
    margin: var(--infyp-spacing-md) 0 0 0;
}

.infyp-keywords-ai-generate button {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
}

.infyp-keywords-ai-generate .infyp-optimize-icon {
    font-size: var(--infyp-font-size-lg);
    vertical-align: middle;
}

.infyp-keywords-recommendations {
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md);
    margin-top: var(--infyp-spacing-md);
}

.infyp-keywords-recommendations h4 {
    margin: 0 0 10px 0;
    font-size: var(--infyp-font-size-md);
    font-weight: 600;
    color: var(--infyp-text-primary);
}

.infyp-keywords-recommendations ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.infyp-keywords-recommendations li {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm);
    margin-bottom: 5px;
    font-size: var(--infyp-font-size-base);
    color: var(--infyp-text-darker);
}

.infyp-keywords-recommendations .dashicons {
    color: var(--infyp-info);
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
}

.infyp-keywords-recommendations li {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm);
    margin-bottom: var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-md);
    color: var(--infyp-text-primary);
}

.infyp-keywords-recommendations li:last-child {
    margin-bottom: 0;
}

.infyp-keywords-recommendations .dashicons {
    color: var(--infyp-primary);
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
}

.infyp-keywords-lightbox-footer {
    grid-area: footer;
    display: flex;
    justify-content: flex-end;
    gap: var(--infyp-spacing-sm, 8px);
    padding: var(--infyp-spacing-lg, 16px);
    border-top: 1px solid var(--infyp-border-light, #e0e0e0);
    background: var(--infyp-bg-lighter, #f9f9f9);
    border-radius: 0 0 var(--infyp-radius-lg, 8px) var(--infyp-radius-lg, 8px);
}

/* Responsive styles for keywords lightbox handled by modals.css unified system */

/* Source: plugin/loading-states.css */
/**
 * Loading, Skeleton and Animation Styles
 * Extracted from admin-style.css
 * Generated: 2025-12-04 13:47:13
 */

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

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

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

@keyframes infyp-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

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

@keyframes infyp-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.8
    }
}

@keyframes infyp-shimmer {
    0% {
        left: -100%
    }

    100% {
        left: 100%
    }
}

@keyframes infyp-success-flash {
    0% {
        background-color: var(--infyp-success-light)
    }

    100% {
        background-color: transparent
    }
}

/*
 * Table cell vertical centering for loading spinners.
 * The wrapper divs (.infyp-field-wrapper, etc.) sit inside <td> cells.
 * Without this, the wrapper is top-aligned in the <td> (WP core default
 * vertical-align: top), so the spinner appears ~10px too high.
 * The :has() selector targets the parent <td> when a child is loading.
 */
td:has(> .infyp-wrapper-loading) {
    vertical-align: middle !important;
}

.infyp-field-wrapper.infyp-wrapper-loading {
    min-height: 80px;
    align-items: center;
    justify-content: center;
}

.infyp-field-wrapper.infyp-wrapper-loading > *:not(.infyp-field-spinner) {
    display: none !important;
}

.infyp-field-wrapper.infyp-wrapper-loading > .infyp-field-spinner {
    position: static;
    transform: none;
    float: none !important;
    margin: 0 !important;
}

.infyp-keywords-wrapper.infyp-wrapper-loading {
    min-height: 60px;
    align-items: center;
    justify-content: center;
}

.infyp-keywords-wrapper.infyp-wrapper-loading > *:not(.infyp-field-spinner) {
    display: none !important;
}

.infyp-keywords-wrapper.infyp-wrapper-loading > .infyp-field-spinner {
    position: static;
    transform: none;
    float: none !important;
    margin: 0 !important;
}

.infyp-usage-details.infyp-wrapper-loading {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infyp-usage-details.infyp-wrapper-loading > *:not(.infyp-field-spinner) {
    display: none !important;
}

.infyp-usage-details.infyp-wrapper-loading > .infyp-field-spinner {
    position: static;
    transform: none;
    float: none !important;
    margin: 0 !important;
}

.infyp-actions-wrapper.infyp-wrapper-loading {
    min-height: 80px;
    align-items: center;
    justify-content: center;
}

.infyp-actions-wrapper.infyp-wrapper-loading > *:not(.infyp-field-spinner) {
    display: none !important;
}

.infyp-actions-wrapper.infyp-wrapper-loading > .infyp-field-spinner {
    position: static;
    transform: none;
    float: none !important;
    margin: 0 !important;
}

/* Action column loading state — use native td vertical-align */
.column-actions.infyp-wrapper-loading {
    vertical-align: middle !important;
    text-align: center;
}

.column-actions.infyp-wrapper-loading > *:not(.infyp-optimize-status):not(.infyp-field-spinner) {
    display: none !important;
}

/* Bare spinner (showWrapperSpinner path) — centered as block */
.column-actions.infyp-wrapper-loading > .infyp-field-spinner {
    position: static;
    transform: none;
    float: none !important;
    margin: 0 auto !important;
    display: block;
}

/* Optimize status container — inline-block so td text-align centers it */
.infyp-optimize-status {
    display: inline-block;
    text-align: center;
}

/* Spinner inside status — block + auto margin to center */
.infyp-optimize-status .infyp-field-spinner {
    position: static;
    transform: none;
    float: none !important;
    margin: 0 auto !important;
    display: block;
}

.infyp-optimize-status .infyp-status-text {
    display: block;
    font-size: 11px;
    color: var(--infyp-text-secondary, #666);
    line-height: 1.3;
    margin-top: 6px;
}

.infyp-optimize-status .infyp-status-timer {
    display: block;
    font-size: 10px;
    color: var(--infyp-text-secondary, #999);
    font-variant-numeric: tabular-nums;
    font-family: monospace;
    margin-top: 2px;
}

.infyp-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--infyp-border-light);
    border-radius: 50%;
    border-top-color: var(--infyp-primary);
    animation: infyp-spin 1s linear infinite
}

.infyp-optimizing .infyp-spinner {
    display: inline-block;
    margin-left: var(--infyp-spacing-sm)
}

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

@keyframes infyp-gentle-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4)
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(251, 191, 36, 0)
    }
}

@keyframes infyp-check-appear {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0)
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1)
    }
}

@keyframes infyp-row-highlight {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: var(--infyp-warning-bg-lighter);
    }
}

@keyframes infyp-skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.infyp-table-ready + .infyp-table-skeleton,
.infyp-table-skeleton.infyp-skeleton-hidden {
    display: none;
}

/* Skeleton loading message */
.infyp-skeleton-loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--infyp-bg-lighter);
    border-bottom: 1px solid var(--infyp-border);
    gap: 12px;
}

.infyp-skeleton-loading-message .spinner {
    float: none;
    margin: 0;
}

.infyp-skeleton-loading-message .infyp-loading-text {
    font-size: 14px;
    color: var(--infyp-text-secondary);
    font-weight: 500;
}

.infyp-skeleton-header {
    display: flex;
    background: var(--infyp-bg-lighter);
    border-bottom: 1px solid var(--infyp-border);
    padding: 10px 0;
}

.infyp-skeleton-row {
    display: flex;
    border-bottom: 1px solid var(--infyp-bg-hover);
    padding: 15px 0;
    background: var(--infyp-white);
}

.infyp-skeleton-row:last-child {
    border-bottom: none;
}

.infyp-skeleton-cell {
    height: 20px;
    background: linear-gradient(90deg, var(--infyp-border-gray) 25%, var(--infyp-bg-hover) 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: infyp-skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: var(--infyp-radius-md);
    margin: 0 10px;
}

.infyp-skeleton-checkbox {
    width: 30px;
    flex-shrink: 0;
}

.infyp-skeleton-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
}

.infyp-skeleton-title {
    flex: 2;
    min-width: 150px;
}

.infyp-skeleton-field {
    flex: 1;
    min-width: 100px;
}

.infyp-skeleton-actions {
    width: 120px;
    flex-shrink: 0;
}

.infyp-spinner-left {
    float: left;
    margin: 0
}


/* Fallback load button styles */
.infyp-table-fallback {
    text-align: center;
    padding: 40px 20px;
}

.infyp-table-fallback .button-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.infyp-table-fallback .dashicons {
    line-height: inherit;
}

/* Spin animation for loading button */
.infyp-table-fallback .dashicons.spin,
.dashicons.spin {
    animation: infyp-spin 1s linear infinite;
}

/* Error row styles */
.infyp-table-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--infyp-error);
}

.infyp-table-error .dashicons-warning {
    color: var(--infyp-warning);
}

/* Source: plugin/seo-score-display.css */
/**
 * SEO Score Display Styles (not modal structure)
 * Extracted from admin-style.css
 * Generated: 2025-12-04 13:47:13
 */

.infyp-score-info {
    font-size: var(--infyp-font-size-md);
    cursor: pointer;
    color: var(--infyp-text-secondary);
    margin-left: 3px;
    vertical-align: middle;
    transition: color 0.2s;
    display: inline-block
}

.infyp-score-info:hover {
    color: var(--infyp-primary)
}

.infyp-score-label {
    white-space: nowrap
}

.infyp-score-item {
    margin-bottom: 15px;
    padding: var(--infyp-spacing-md);
    background: var(--infyp-bg-light);
    border-radius: 6px;
    border-left: 4px solid var(--infyp-border)
}

.infyp-score-item.complete {
    border-left-color: var(--infyp-success)
}

.infyp-score-item.missing {
    border-left-color: var(--infyp-error)
}

.infyp-score-item.partial {
    border-left-color: var(--infyp-warning)
}

.infyp-score-item-title {
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary)
}

.infyp-score-item-points {
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-secondary)
}

.infyp-score-item-status {
    font-size: var(--infyp-font-size-base);
    color: var(--infyp-text-secondary)
}

.infyp-score-total {
    margin-top: var(--infyp-spacing-xl);
    padding: var(--infyp-spacing-xl);
    background: var(--infyp-bg-light);
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center
}

.infyp-score-total-circle {
    display: flex;
    justify-content: center;
    margin-bottom: 15px
}

.infyp-score-total-details {
    margin-bottom: 15px
}

.infyp-score-total-label {
    font-size: var(--infyp-font-size-lg);
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary);
    margin-bottom: 5px
}

.infyp-score-points-breakdown {
    margin-top: var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-md);
    color: var(--infyp-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--infyp-spacing-xs)
}

.infyp-points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    border-radius: var(--infyp-radius-full);
    font-weight: var(--infyp-font-weight-semibold);
    font-size: var(--infyp-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.infyp-points-earned {
    background: var(--infyp-primary-bg);
    color: var(--infyp-primary)
}

.infyp-points-total {
    background: var(--infyp-bg-secondary);
    color: var(--infyp-text-primary)
}

.infyp-points-separator {
    font-size: var(--infyp-font-size-lg);
    color: var(--infyp-border-light);
    margin: 0 var(--infyp-spacing-xxs)
}

.infyp-points-label {
    margin-left: var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-md);
    color: var(--infyp-text-secondary)
}

.infyp-points-badge.infyp-badge-success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text)
}

.infyp-points-badge.infyp-badge-warning {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text)
}

.infyp-points-badge.infyp-badge-error {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text)
}

.infyp-points-total.infyp-badge-success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text)
}

.infyp-points-badge-small {
    font-size: 9px;
    padding: 2px var(--infyp-spacing-xs);
    letter-spacing: 0.3px
}

.infyp-score-item-badges {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
}

.infyp-score-item-badges .infyp-points-total {
    background: var(--infyp-success-bg);
    color: var(--infyp-success-text);
}

.infyp-score-total .infyp-optimize-from-modal {
    margin-top: 5px
}

.infyp-score-item-points .infyp-field-feedback {
    min-width: 90px;
    font-size: 11px;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm)
}

.infyp-score-summary {
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border);
    border-radius: var(--infyp-radius-lg);
    padding: 0;
    margin-bottom: var(--infyp-spacing-xl);
    overflow: hidden
}

.infyp-score-summary.infyp-perfect-score {
    background: var(--infyp-success-bg);
    border-color: var(--infyp-success)
}

.infyp-perfect-score .infyp-score-summary-content h3 {
    color: var(--infyp-success-text);
    margin-bottom: var(--infyp-spacing-sm)
}

.infyp-perfect-score .infyp-score-summary-content p {
    color: var(--infyp-success-text);
    margin: 0;
    font-size: var(--infyp-font-size-md);
    text-align: center;
}

.infyp-score-summary-header {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-xl);
    padding: var(--infyp-spacing-xl);
    background: var(--infyp-bg-secondary);
    border-bottom: 1px solid var(--infyp-border)
}

.infyp-score-summary-circle {
    flex-shrink: 0
}

.infyp-score-summary-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--infyp-spacing-xl) 0;
    margin-bottom: var(--infyp-spacing-xl);
}

.infyp-score-summary-circle .infyp-score-circle {
    background: var(--infyp-bg-light);
    border-radius: 50%;
    padding: 5px
}

.infyp-score-summary-content {
    padding: 0 var(--infyp-spacing-xl) var(--infyp-spacing-xl);
}

.infyp-score-summary-content h3 {
    margin: 0 0 var(--infyp-spacing-md) 0;
    font-size: var(--infyp-font-size-lg);
    font-weight: 600;
    color: var(--infyp-text-primary);
    text-align: center;
}

.infyp-score-summary-list {
    list-style: none;
    margin: 0;
    padding: 0 !important
}

.infyp-score-summary-list li {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm);
    margin-bottom: var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-md);
    color: var(--infyp-text-secondary)
}

.infyp-score-summary-list li:last-child {
    margin-bottom: 0
}

.infyp-points-needed {
    color: var(--infyp-warning-text);
    background: var(--infyp-warning-bg);
    padding: var(--infyp-spacing-xxs) 6px;
    border-radius: 3px;
    font-size: var(--infyp-font-size-sm)
}

.infyp-score-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.infyp-score-summary-table thead th {
    background: rgba(34, 113, 177, 0.05);
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    font-size: var(--infyp-font-size-sm);
    text-transform: uppercase;
    color: var(--infyp-text-secondary);
    border-bottom: 2px solid var(--infyp-border-light);
}

.infyp-score-summary-table tbody td {
    padding: var(--infyp-spacing-md) 15px;
    border-bottom: 1px solid var(--infyp-border-light);
    color: var(--infyp-text-primary);
}

.infyp-score-summary-table tbody tr:hover {
    background: rgba(34, 113, 177, 0.02);
}

.infyp-score-summary-table tfoot td {
    padding: var(--infyp-spacing-md) 15px;
    border-top: 2px solid var(--infyp-border);
    background: rgba(34, 113, 177, 0.03);
}

.infyp-score-summary-table td:last-child,
.infyp-score-summary-table th:last-child {
    text-align: right;
    width: 150px;
}

.infyp-score-summary-table tfoot .infyp-points-needed {
    font-size: var(--infyp-font-size-lg);
}

.infyp-score-quick-fix {
    display: flex;
    align-items: flex-start;
    gap: var(--infyp-spacing-md);
    padding: var(--infyp-spacing-lg) var(--infyp-spacing-xl);
    background: var(--infyp-info-bg);
    border: 1px solid var(--infyp-info-border);
    border-radius: 6px;
    margin: var(--infyp-spacing-xl);
}

.infyp-score-hint .count {
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-primary);
    padding: 0 var(--infyp-spacing-xxs);
}

.infyp-score-label {
    font-size: var(--infyp-font-size-xs);
    font-weight: 500;
    text-transform: uppercase
}

.infyp-score-label.optimized {
    color: var(--infyp-success-secondary-text)
}

.infyp-score-label.good {
    color: var(--infyp-primary)
}

.infyp-score-label.fair {
    color: var(--infyp-warning)
}

.infyp-score-label.poor {
    color: var(--infyp-error)
}

.infyp-field-feedback {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--infyp-font-size-sm);
    font-weight: 600;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    border-radius: 5px;
    width: 100%;
    min-height: 29px;
    justify-content: center;
    box-sizing: border-box
}

.infyp-field-feedback .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    flex-shrink: 0
}

.infyp-field-feedback.char-count {
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
}

.infyp-field-feedback.success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text)
}


.infyp-field-feedback.good {
    background: var(--infyp-info-bg);
    color: var(--infyp-primary)
}

.infyp-field-feedback.warning {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text)
}

.infyp-field-feedback.error {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text)
}

.infyp-field-feedback.empty {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text)
}

.infyp-field-feedback.missing {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text)
}

.infyp-score-hint {
    font-size: 0.875rem;
    color: var(--infyp-text-secondary);
    margin-top: var(--infyp-spacing-sm)
}

.infyp-score-hint:empty {
    display: none;
}

.infyp-score-display .infyp-score-items {
    margin-bottom: var(--infyp-spacing-sm)
}

.infyp-score-display .infyp-score-item {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none
}

.infyp-score-display .infyp-score-item.success {
    border-left-color: var(--infyp-success)
}

.infyp-score-display .infyp-score-item.partial {
    border-left-color: var(--infyp-warning)
}

.infyp-score-display .infyp-score-item.missing {
    border-left-color: var(--infyp-error)
}

.infyp-score-display .infyp-score-items:last-child, .infyp-score-display .infyp-score-item:last-child {
    margin-bottom: 0;
}

.infyp-score-display .infyp-points-badge {
    font-size: var(--infyp-font-size-sm);
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    line-height: 1.2
}

.infyp-modal-counter-badges {
    display: grid;
    /* auto-fit equal columns: 2 children → 50/50, 3 children → 33/33/33.
       minmax(0, 1fr) prevents intrinsic content from blowing out the cell. */
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--infyp-spacing-sm);
    width: 100%;
    margin-top: var(--infyp-spacing-sm);
}

/* On narrow viewports, stack the badges vertically — equal columns get cramped
   on phones, especially with the longer numeric labels (e.g. "119 | 125 chars"). */
@media (max-width: 480px) {
    .infyp-modal-counter-badges {
        grid-template-columns: 1fr;
    }
}

.infyp-modal-counter-badges .infyp-field-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-sm);
    font-weight: 600;
    padding: var(--infyp-spacing-xs);
    border-radius: 5px;
    margin: 0;
    width: 100%;
    box-sizing: border-box
}

.infyp-modal-counter-badges .infyp-field-feedback.char-count,
.infyp-modal-counter-badges .infyp-field-feedback.word-count {
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
}

.infyp-modal-counter-badges .infyp-field-feedback .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    flex-shrink: 0
}

.infyp-score-summary h3 {
    margin-bottom: 10px;
    font-size: var(--infyp-font-size-md);
    font-weight: 600
}

.infyp-score-summary ul {
    margin: 0;
    padding-left: var(--infyp-spacing-xl)
}

.infyp-score-summary li {
    margin-bottom: 5px
}

.infyp-score-quick-fix {
    margin-top: 15px;
    padding: 10px;
    background: var(--infyp-bg-secondary);
    border-radius: var(--infyp-radius-md)
}

.infyp-score-breakdown-with-summary {
    margin-top: var(--infyp-spacing-xl)
}

.infyp-score-breakdown-without-summary {
    margin-top: 0
}

.infyp-score-compact {
    background: var(--infyp-bg-secondary);
    padding: var(--infyp-spacing-xxs) var(--infyp-spacing-sm);
    border-radius: var(--infyp-radius-xl);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px
}

.infyp-score-compact.success {
    background: var(--infyp-success-bg);
    color: var(--infyp-success-text)
}

.infyp-score-compact.warning {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text)
}

.infyp-score-compact.error {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text)
}

/* Source: plugin/seo-score-page.css */
/* ==========================================================================
   Weight Sliders
   ========================================================================== */

.infyp-weight-slider {
    width: 100%;
    height: 4px;
    background: var(--infyp-border-light);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer
}

.infyp-weight-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--infyp-primary);
    cursor: pointer
}

.infyp-weight-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--infyp-primary);
    cursor: pointer;
    border: none
}

.infyp-weight-total {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--infyp-spacing-md) 15px;
    background: var(--infyp-bg-lighter);
    border: 1px solid var(--infyp-border-light);
    margin: 15px 0
}

#infyp-weight-total {
    font-size: var(--infyp-font-size-lg);
    font-weight: 600;
    color: var(--infyp-primary)
}

.infyp-weight-warning {
    color: var(--infyp-error);
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-base)
}

.infyp-references {
    list-style: none;
    padding: 0;
    margin: 15px 0
}

.infyp-references li {
    margin-bottom: var(--infyp-spacing-sm)
}

.infyp-references a {
    color: var(--infyp-primary);
    text-decoration: none;
    font-size: var(--infyp-font-size-base)
}

.infyp-references a:hover {
    text-decoration: underline
}

.infyp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-lg);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
    visibility: hidden;
    vertical-align: middle;
    margin-left: 10px
}

.infyp-status-badge.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible
}

.infyp-status-badge .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
    line-height: 1
}

.infyp-status-badge.success {
    background: var(--infyp-score-success-bg);
    color: var(--infyp-score-success-text);
    border: 1px solid var(--infyp-score-success-stroke)
}

.infyp-status-badge.success .dashicons {
    color: var(--infyp-success-secondary)
}

.infyp-status-badge.error {
    background: var(--infyp-score-error-bg);
    color: var(--infyp-score-error-text);
    border: 1px solid var(--infyp-score-error-stroke)
}

.infyp-status-badge.error .dashicons {
    color: var(--infyp-error)
}

.infyp-status-badge.warning {
    background: var(--infyp-warning-border);
    color: var(--infyp-score-warning-text);
    border: 1px solid var(--infyp-score-warning-stroke)
}

.infyp-status-badge.warning .dashicons {
    color: var(--infyp-warning)
}

.infyp-status-badge.info {
    background: var(--infyp-score-info-bg);
    color: var(--infyp-score-info-text);
    border: 1px solid var(--infyp-score-info-stroke)
}

.infyp-status-badge.info .dashicons {
    color: var(--infyp-primary)
}

.infyp-status-badge.loading .dashicons-update {
    animation: spin 1s linear infinite
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.submit {
    display: flex;
    align-items: center;
    flex-wrap: nowrap
}

/* ============================================
   Modern Configuration UI Styles 
   ============================================ */

.infyp-config-card {
    background: var(--infyp-bg-card);
    border: 1px solid var(--infyp-border-primary);
    box-shadow: var(--infyp-shadow-sm);
}

.infyp-total-display-card {
    border: 1px solid var(--infyp-border-light);
    padding: var(--infyp-spacing-md);
    transition: all var(--infyp-transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--infyp-radius-md);
}

.infyp-total-display-card h4 {
    margin: var(--infyp-spacing-sm) 0 var(--infyp-spacing-xs) 0;
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
}

.infyp-total-display-card .description {
    margin: 0;
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-xs);
}

.infyp-circular-progress {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.infyp-total-display-card .infyp-circular-progress {
    width: 80px;
    height: 80px;
}

.infyp-circular-progress svg {
    transform: rotate(-90deg);
}

.infyp-progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--infyp-font-size-2xl);
    font-weight: var(--infyp-font-weight-bold);
    color: var(--infyp-text-primary);
}

.infyp-total-display-card .infyp-progress-value {
    font-size: var(--infyp-font-size-lg);
}

.infyp-progress-value.good {
    color: var(--infyp-info);
}

.infyp-progress-value.fair {
    color: var(--infyp-warning);
}

.infyp-progress-value.poor {
    color: var(--infyp-error);
}

.infyp-progress-value.warning {
    color: var(--infyp-warning);
}

.infyp-total-notice {
    margin-top: 10px;
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
    display: flex;
    align-items: center;
    gap: 5px;
}

.infyp-total-notice .dashicons {
    color: var(--infyp-warning);
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
}

.infyp-total-display h3 {
    margin: 0 0 5px 0;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-lg);
}

.infyp-total-display .description {
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-base);
    margin: 0;
}

.infyp-weights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--infyp-spacing-xl);
    margin-bottom: var(--infyp-spacing-xl);
}

@media (max-width: 782px) {
    .infyp-weights-grid {
        grid-template-columns: 1fr;
    }
}

.infyp-weight-card {
    border: 1px solid var(--infyp-border-light);
    padding: var(--infyp-spacing-md);
    transition: all var(--infyp-transition-normal);
    border-radius: var(--infyp-radius-md);
}

.infyp-weight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--infyp-spacing-sm);
}

.infyp-weight-name {
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
}

.infyp-weight-percent {
    background: var(--infyp-primary);
    color: white;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-sm);
    min-width: 45px;
    text-align: center;
    font-weight: var(--infyp-font-weight-semibold);
}

.infyp-visual-bar {
    height: 32px;
    background: var(--infyp-bg-light);
    border-radius: 16px;
    padding: var(--infyp-spacing-xs);
    position: relative;
    margin-bottom: var(--infyp-spacing-sm);
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.infyp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--infyp-primary), var(--infyp-primary-hover));
    border-radius: var(--infyp-radius-xl);
    transition: width var(--infyp-transition-normal);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--infyp-spacing-sm);
    min-width: 30px;
}

.infyp-bar-value {
    color: white;
    font-size: var(--infyp-font-size-sm);
    font-weight: var(--infyp-font-weight-semibold);
}

.infyp-sub-weights {
    display: flex;
    gap: var(--infyp-spacing-sm);
    margin-top: var(--infyp-spacing-sm);
    padding-top: var(--infyp-spacing-sm);
    border-top: 1px solid var(--infyp-border-light);
}

.infyp-sub-weight {
    flex: 1;
    text-align: center;
}

.infyp-sub-weight label {
    display: block;
    font-size: var(--infyp-font-size-xs);
    color: var(--infyp-text-secondary);
    margin-bottom: var(--infyp-spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infyp-sub-input {
    width: 100%;
    padding: var(--infyp-spacing-xs);
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    text-align: center;
    font-size: var(--infyp-font-size-sm);
}

.infyp-params-details {
    margin-top: var(--infyp-spacing-sm);
    padding-top: var(--infyp-spacing-sm);
    border-top: 1px solid var(--infyp-border-light);
}

.infyp-params-details summary {
    cursor: pointer;
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-primary);
    font-weight: var(--infyp-font-weight-semibold);
    -webkit-user-select: none;
            user-select: none;
}

.infyp-params-details summary:hover {
    color: var(--infyp-primary-hover);
}

.infyp-params-content {
    padding: 10px 0;
}

.infyp-param-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: var(--infyp-spacing-sm);
}

.infyp-param-row label {
    min-width: 70px;
    font-size: var(--infyp-font-size-xs);
    color: var(--infyp-text-secondary);
}

.infyp-param-row input {
    width: 60px;
    padding: 3px 5px;
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-sm);
    font-size: var(--infyp-font-size-xs);
}

.infyp-param-row span {
    color: var(--infyp-text-secondary);
}

/* Auto-link characters↔words coupling row */
.infyp-auto-link-row {
    margin-bottom: var(--infyp-spacing-sm);
    padding-bottom: var(--infyp-spacing-xs);
    border-bottom: 1px dashed var(--infyp-border-light);
}

.infyp-auto-link-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: var(--infyp-font-size-xs);
    color: var(--infyp-text-primary);
    cursor: pointer;
}

.infyp-auto-link-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.infyp-auto-link-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--infyp-bg-light);
    color: var(--infyp-text-secondary);
    font-size: 10px;
    font-weight: bold;
    cursor: help;
}

/* Visual hint that linked inputs are coupled */
.infyp-params-content.infyp-linked .infyp-param-row input[type="number"] {
    background: var(--infyp-bg-light, #f8fafc);
}

.infyp-config-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Dragging state */
.infyp-visual-bar.dragging {
    background: var(--infyp-border-lighter);
}

.infyp-visual-bar.dragging .infyp-bar-fill {
    background: linear-gradient(90deg, var(--infyp-primary-hover), #0a4b7c);
}

/* Source Link Badges */
.infyp-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--infyp-bg-hover);
    border: none;
    border-radius: var(--infyp-radius-md);
    color: var(--infyp-text-secondary);
    text-decoration: none;
    font-size: var(--infyp-font-size-sm);
    font-weight: 500;
    margin-top: var(--infyp-spacing-sm);
    transition: all 0.2s ease;
}

.infyp-source-badge:hover {
    background: var(--infyp-border-light);
    color: var(--infyp-text-darker);
    text-decoration: none;
}

.infyp-source-badge .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    line-height: 1;
}

.infyp-source-badge .dashicons-external {
    margin-left: var(--infyp-spacing-xxs);
    font-size: var(--infyp-font-size-sm);
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.infyp-references li {
    margin-bottom: var(--infyp-spacing-xl);
}

.infyp-references li strong {
    display: block;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-primary);
    font-size: 15px;
}

.infyp-references li .description {
    margin: 0 0 var(--infyp-spacing-sm) 0;
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-md);
    line-height: 1.6;
}

/* Source: plugin/seo-score-references.css */
/**
 * SEO Score Page - References & Best Practices Styles
 * Uses existing infyp CSS variables for consistency
 */

/* Best Practices Grid */
.infyp-best-practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--infyp-spacing-lg);
    margin: var(--infyp-spacing-lg) 0;
}

.infyp-practice-item {
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-lighter);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-lg);
}

.infyp-practice-item h4 {
    margin: 0 0 var(--infyp-spacing-md) 0;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
    font-weight: var(--infyp-font-weight-semibold);
    padding-bottom: var(--infyp-spacing-sm);
    border-bottom: 1px solid var(--infyp-border-lighter);
}

.infyp-practice-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.infyp-practice-item li {
    padding: var(--infyp-spacing-xs) 0;
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-md);
    line-height: 1.5;
    padding-left: var(--infyp-spacing-lg);
    position: relative;
}

.infyp-practice-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--infyp-primary);
    font-weight: var(--infyp-font-weight-bold);
}

/* References Section Styles */
.infyp-references-section {
    margin-top: var(--infyp-spacing-lg);
}

.infyp-references-section h4 {
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
    font-weight: var(--infyp-font-weight-semibold);
    margin: var(--infyp-spacing-lg) 0 var(--infyp-spacing-md) 0;
    padding-bottom: var(--infyp-spacing-sm);
    border-bottom: 1px solid var(--infyp-border-lighter);
}

.infyp-references-section h4:first-child {
    margin-top: 0;
}

.infyp-references {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infyp-references li {
    margin-bottom: var(--infyp-spacing-md);
    padding: var(--infyp-spacing-md);
    background: var(--infyp-bg-lighter);
}

.infyp-references a {
    text-decoration: none;
    color: var(--infyp-text-primary);
    font-weight: var(--infyp-font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
}

.infyp-references a strong {
    font-size: var(--infyp-font-size-base);
}

.infyp-references .dashicons-external {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    color: var(--infyp-text-light);
}

.infyp-references .description {
    margin: var(--infyp-spacing-sm) 0 0 0;
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-md);
    line-height: 1.5;
}

/* Notice Styles */
.infyp-notice {
    padding: var(--infyp-spacing-md) var(--infyp-spacing-lg);
    border-radius: var(--infyp-radius-md);
}

.infyp-notice-info {
    background: var(--infyp-bg-light);
    color: var(--infyp-text-primary);
}

.infyp-notice p {
    margin: 0;
    line-height: 1.5;
    font-size: var(--infyp-font-size-md);
}

.infyp-notice strong {
    color: var(--infyp-text-primary);
    font-weight: var(--infyp-font-weight-semibold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .infyp-best-practices-grid {
        grid-template-columns: 1fr;
    }
}

/* Source: plugin/usage-badges.css */
/**
 * Usage Badge and Info Styles
 * Extracted from admin-style.css
 * Generated: 2025-12-04 13:47:13
 */

.infyp-points-badge.infyp-badge-success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text)
}

.infyp-points-badge.infyp-badge-warning {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text)
}

.infyp-points-badge.infyp-badge-error {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text)
}

.infyp-usage-details {
    position: relative;
}

.infyp-usage-details .button {
    min-height: 29px !important;
    box-sizing: border-box;
}

.infyp-usage-details.infyp-wrapper-loading {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infyp-usage-details.infyp-wrapper-loading > *:not(.infyp-field-spinner) {
    display: none !important;
}

.infyp-usage-details .infyp-field-spinner {
    position: static;
    transform: none;
    margin: 0 auto !important;
}

.infyp-usage-details ul {
    margin-top: 0
}

.infyp-usage-count {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-md)
}

.infyp-badge-container {
    display: flex;
    flex-direction: column;
    gap: var(--infyp-spacing-sm);
    align-items: flex-start;
    width: 100%
}

.infyp-usage-lightbox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--infyp-bg-white);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: var(--infyp-radius-lg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    z-index: 160000
}

.infyp-usage-lightbox[style*="display:block"],
.infyp-usage-lightbox[style*="display:flex"] {
    display: flex !important;
    flex-direction: column
}

.infyp-usage-lightbox-header {
    padding: var(--infyp-spacing-md);
    border-bottom: 1px solid var(--infyp-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.infyp-usage-lightbox-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--infyp-text-primary)
}

.infyp-usage-lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--infyp-radius-md);
    font-size: 1.5rem;
    color: var(--infyp-text-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.infyp-usage-lightbox-close:hover {
    background-color: var(--infyp-bg-light);
    color: var(--infyp-text-primary);
}

.infyp-usage-lightbox-content {
    padding: var(--infyp-spacing-lg);
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 180px)
}

.infyp-usage-lightbox-footer {
    padding: var(--infyp-spacing-md);
    border-top: 1px solid var(--infyp-border-light);
    display: flex;
    justify-content: space-between;
    gap: var(--infyp-spacing-sm);
    border-radius: 0 0 var(--infyp-radius-lg) var(--infyp-radius-lg);
}

.infyp-usage-details-section {
    background: var(--infyp-bg-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md);
    margin-bottom: var(--infyp-spacing-md)
}

.infyp-usage-details-section h4 {
    margin-top: 0;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-primary);
    font-size: 1rem
}

.infyp-usage-details ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.infyp-usage-details li {
    padding: var(--infyp-spacing-sm);
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-sm);
    margin-bottom: var(--infyp-spacing-xs);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.infyp-usage-details li:hover {
    background: var(--infyp-bg-hover);
    border-color: var(--infyp-primary)
}

.infyp-usage-details li a {
    text-decoration: none;
    color: var(--infyp-primary);
    font-weight: 500;
    flex: 1
}

.infyp-usage-details li a:hover {
    text-decoration: underline
}

.infyp-usage-info {
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
    padding: var(--infyp-spacing-md)
}

.infyp-usage-info h4 {
    margin-top: 0;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-primary);
    font-size: 1rem
}

.infyp-usage-legend {
    list-style: none;
    padding: 0;
    margin: 0
}

.infyp-usage-legend li {
    padding: var(--infyp-spacing-xs) 0;
    color: var(--infyp-text-secondary);
    font-size: 0.9rem
}

.infyp-usage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    border-radius: var(--infyp-radius-full);
    font-size: var(--infyp-font-size-xs);
    font-weight: var(--infyp-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: var(--infyp-spacing-xs)
}

.infyp-usage-badge.featured {
    background: var(--infyp-badge-featured-bg);
    color: var(--infyp-primary-dark)
}

.infyp-usage-badge.content {
    background: var(--infyp-badge-content-bg);
    color: var(--infyp-badge-content-text)
}

.infyp-usage-badge.builder {
    background: var(--infyp-badge-builder-bg);
    color: var(--infyp-badge-builder-text)
}

.infyp-refresh-usage {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs)
}

.infyp-refresh-usage .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
    vertical-align: sub !important;
}

.infyp-category-badge.infyp-badge-wordpress {
    background: var(--wp-admin-theme-color);
    color: #ffffff;
}

.infyp-category-badge.infyp-badge-woo {
    background: var(--infyp-brand-woo);
    color: #ffffff;
}

.infyp-category-badge.infyp-badge-custom {
    background: var(--wp-admin-theme-color);
    color: #ffffff;
}

.infyp-category-badge.infyp-badge-extension {
    background: var(--infyp-text-secondary);
    color: white;
}

.infyp-usage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infyp-usage-list li {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm);
    flex-wrap: wrap;
}

.infyp-usage-list a {
    font-weight: 500;
    text-decoration: none;
    color: var(--infyp-primary);
}

.infyp-usage-list a:hover {
    color: var(--infyp-primary-dark);
    text-decoration: underline;
}

.infyp-usage-list p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.infyp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-xs);
    font-weight: var(--infyp-font-weight-semibold);
    line-height: 1.2;
    border-radius: var(--infyp-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.infyp-badge-type {
    background: var(--infyp-bg-light);
    color: var(--infyp-text-dark);
    border: 1px solid var(--infyp-border);
}

.infyp-badge-usage {
    background: var(--infyp-info-bg);
    color: var(--infyp-primary);
}

.infyp-badge-featured {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text-dark);
}

.infyp-badge-content {
    background: var(--infyp-success-bg);
    color: var(--infyp-success-text);
}

.infyp-badge-builder {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text);
}

.infyp-badge-gutenberg {
    background: var(--infyp-text-primary);
    color: var(--infyp-white);
}

.infyp-badge-elementor {
    background: var(--infyp-brand-elementor);
    color: var(--infyp-white);
}

.infyp-badge-divi {
    background: var(--infyp-brand-violet);
    color: var(--infyp-white);
}

.infyp-badge-wpbakery {
    background: var(--infyp-brand-cyan);
    color: var(--infyp-white);
}

.infyp-badge-beaver {
    background: var(--infyp-brand-teal);
    color: var(--infyp-white);
}

.infyp-badge-oxygen {
    background: var(--infyp-brand-turquoise);
    color: var(--infyp-white);
}

.infyp-badge-bricks {
    background: var(--infyp-amber-500);
    color: var(--infyp-text-dark);
}

.infyp-badge-brizy {
    background: var(--infyp-brand-dark);
    color: var(--infyp-white);
}

/* Source: plugin/api-keys.css */
.wrap h1 {
    margin-bottom: 0.8rem;
}

.infyp-api-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--infyp-spacing-lg)
}

.infyp-api-status-item {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-md);
    padding: var(--infyp-spacing-md);
    background: var(--infyp-bg-light);
    border-radius: var(--infyp-radius-lg);
    transition: all var(--infyp-transition-fast)
}

.infyp-api-status-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.infyp-api-status-info h4 {
    margin: 0;
    font-size: var(--infyp-font-size-base);
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary)
}

.infyp-form-control {
    width: 100%;
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    border: 1px solid var(--infyp-border-primary);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
    transition: all var(--infyp-transition-fast)
}

.infyp-form-control:focus {
    outline: none;
    border-color: var(--infyp-gradient-start);
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.2)
}

.infyp-api-key-input {
    font-family: monospace;
    max-width: 50%
}

.infyp-api-key-input::placeholder {
    color: var(--infyp-text-muted);
    font-family: monospace;
    font-size: var(--infyp-font-size-sm)
}

.infyp-key-hint {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    margin-top: var(--infyp-spacing-sm);
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-secondary)
}

.infyp-key-hint .dashicons {
    font-size: var(--infyp-font-size-lg);
    color: var(--infyp-success-secondary)
}


.infyp-form-description a {
    color: var(--infyp-primary);
    text-decoration: none;
    margin-left: var(--infyp-spacing-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    transition: color var(--infyp-transition-fast)
}

.infyp-form-description a:hover {
    color: var(--infyp-primary-hover);
    text-decoration: underline
}

.infyp-form-description a .dashicons {
    font-size: var(--infyp-font-size-md)
}

.infyp-debug-section {
    margin-top: var(--infyp-spacing-2xl);
    background: var(--infyp-bg-light)
}

.infyp-debug-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.infyp-debug-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--infyp-spacing-sm) 0;
    border-bottom: 1px solid var(--infyp-border-lightest)
}

.infyp-debug-list li:last-child {
    border-bottom: none
}

.infyp-debug-label {
    font-weight: var(--infyp-font-weight-medium);
    color: var(--infyp-text-primary)
}

.infyp-debug-status {
    font-weight: var(--infyp-font-weight-semibold)
}

.infyp-debug-status.success {
    color: var(--infyp-success-secondary)
}

.infyp-debug-status.error {
    color: var(--infyp-error)
}

.infyp-dynamic-notice {
    margin: var(--infyp-spacing-md) 0
}

.infyp-save-individual.infyp-saving,
#infyp-save-all-keys.infyp-saving {
    position: relative;
    color: transparent
}

.infyp-save-individual.infyp-saving::after,
#infyp-save-all-keys.infyp-saving::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--infyp-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: infyp-spin 1s linear infinite
}

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

@media (max-width:782px) {
    .infyp-api-status-grid {
        grid-template-columns: 1fr
    }

    .infyp-api-key-input {
        max-width: 100%
    }

    #infyp-save-all-keys {
        width: 100%
    }
}



/* Source: plugin/api-usage.css */
.wrap h1 {
    margin-bottom: 0.8rem;
}

.infyp-api-usage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--infyp-spacing-lg);
}

.infyp-usage-card {
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-primary);
    padding: var(--infyp-spacing-lg);
    box-shadow: var(--infyp-shadow-sm);
}

.infyp-usage-card h3 {
    margin: 0 0 var(--infyp-spacing-sm) 0;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-base);
    font-weight: var(--infyp-font-weight-semibold);
}

.infyp-usage-number {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--infyp-primary);
    margin: var(--infyp-spacing-sm) 0;
}

.infyp-usage-detail {
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-md);
}

.infyp-usage-by-provider {
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-primary);
    padding: var(--infyp-spacing-lg);
    margin: var(--infyp-spacing-lg) 0;
    box-shadow: var(--infyp-shadow-sm);
}

.infyp-usage-by-provider h2 {
    margin-top: 0;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-lg);
    font-weight: var(--infyp-font-weight-semibold);
}

.infyp-usage-chart-container {
    background: var(--infyp-bg-white);
    border: 1px solid var(--infyp-border-primary);
    padding: var(--infyp-spacing-lg);
    margin: var(--infyp-spacing-lg) 0;
    box-shadow: var(--infyp-shadow-sm);
}

.infyp-usage-chart-container h2 {
    margin-top: 0;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-lg);
    font-weight: var(--infyp-font-weight-semibold);
}

.infyp-status {
    display: inline-block;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    border-radius: var(--infyp-radius-sm);
    font-size: var(--infyp-font-size-sm);
    font-weight: var(--infyp-font-weight-medium);
}

.infyp-status.notice-success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text);
}

.infyp-status.notice-error {
    background: var(--infyp-error-bg);
    color: var(--infyp-error-text);
}

.infyp-status.notice-warning {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text);
}

.infyp-error-message {
    color: var(--infyp-error-hover);
    font-size: var(--infyp-font-size-sm);
    font-style: italic;
    cursor: help;
}

/* Table styling improvements */
.infyp-usage-by-provider table {
    margin-top: var(--infyp-spacing-md);
}

.infyp-usage-by-provider table th {
    font-weight: var(--infyp-font-weight-semibold);
    color: var(--infyp-text-primary);
}

.infyp-usage-by-provider table td {
    color: var(--infyp-text-secondary);
}

.infyp-usage-by-provider table code {
    background: var(--infyp-bg-lighter);
    padding: var(--infyp-spacing-xs);
    border-radius: var(--infyp-radius-sm);
    font-size: var(--infyp-font-size-sm);
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .infyp-api-usage-summary {
        grid-template-columns: 1fr;
    }
    
    .infyp-usage-number {
        font-size: 28px;
    }
}

/* Additional hover effects */
.infyp-usage-card {
    transition: var(--infyp-transition-fast);
}

.infyp-usage-card:hover {
    box-shadow: var(--infyp-shadow-md);
    border-color: var(--infyp-primary);
}

/* Chart container specific styles */
#infyp-usage-chart {
    max-height: 400px;
    width: 100%;
}

/* Status icons alignment */
.infyp-status .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
    line-height: 1;
    vertical-align: middle;
    margin-right: var(--infyp-spacing-xs);
}

/* Source: plugin/dashboard.css */
.infyp-dashboard-container {
    padding: 0.7rem 0.3rem 0.5rem 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* First Row: 50/50 Grid (or 33/33/33 when recommendation card is present) */
.infyp-dashboard-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--infyp-spacing-lg);
}

/* Three column layout when any recommendation card is present */
.infyp-dashboard-row-top:has(.infyp-compression-card),
.infyp-dashboard-row-top:has(.infyp-field-optimization-card),
.infyp-dashboard-row-top:has(.infyp-api-usage-card),
.infyp-dashboard-row-top:has(.infyp-extension-card) {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Total Images Card - Collapsible Layout */
.infyp-dashboard-total-card {
    position: relative;
    border: 2px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-lg);
    padding: var(--infyp-spacing-xl);
    background: var(--infyp-bg-light);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.infyp-dashboard-total-card:hover {
    border-color: var(--infyp-primary);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1)
}

/* Main info section: Circle + Total */
.infyp-dashboard-total-info {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-lg);
}

.infyp-dashboard-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.infyp-dashboard-total-content {
    flex: 1;
}

.infyp-dashboard-total-content h3 {
    font-size: var(--infyp-font-size-3xl);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--infyp-text-primary);
}

.infyp-dashboard-total-content p {
    margin: var(--infyp-spacing-xs) 0;
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm);
}

/* Base badge - no color, variants provide colors */
.infyp-optimized-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

.infyp-dashboard-total-content small {
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-sm);
}

/* Field stat display in total card */
.infyp-field-stat-divider {
    display: inline-block;
    width: 2px;
    height: 0.6em;
    background: var(--infyp-border-light);
    margin: 0 var(--infyp-spacing-sm);
    vertical-align: middle;
}

.infyp-field-stat-optimized,
.infyp-field-stat-total {
    vertical-align: middle;
}

/* Stats Grid - 4 column card layout */
.infyp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--infyp-spacing-md);
}

/* Individual stat card */
.infyp-stats-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--infyp-spacing-md);
    border-radius: var(--infyp-radius-md);
    border: 1px solid var(--infyp-border-light);
    background: var(--infyp-white);
    transition: all 0.2s ease;
    gap: var(--infyp-spacing-xs);
}

.infyp-stats-card:hover {
    border-color: var(--infyp-primary);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.08);
}

/* Card title (field name) */
.infyp-stats-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--infyp-text-primary);
}

/* Badge color variants */
.infyp-optimized-badge.infyp-badge-good {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text);
}

.infyp-optimized-badge.infyp-badge-warning {
    background: var(--infyp-warning-bg);
    color: var(--infyp-warning-text);
}

/* Responsive: Compact view - matches table view changes at 1400px */
@media screen and (max-width: 1400px) {
    /* Total Card: Stack circle and content vertically */
    .infyp-dashboard-total-info {
        flex-direction: column;
        text-align: center;
    }

    .infyp-dashboard-total-content p {
        justify-content: center;
    }

    /* Stats Grid: 2 columns instead of 4 */
    .infyp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Dashboard Row Top: 2 columns instead of 3 when recommendation cards present */
    .infyp-dashboard-row-top:has(.infyp-compression-card),
    .infyp-dashboard-row-top:has(.infyp-field-optimization-card),
    .infyp-dashboard-row-top:has(.infyp-api-usage-card) {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive: Mobile - 1 column */
@media (max-width: 600px) {
    .infyp-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Box - Right */
.infyp-dashboard-cta-box {
    border: 2px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-lg);
    padding: var(--infyp-spacing-xl);
    background: linear-gradient(135deg, var(--infyp-bg-light) 0%, var(--infyp-white) 100%);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.infyp-dashboard-cta-box:hover {
    border-color: var(--infyp-primary);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1)
}

.infyp-dashboard-cta-box h4 {
    margin: 0 0 var(--infyp-spacing-sm) 0;
    color: var(--infyp-text-primary);
    font-size: var(--infyp-font-size-lg);
    font-weight: 600;
}

.infyp-dashboard-cta-box p {
    margin: 0 0 var(--infyp-spacing-md) 0;
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-base);
    line-height: 1.5;
    flex: 1;
}

/* Recommendation Cards Specific Styles */
.infyp-compression-card,
.infyp-api-usage-card,
.infyp-extension-card {
    position: relative;
}

/* Extension Card - Blue Theme */
.infyp-extension-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, var(--infyp-white) 100%);
    border-color: rgba(37, 99, 235, 0.15);
}

.infyp-extension-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.infyp-extension-card-actions {
    display: flex;
    gap: var(--infyp-spacing-sm);
    flex-wrap: wrap;
    margin-top: auto;
}

.infyp-extension-card-actions .button {
    margin: 0;
}

/* Compression Card - Blue Theme */
.infyp-compression-card {
    background: linear-gradient(135deg, var(--infyp-bg-blue-light) 0%, var(--infyp-white) 100%);
    border-color: var(--infyp-info-bg);
}

.infyp-compression-card:hover {
    border-color: var(--infyp-primary);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

/* Field Optimization Card */
.infyp-field-optimization-card {
    border: 2px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-lg);
    padding: var(--infyp-spacing-lg);
    background: var(--infyp-bg-light);
    transition: all 0.2s ease;
}

.infyp-field-optimization-card:hover {
    border-color: var(--infyp-primary);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.infyp-field-optimization-card h4 {
    margin: 0;
    font-size: var(--infyp-font-size-lg);
    font-weight: 600;
    color: var(--infyp-text-primary);
}

/* Field Optimization Header with Toggle */
.infyp-field-optimization-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--infyp-spacing-md);
}

.infyp-toggle-fields-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-sm);
    color: var(--infyp-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.infyp-toggle-fields-btn:hover {
    background: var(--infyp-primary);
    border-color: var(--infyp-primary);
    color: var(--infyp-white);
}

.infyp-toggle-fields-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

/* API Usage Card - Default Theme */
.infyp-api-usage-card {
    position: relative;
    /* Uses default .infyp-dashboard-cta-box styling */
}

.infyp-card-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    padding: var(--infyp-spacing-xs);
    cursor: pointer;
    color: var(--infyp-text-secondary);
    line-height: 1;
    transition: color 0.2s ease;
}

.infyp-card-dismiss:hover {
    color: var(--infyp-text-primary);
}

.infyp-card-dismiss .dashicons {
    width: 20px;
    height: 20px;
    font-size: var(--infyp-font-size-2xl);
}

.infyp-compression-card-actions,
.infyp-api-usage-card-actions {
    display: flex;
    gap: var(--infyp-spacing-sm);
    flex-wrap: wrap;
    margin-top: auto;
}

.infyp-compression-card-actions .button,
.infyp-api-usage-card-actions .button {
    margin: 0;
}

.infyp-compression-card .button-success {
    background: var(--infyp-success);
    border-color: var(--infyp-success-hover);
    color: var(--infyp-white);
}

.infyp-compression-card .button-success:hover {
    background: var(--infyp-success-hover);
    border-color: var(--infyp-success-hover-dark);
}

.infyp-score-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0
}

.infyp-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg)
}

.infyp-score-bg {
    fill: none;
    stroke: var(--infyp-border-light);
    stroke-width: 3
}

.infyp-score-progress {
    fill: none;
    stroke: var(--infyp-success-secondary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease
}

.infyp-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center
}

.infyp-score-number {
    display: block;
    font-size: var(--infyp-font-size-xl);
    font-weight: 600;
    color: var(--infyp-text-primary);
    line-height: 1
}

.infyp-score-label {
    display: block;
    font-size: 9px;
    color: var(--infyp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.infyp-log-entry {
    margin-bottom: 6px;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    border-radius: var(--infyp-radius-md);
    border-left: 3px solid transparent;
    transition: all 0.2s ease
}

.infyp-log-entry.success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: var(--infyp-success-secondary);
    color: var(--infyp-success-secondary-text)
}

.infyp-log-entry.error {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--infyp-log-error);
    color: var(--infyp-error-text-dark)
}

.infyp-log-entry.info {
    background: rgba(13, 110, 253, 0.1);
    border-left-color: var(--infyp-info);
    color: var(--infyp-info-text-alt)
}

.infyp-log-entry.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--infyp-log-warning);
    color: var(--infyp-warning-text-dark)
}

@media (max-width:768px) {
    .infyp-dashboard-row-top {
        grid-template-columns: 1fr
    }
}

@media (prefers-contrast:high) {
    .infyp-score-progress {
        stroke: var(--infyp-black)
    }
}

@media (prefers-reduced-motion:reduce) {
    .infyp-score-progress {
        transition: none
    }
}

/* 50/50 Grid Layout for AI Settings */
.infyp-form-grid-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--infyp-spacing-lg);
    margin-bottom: 10px;
}

.infyp-form-grid-50 .infyp-form-row {
    margin: 0;
}

/* Responsive: Stack on mobile */
@media (max-width: 782px) {
    .infyp-form-grid-50 {
        grid-template-columns: 1fr;
    }

    .infyp-dashboard-row-top,
    .infyp-dashboard-row-top:has(.infyp-compression-card),
    .infyp-dashboard-row-top:has(.infyp-field-optimization-card),
    .infyp-dashboard-row-top:has(.infyp-api-usage-card),
    .infyp-dashboard-row-top:has(.infyp-extension-card) {
        grid-template-columns: 1fr;
    }

    .infyp-dashboard-total-info {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .infyp-dashboard-total-content {
        width: 100%;
    }

    .infyp-compression-card-actions,
    .infyp-api-usage-card-actions,
    .infyp-extension-card-actions {
        flex-direction: column;
    }

    .infyp-compression-card-actions .button,
    .infyp-api-usage-card-actions .button,
    .infyp-extension-card-actions .button {
        width: 100%;
    }
}

/* Source: plugin/settings.css */
.wrap h1 {
    margin-bottom: 0.8rem;
}

#infyp-post-type-settings-form p.submit {
    margin-top: 10px
}

.infyp-model-cost-details { margin-top: var(--infyp-spacing-sm); }
.infyp-model-cost-details summary { cursor: pointer; color: var(--infyp-primary); font-size: var(--infyp-font-size-sm); font-weight: 500; }
.infyp-model-cost-table { width: 100%; border-collapse: collapse; margin-top: var(--infyp-spacing-sm); font-size: var(--infyp-font-size-sm); }
.infyp-model-cost-table th, .infyp-model-cost-table td { padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm); text-align: left; border-bottom: 1px solid var(--infyp-border-light); }
.infyp-model-cost-table th { font-weight: 600; color: var(--infyp-text-primary); }
.infyp-model-cost-table .infyp-cost-highlight { font-weight: 600; color: var(--infyp-success-text); }
.infyp-model-cost-details .description { margin-top: var(--infyp-spacing-sm); }

/* Tools Section */
.infyp-tools-section {
    margin-top: var(--infyp-spacing-xl)
}

.infyp-tool-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--infyp-spacing-lg);
    padding: var(--infyp-spacing-lg);
    background: var(--infyp-bg-light);
    border-radius: var(--infyp-radius-lg)
}

.infyp-tool-info {
    flex: 1
}

.infyp-tool-info h4 {
    margin: 0 0 var(--infyp-spacing-xs) 0;
    font-size: var(--infyp-font-size-base);
    font-weight: 600;
    color: var(--infyp-text-primary)
}

.infyp-tool-info .infyp-form-description {
    margin-bottom: var(--infyp-spacing-sm)
}

.infyp-tool-status {
    margin: 0;
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-muted);
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-xs)
}

.infyp-tool-status .dashicons {
    font-size: var(--infyp-font-size-base);
    width: 16px;
    height: 16px
}

.infyp-tool-action {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm);
    flex-shrink: 0
}

.infyp-tool-action .button .dashicons {
    margin-right: var(--infyp-spacing-xs)
}

.infyp-tool-action .spinner {
    float: none;
    margin: 0
}

.infyp-tool-result {
    margin-top: var(--infyp-spacing-md);
    padding: var(--infyp-spacing-md);
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-sm)
}

.infyp-tool-result.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--infyp-success)
}

.infyp-tool-result.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--infyp-danger)
}

.infyp-tool-result .dashicons {
    flex-shrink: 0
}

@media (max-width:782px) {
    .infyp-tool-item {
        flex-direction: column;
        align-items: stretch
    }

    .infyp-tool-action {
        justify-content: flex-start
    }
}

/* Banner Management Section */
.infyp-banner-intro {
    margin-top: 0;
}

.infyp-banner-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--infyp-spacing-xl);
    margin-top: var(--infyp-spacing-xl);
}

.infyp-banner-option {
    padding: var(--infyp-spacing-xl);
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-gray);
    border-radius: var(--infyp-radius-md);
    transition: all 0.3s ease;
}

.infyp-banner-option:hover {
    border-color: var(--infyp-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.infyp-banner-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--infyp-spacing-md);
}

.infyp-banner-option-header .dashicons {
    color: var(--infyp-primary);
}

.infyp-banner-option-header h4 {
    margin: 0;
    font-size: var(--infyp-font-size-lg);
    font-weight: 600;
    color: var(--infyp-text-primary);
}

.infyp-banner-option p.description {
    margin: 0 0 15px 0;
    color: var(--infyp-text-secondary);
    font-size: var(--infyp-font-size-md);
    line-height: 1.6;
}

/* Toggle Switch Styling */
.infyp-toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    flex-shrink: 0;
}

.infyp-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.infyp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--infyp-border-medium);
    transition: 0.4s;
    border-radius: var(--infyp-radius-full);
}

.infyp-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.infyp-toggle-switch input:checked + .infyp-toggle-slider {
    background-color: var(--infyp-primary);
}

.infyp-toggle-switch input:checked + .infyp-toggle-slider::before {
    transform: translateX(28px);
}

.infyp-toggle-switch input:focus + .infyp-toggle-slider {
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
}

/* Toggle with label - inline layout */
.infyp-toggle-with-label {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-md);
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.infyp-toggle-label {
    font-weight: 500;
    color: var(--infyp-text-primary);
}

/* Action Status Messages */
.infyp-action-status {
    display: inline-block;
    margin-left: var(--infyp-spacing-md);
    padding: var(--infyp-spacing-xs) 10px;
    border-radius: var(--infyp-radius-md);
    font-size: var(--infyp-font-size-base);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infyp-action-status.show {
    opacity: 1;
}

.infyp-action-status.success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text);
}

.infyp-action-status.error {
    background: var(--infyp-error-border);
    color: var(--infyp-error-text-dark);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .infyp-banner-management-grid {
        grid-template-columns: 1fr;
    }

    .infyp-banner-option {
        padding: 15px;
    }
}

/* ----------------------------------------------------------------
   Redirect Settings Card (rendered via infyp_after_settings_cards)
   ---------------------------------------------------------------- */
.infyp-redirect-status-msg {
	margin-left: 10px;
}

/* Source: plugin/account-settings.css */
.infyp-account-settings {
    max-width: 1200px
}

.infyp-no-data {
    text-align: center;
    color: var(--infyp-text-slate);
    font-style: italic;
    margin: var(--infyp-spacing-xl) 0
}

.infyp-form-group {
    margin-bottom: 25px
}

.infyp-form-group:last-child {
    margin-bottom: 0
}

.infyp-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: var(--infyp-spacing-md);
    cursor: pointer
}

.infyp-toggle-label input[type="checkbox"] {
    margin: 0;
    margin-top: var(--infyp-spacing-xxs)
}

.infyp-loading {
    opacity: 0.6;
    pointer-events: none
}

.infyp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--infyp-info-light);
    border-radius: 50%;
    border-top-color: transparent;
    animation: infyp-spin 1s linear infinite
}

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

.infyp-success {
    color: var(--infyp-success-hover);
    font-weight: 500
}

.infyp-error {
    color: var(--infyp-error-dark);
    font-weight: 500
}

/* Source: plugin/debug-page.css */
.infyp-debug-tools {
    background: var(--infyp-bg-hover);
    border: 1px solid var(--infyp-border-light);
    padding: 15px;
    margin-bottom: var(--infyp-spacing-xl)
}

.infyp-debug-tools-content {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.infyp-debug-tools .button {
    background: var(--infyp-white);
    border: 1px solid var(--infyp-border-light);
    color: var(--infyp-text-dark);
    font-weight: normal;
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-lg)
}

.infyp-debug-tools .button.button-primary {
    background: var(--infyp-primary);
    border-color: var(--infyp-primary);
    color: var(--infyp-white)
}

.infyp-debug-tools .button .dashicons {
    margin-right: 5px;
    vertical-align: middle
}

.infyp-debug-card {
    margin-bottom: var(--infyp-spacing-xl);
    border: 1px solid var(--infyp-border-light);
    background: var(--infyp-white)
}

.infyp-debug-card .infyp-card-header {
    background: var(--infyp-bg-lighter);
    padding: 15px var(--infyp-spacing-xl);
    border-bottom: 1px solid var(--infyp-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.infyp-debug-card .infyp-card-header h3 {
    margin: 0;
    font-size: var(--infyp-font-size-lg);
    font-weight: 600;
    color: var(--infyp-text-dark)
}

.infyp-debug-card .infyp-card-body {
    padding: var(--infyp-spacing-xl)
}

.infyp-debug-card .infyp-card-body p:first-child {
    margin-top: 0;
    font-weight: bold;
}

.infyp-debug-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--infyp-font-size-sm);
    font-weight: 600;
    padding: var(--infyp-spacing-xs) var(--infyp-spacing-sm);
    border-radius: 3px
}

.infyp-debug-status.success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text)
}

.infyp-debug-status.warning {
    background: var(--infyp-warning-border);
    color: var(--infyp-warning-text-dark)
}

.infyp-debug-status.error {
    background: var(--infyp-error-border);
    color: var(--infyp-error-text-dark)
}

.infyp-debug-status .dashicons {
    font-size: var(--infyp-font-size-sm);
    width: 12px;
    height: 12px
}

.infyp-debug-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.infyp-debug-item {
    border: 1px solid var(--infyp-border-light);
    padding: 15px;
    border-radius: var(--infyp-radius-md);
}

.infyp-debug-item-full {
    grid-column: 1 / -1;
}

.infyp-debug-label {
    font-weight: 600;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-dark);
    font-size: var(--infyp-font-size-base)
}

.infyp-debug-value {
    color: var(--infyp-text-medium);
    line-height: 1.4;
    font-size: var(--infyp-font-size-base)
}

.infyp-debug-subtext {
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-lighter);
    margin-top: var(--infyp-spacing-xs)
}

.infyp-debug-api-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--infyp-spacing-md) 0;
    border-bottom: 1px solid var(--infyp-border-lightest)
}

.infyp-debug-api-provider:last-child {
    border-bottom: none
}

.infyp-debug-provider-info {
    display: flex;
    align-items: center;
    gap: var(--infyp-spacing-md);
    flex: 1
}

.infyp-debug-provider-name {
    font-weight: 600;
    color: var(--infyp-text-dark);
    min-width: 80px;
    font-size: var(--infyp-font-size-md)
}

.infyp-debug-table {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--infyp-bg-hover);
    flex-wrap: wrap
}

.infyp-debug-table:last-child {
    border-bottom: none
}

.infyp-debug-table-name {
    font-weight: 600;
    color: var(--infyp-text-dark);
    flex: 1;
    min-width: 120px
}

.infyp-debug-table-stats {
    font-size: var(--infyp-font-size-sm);
    color: var(--infyp-text-medium)
}

.infyp-test-api {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 11px;
    background: var(--infyp-bg-gray);
    border: 1px solid var(--infyp-border-light);
    color: var(--infyp-text-dark)
}

.infyp-debug-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.infyp-debug-stat {
    background: var(--infyp-bg-gray);
    padding: 10px var(--infyp-spacing-md);
    border: 1px solid var(--infyp-border-light);
    text-align: center
}

.infyp-debug-stat strong {
    display: block;
    font-size: var(--infyp-font-size-lg);
    font-weight: 700;
    color: var(--infyp-text-dark)
}

.infyp-debug-errors {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--infyp-border-light);
    padding: 10px;
    background: var(--infyp-white)
}

.infyp-debug-error {
    padding: 6px 0;
    border-bottom: 1px solid var(--infyp-bg-hover);
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 10px;
    align-items: center;
    font-size: var(--infyp-font-size-sm)
}

.infyp-debug-error:last-child {
    border-bottom: none
}

.infyp-debug-error-provider {
    font-weight: 600;
    color: var(--infyp-text-medium)
}

.infyp-debug-error-message {
    color: var(--infyp-error)
}

.infyp-debug-error-time {
    color: var(--infyp-text-lighter);
    text-align: right
}

.infyp-debug-cache-group {
    display: inline-block;
    padding: var(--infyp-spacing-xxs) 6px;
    margin: var(--infyp-spacing-xxs);
    background: var(--infyp-bg-gray);
    border: 1px solid var(--infyp-border-light);
    color: var(--infyp-text-dark);
    font-size: 11px;
    font-weight: 600
}

.infyp-debug-cache-breakdown {
    margin-top: 6px
}

.infyp-debug-cache-usage {
    display: inline-block;
    padding: var(--infyp-spacing-xxs) 5px;
    margin: 1px;
    background: var(--infyp-white);
    border: 1px solid var(--infyp-border-lightest);
    font-size: 11px;
    color: var(--infyp-text-medium)
}

.infyp-debug-logs {
    grid-column: 1 / -1
}

.infyp-debug-log-summary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px
}

.infyp-debug-log-stat {
    background: var(--infyp-bg-gray);
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    border: 1px solid var(--infyp-border-light);
    text-align: center
}

.infyp-debug-log-stat.error {
    border-color: var(--infyp-error);
    background: var(--infyp-error-border)
}

.infyp-debug-log-stat.warning {
    border-color: var(--infyp-text-medium);
    background: var(--infyp-bg-secondary)
}

.infyp-debug-log-stat.info {
    border-color: var(--infyp-text-medium);
    background: var(--infyp-bg-secondary)
}

.infyp-debug-log-stat strong {
    display: block;
    font-size: var(--infyp-font-size-lg);
    font-weight: 700;
    color: var(--infyp-text-dark);
    margin-bottom: var(--infyp-spacing-xxs)
}

.infyp-debug-log-entries {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--infyp-border-light);
    padding: 10px;
    background: var(--infyp-white);
    font-family: 'Courier New', monospace;
    font-size: var(--infyp-font-size-sm);
    line-height: 1.3
}

.infyp-debug-log-entry {
    display: flex;
    gap: 10px;
    padding: var(--infyp-spacing-xs) 0;
    border-bottom: 1px solid var(--infyp-bg-secondary);
    align-items: flex-start
}

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

.infyp-debug-log-time {
    color: var(--infyp-text-lighter);
    flex-shrink: 0;
    width: 120px;
    font-size: 11px
}

.infyp-debug-log-level {
    flex-shrink: 0;
    width: 70px;
    font-weight: 600;
    font-size: 11px
}

.infyp-debug-log-level.error {
    color: var(--infyp-error)
}

.infyp-debug-log-level.warning {
    color: var(--infyp-text-medium)
}

.infyp-debug-log-level.info {
    color: var(--infyp-text-medium)
}

.infyp-debug-log-level.debug {
    color: var(--infyp-text-lighter)
}

.infyp-debug-log-message {
    flex: 1;
    color: var(--infyp-text-dark);
    word-break: break-word
}

.infyp-debug-log-more {
    text-align: center;
    margin-top: 10px
}

.infyp-debug-suggestion {
    padding: var(--infyp-spacing-md);
    margin-bottom: var(--infyp-spacing-sm);
    border: 1px solid
}

.infyp-debug-suggestion.warning {
    background: var(--infyp-warning-border);
    border-color: var(--infyp-text-medium)
}

.infyp-debug-suggestion.info {
    background: var(--infyp-bg-light);
    border-color: var(--infyp-text-medium)
}

.infyp-debug-suggestion.error {
    background: var(--infyp-error-border);
    border-color: var(--infyp-error)
}

.infyp-debug-suggestion strong {
    display: block;
    margin-bottom: var(--infyp-spacing-xs);
    color: var(--infyp-text-dark)
}

.infyp-debug-suggestion p {
    margin: 0 0 var(--infyp-spacing-sm) 0;
    color: var(--infyp-text-medium);
    font-size: var(--infyp-font-size-base)
}

.infyp-suggestion-action {
    background: var(--infyp-bg-gray);
    color: var(--infyp-text-dark);
    border: 1px solid var(--infyp-border-light);
    padding: var(--infyp-spacing-xs) 10px;
    font-size: 11px;
    font-weight: 600
}

.infyp-debug-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px
}

.infyp-debug-tool {
    border: 1px solid var(--infyp-border-light);
    padding: 15px;
    background: var(--infyp-bg-lighter)
}

.infyp-debug-tool h4 {
    margin-top: 0;
    margin-bottom: var(--infyp-spacing-sm);
    color: var(--infyp-text-dark);
    font-size: var(--infyp-font-size-md);
    font-weight: 600
}

.infyp-debug-tool p {
    margin-bottom: var(--infyp-spacing-md);
    color: var(--infyp-text-medium);
    font-size: var(--infyp-font-size-base);
    line-height: 1.4
}

.infyp-debug-tool .button {
    background: var(--infyp-bg-gray);
    color: var(--infyp-text-dark);
    border: 1px solid var(--infyp-border-light);
    padding: 6px var(--infyp-spacing-md);
    font-weight: normal;
    width: 100%
}

.infyp-debug-tool .button.button-primary {
    background: var(--infyp-primary);
    border-color: var(--infyp-primary);
    color: var(--infyp-white)
}

.infyp-debug-loading {
    opacity: 0.6;
    pointer-events: none
}

.infyp-debug-message {
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: var(--infyp-font-size-base)
}

.infyp-debug-message.success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text);
    border: 1px solid var(--infyp-success)
}

.infyp-debug-message.error {
    background: var(--infyp-error-border);
    color: var(--infyp-error-text-dark);
    border: 1px solid var(--infyp-error)
}

@media (max-width:1200px) {
    .infyp-debug-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .infyp-debug-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
    }
}

@media (max-width:768px) {
    .infyp-debug-grid {
        grid-template-columns: 1fr
    }

    .infyp-debug-tools-grid {
        grid-template-columns: 1fr
    }

    .infyp-debug-tools-content {
        flex-direction: column;
        gap: var(--infyp-spacing-sm)
    }

    .infyp-debug-tools .button {
        width: 100%;
        justify-content: center
    }

    .infyp-debug-stats {
        flex-direction: column
    }

    .infyp-debug-log-summary {
        flex-direction: column
    }

    .infyp-debug-log-entry {
        flex-direction: column;
        gap: var(--infyp-spacing-xxs)
    }

    .infyp-debug-log-time,
    .infyp-debug-log-level {
        width: auto
    }

    .infyp-debug-api-provider {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--infyp-spacing-xs)
    }

    .infyp-test-api {
        margin-left: 0;
        align-self: stretch
    }
}

.infyp-support-content {
    text-align: center
}

.infyp-support-content>p {
    font-size: var(--infyp-font-size-md);
    color: var(--infyp-text-medium);
    margin-bottom: 25px;
    line-height: 1.5
}

.infyp-support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--infyp-spacing-xl);
    margin-bottom: 25px
}

.infyp-support-option {
    background: var(--infyp-bg-lighter);
    border: 1px solid var(--infyp-border-light);
    padding: var(--infyp-spacing-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center
}

.infyp-support-icon {
    background: var(--infyp-primary);
    color: var(--infyp-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px
}

.infyp-support-icon .dashicons {
    font-size: var(--infyp-font-size-3xl);
    width: 24px;
    height: 24px
}

.infyp-support-details h4 {
    margin: 0 0 var(--infyp-spacing-sm) 0;
    color: var(--infyp-text-dark);
    font-size: var(--infyp-font-size-lg);
    font-weight: 600
}

.infyp-support-details p {
    margin: 0 0 15px 0;
    color: var(--infyp-text-medium);
    font-size: var(--infyp-font-size-base);
    line-height: 1.4
}

.infyp-support-details .button {
    background: var(--infyp-bg-gray);
    border: 1px solid var(--infyp-border-light);
    color: var(--infyp-text-dark);
    padding: var(--infyp-spacing-sm) var(--infyp-spacing-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    transition: none
}

.infyp-support-details .button.button-primary {
    background: var(--infyp-primary);
    border-color: var(--infyp-primary);
    color: var(--infyp-white)
}

.infyp-support-details .button:hover {
    background: var(--infyp-bg-light);
    border-color: var(--infyp-border-medium)
}

.infyp-support-details .button.button-primary:hover {
    background: var(--infyp-info-darker);
    border-color: var(--infyp-info-darker)
}

.infyp-support-details .button .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
    vertical-align: middle
}

.infyp-support-footer {
    background: var(--infyp-warning-border);
    border: 1px solid var(--infyp-warning-cream);
    padding: 15px;
    border-radius: 3px
}

.infyp-support-note {
    margin: 0;
    color: var(--infyp-warning-text-dark);
    font-size: var(--infyp-font-size-base);
    display: flex;
    align-items: flex-start;
    gap: var(--infyp-spacing-sm);
    line-height: 1.4
}

.infyp-support-note .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0
}

/* Page Builder Activity Styles */
.infyp-pagebuilder-stats-table {
    margin-bottom: var(--infyp-spacing-xl);
}

.infyp-pagebuilder-stats-table table {
    width: 100%;
}

.infyp-stat-badge {
    display: inline-block;
    padding: var(--infyp-spacing-xs) 10px;
    border-radius: 3px;
    font-size: var(--infyp-font-size-base);
    font-weight: 600;
    background: var(--infyp-bg-hover);
    color: var(--infyp-text-darker);
}

.infyp-stat-badge.success {
    background: var(--infyp-success-secondary-bg);
    color: var(--infyp-success-secondary-text);
}

.infyp-stat-badge.info {
    background: var(--infyp-info-bg-lighter);
    color: var(--infyp-info-text-alt);
}

.infyp-stat-badge.error {
    background: var(--infyp-error-border);
    color: var(--infyp-error-text-darker);
}

.infyp-no-log {
    color: var(--infyp-text-lighter);
    font-style: italic;
}

.infyp-pagebuilder-log-tabs {
    display: flex;
    gap: var(--infyp-spacing-sm);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--infyp-border-light);
    padding-bottom: 10px;
}

.infyp-log-tab {
    padding: 6px 14px;
    font-size: var(--infyp-font-size-base);
    border-radius: 3px 3px 0 0;
    background: var(--infyp-bg-hover);
    border: 1px solid var(--infyp-border-light);
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s;
}

.infyp-log-tab:hover {
    background: var(--infyp-gray-200);
}

.infyp-log-tab.active {
    background: var(--infyp-white);
    color: var(--infyp-primary);
    font-weight: 600;
    border-color: var(--infyp-primary);
    border-bottom: 2px solid var(--infyp-white);
    position: relative;
    bottom: -1px;
}

.infyp-pagebuilder-log-content {
    background: var(--infyp-bg-lighter);
    padding: 15px;
    border: 1px solid var(--infyp-border-light);
    border-radius: 0 0 3px 3px;
    min-height: 200px;
}

.infyp-no-data {
    text-align: center;
    padding: 40px var(--infyp-spacing-xl);
    color: var(--infyp-text-medium);
}

.infyp-no-data p {
    margin: 0;
    font-size: var(--infyp-font-size-md);
}

.infyp-no-logs {
    text-align: center;
    color: var(--infyp-text-lighter);
    font-style: italic;
    padding: var(--infyp-spacing-xl);
}

/* Debug Log Tabs */
.infyp-debug-logs-full-width {
    grid-column: 1 / -1;
}

.infyp-debug-log-tabs-container {
    width: 100%;
}

.infyp-debug-log-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--infyp-border-light);
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.infyp-debug-log-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.infyp-debug-log-download-buttons {
    display: flex;
    gap: var(--infyp-spacing-sm);
    padding-bottom: var(--infyp-spacing-sm);
    flex-wrap: wrap;
}

.infyp-debug-log-download-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: var(--infyp-spacing-xs);
    font-size: var(--infyp-font-size-sm);
    padding: var(--infyp-spacing-xs) 10px;
    height: auto;
    line-height: 1.4;
}

.infyp-debug-log-download-buttons .button .dashicons {
    font-size: var(--infyp-font-size-md);
    width: 14px;
    height: 14px;
}

.infyp-debug-log-tab {
    padding: 10px 18px;
    font-size: var(--infyp-font-size-base);
    font-weight: 500;
    background: var(--infyp-bg-light);
    border: 1px solid var(--infyp-border-light);
    border-bottom: none;
    border-radius: var(--infyp-radius-md) var(--infyp-radius-md) 0 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--infyp-text-medium);
    margin-right: -1px;
    position: relative;
    transition: background 0.15s, color 0.15s;
}

.infyp-debug-log-tab:hover {
    background: var(--infyp-bg-light);
    color: var(--infyp-text-dark);
}

.infyp-debug-log-tab.active {
    background: var(--infyp-white);
    color: var(--infyp-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--infyp-white);
    margin-bottom: -2px;
    z-index: 1;
}

.infyp-debug-log-tab .dashicons {
    font-size: var(--infyp-font-size-lg);
    width: 16px;
    height: 16px;
}

.infyp-log-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: var(--infyp-text-medium);
    color: var(--infyp-white);
}

.infyp-log-tab-count.error {
    background: var(--infyp-error);
}

.infyp-log-tab-count.warning {
    background: var(--infyp-warning);
    color: var(--infyp-text-dark);
}

.infyp-debug-log-tab-content {
    display: none;
    padding: 15px 0 0 0;
}

.infyp-debug-log-tab-content.active {
    display: block;
}

.infyp-debug-no-logs {
    text-align: center;
    padding: 40px var(--infyp-spacing-xl);
    background: var(--infyp-bg-lighter);
    border: 1px solid var(--infyp-border-light);
    border-radius: var(--infyp-radius-md);
}

.infyp-debug-no-logs .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--infyp-success);
    margin-bottom: 10px;
}

.infyp-debug-no-logs p {
    margin: 0;
    color: var(--infyp-text-medium);
    font-size: var(--infyp-font-size-md);
}

/* Error log entries get more prominence - use prefixed classes to avoid WP conflicts */
.infyp-debug-log-entry.infyp-log-level-error,
.infyp-debug-log-entry.infyp-log-level-critical {
    background: var(--infyp-error-bg-lightest);
    border-left: 3px solid var(--infyp-error);
    padding-left: 10px;
    margin-left: -10px;
}

.infyp-debug-log-entry.infyp-log-level-warning {
    background: var(--infyp-warning-bg-lightest);
    border-left: 3px solid var(--infyp-warning-alt);
    padding-left: 10px;
    margin-left: -10px;
}

.infyp-debug-log-entry.infyp-log-level-info {
    background: transparent;
}

.infyp-debug-log-entry.infyp-log-level-debug {
    background: var(--infyp-bg-lighter);
    opacity: 0.8;
}

.infyp-view-builder-log {
    font-size: var(--infyp-font-size-sm);
}

@media print {

    .infyp-debug-tools,
    .infyp-debug-tool,
    .infyp-test-api,
    .infyp-suggestion-action,
    .infyp-support-section {
        display: none !important
    }

    .infyp-debug-card {
        break-inside: avoid;
        border: 1px solid var(--infyp-black)
    }

    .infyp-debug-log-entries {
        max-height: none;
        overflow: visible
    }
}

/* Source: plugin/search-console.css */
/**
 * Search Console Dashboard Styles
 *
 * @package IPAIS
 * @since   1.1.0
 */

.wrap h1 {
	margin-bottom: 0.8rem;
}

/* =========================================================================
   Connection Card (State 1)
   ========================================================================= */

.infyp-gsc-connect-actions {
	margin: var(--infyp-spacing-lg) 0 0;
}

.infyp-gsc-connect-actions .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	vertical-align: middle;
	margin-right: 2px;
}

/* =========================================================================
   Property Selection (State 2)
   ========================================================================= */

.infyp-gsc-property-card {
	max-width: 560px;
	margin: 20px auto;
}

.infyp-gsc-property-card .infyp-card-header h3 {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-xs);
	color: var(--infyp-success);
}

.infyp-gsc-property-list {
	margin: var(--infyp-spacing-md) 0;
}

.infyp-gsc-loading-properties {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-sm);
	padding: var(--infyp-spacing-md);
	color: var(--infyp-text-secondary);
}

.infyp-gsc-property-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
	border: 1px solid var(--infyp-border-light);
	border-radius: var(--infyp-radius-md);
	margin-bottom: var(--infyp-spacing-xs);
	transition: border-color 0.2s ease;
}

.infyp-gsc-property-item:hover {
	border-color: var(--infyp-primary);
}

.infyp-gsc-property-url {
	font-weight: 500;
	word-break: break-all;
}

.infyp-gsc-property-type {
	font-size: var(--infyp-font-size-xs);
	color: var(--infyp-text-tertiary);
	margin-left: var(--infyp-spacing-xs);
}

.infyp-gsc-property-actions {
	margin-top: var(--infyp-spacing-lg);
	text-align: right;
}

/* =========================================================================
   Dashboard (State 3)
   ========================================================================= */

/* Connection Bar */
.infyp-gsc-connection-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
	background: var(--infyp-bg-light);
	border: 1px solid var(--infyp-border-light);
	border-radius: var(--infyp-radius-md);
	margin-bottom: var(--infyp-spacing-md);
	flex-wrap: wrap;
	gap: var(--infyp-spacing-sm);
}

.infyp-gsc-connection-info {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-sm);
	font-size: var(--infyp-font-size-sm);
	flex-wrap: wrap;
}

.infyp-gsc-connected-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--infyp-success);
	flex-shrink: 0;
}

.infyp-gsc-separator {
	color: var(--infyp-border-light);
}

.infyp-gsc-last-sync {
	color: var(--infyp-text-tertiary);
}

.infyp-gsc-connection-actions {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-sm);
}

.infyp-gsc-connection-actions .button-small .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 2px;
}

/* Date Range Selector */
.infyp-gsc-date-range {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--infyp-spacing-sm);
	margin-bottom: var(--infyp-spacing-md);
	flex-wrap: wrap;
}

.infyp-gsc-range-buttons {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.infyp-gsc-per-page-wrap {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-xs);
	font-size: var(--infyp-font-size-sm);
	color: var(--infyp-text-secondary);
}

.infyp-gsc-per-page-select {
	padding: 2px 6px;
	font-size: var(--infyp-font-size-sm);
	border: 1px solid var(--infyp-border-light);
	border-radius: var(--infyp-radius-md);
	background: #fff;
}

.infyp-gsc-range-btn.active {
	background: var(--infyp-primary);
	color: #fff;
	border-color: var(--infyp-primary);
}

/* Metric Cards */
.infyp-gsc-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--infyp-spacing-md);
	margin-bottom: var(--infyp-spacing-lg);
}

.infyp-gsc-metric-card.infyp-card {
	margin-bottom: 0;
	position: relative;
	cursor: pointer;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.infyp-gsc-metric-card.infyp-card:not(.active) {
	opacity: 0.45;
}

.infyp-gsc-metric-card.infyp-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Checkmark icon */
.infyp-gsc-metric-check {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	color: var(--infyp-success);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.infyp-gsc-metric-card.active .infyp-gsc-metric-check {
	opacity: 1;
}

.infyp-gsc-metric-card .infyp-card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--infyp-spacing-lg) var(--infyp-spacing-md);
}

.infyp-gsc-metric-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: block;
	margin-bottom: var(--infyp-spacing-sm);
}

.infyp-gsc-metric-value {
	font-size: var(--infyp-font-size-3xl);
	font-weight: 700;
	color: var(--infyp-text-primary);
	line-height: 1.2;
}

.infyp-gsc-metric-label {
	font-size: var(--infyp-font-size-sm);
	color: var(--infyp-text-secondary);
	margin-top: var(--infyp-spacing-xxs);
}

.infyp-gsc-metric-delta {
	font-size: var(--infyp-font-size-sm);
	font-weight: 500;
	margin-top: var(--infyp-spacing-xs);
}

.infyp-gsc-metric-delta.positive {
	color: var(--infyp-success);
}

.infyp-gsc-metric-delta.negative {
	color: var(--infyp-error);
}

.infyp-gsc-metric-delta.neutral {
	color: var(--infyp-text-tertiary);
}

/* Performance Timeline Chart */
.infyp-gsc-chart-card {
	margin-bottom: var(--infyp-spacing-lg);
}

.infyp-gsc-chart-card .infyp-card-body {
	position: relative;
	height: 320px;
}

/* Combined Queries & Pages Card */
.infyp-gsc-combined-card {
	margin-bottom: var(--infyp-spacing-lg);
}

/* Table card body: trim bottom padding so pagination handles it */
.infyp-gsc-table-card > .infyp-card-body {
	padding-bottom: 0;
}

.infyp-gsc-table-card .infyp-gsc-pagination {
	padding: var(--infyp-spacing-sm) 0 var(--infyp-spacing-lg);
	min-height: 0;
}

.infyp-gsc-table-card .infyp-gsc-pagination:empty {
	padding: 0 0 var(--infyp-spacing-lg);
}

/* Table border radius to match cards */
.infyp-gsc-table-card .widefat {
	border-radius: var(--infyp-radius-lg, 8px);
	overflow: hidden;
}

/* Data Tables */
.infyp-gsc-tables-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--infyp-spacing-lg);
	margin-bottom: var(--infyp-spacing-lg);
}

.infyp-gsc-tables-grid > .infyp-card {
	margin-bottom: 0;
}

.infyp-gsc-table-card .infyp-card-header h3 {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-xs);
	font-size: var(--infyp-font-size-md);
}

.infyp-gsc-table-card .infyp-card-header h3 .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
}

.infyp-gsc-num,
th.infyp-gsc-num {
	text-align: right;
	white-space: nowrap;
}

.infyp-gsc-loading-row td {
	text-align: center;
	color: var(--infyp-text-tertiary);
	padding: var(--infyp-spacing-lg) !important;
}

.infyp-gsc-page-url {
	max-width: 300px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
}

/* Optimization Impact */
.infyp-gsc-impact-card .infyp-card-header h3 {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-xs);
}

.infyp-gsc-impact-intro {
	color: var(--infyp-text-secondary);
	margin-bottom: var(--infyp-spacing-md);
}

.infyp-gsc-impact-metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--infyp-spacing-md);
	margin-bottom: var(--infyp-spacing-lg);
}

.infyp-gsc-impact-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--infyp-spacing-lg) var(--infyp-spacing-md);
	border-radius: var(--infyp-radius-md);
	border: 1px solid var(--infyp-border-light);
	background: var(--infyp-white, #fff);
	transition: all 0.2s ease;
	gap: var(--infyp-spacing-sm);
}

.infyp-gsc-impact-item:hover {
	border-color: var(--infyp-primary);
	box-shadow: 0 2px 6px rgba(34, 113, 177, 0.08);
}

.infyp-gsc-impact-item .infyp-gsc-impact-label {
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: var(--infyp-text-primary);
	padding-bottom: var(--infyp-spacing-sm);
	border-bottom: 1px solid var(--infyp-border-light);
	width: 100%;
}

.infyp-gsc-impact-item .infyp-gsc-impact-value {
	font-size: var(--infyp-font-size-lg);
	font-weight: 600;
	color: var(--infyp-text-primary);
}

.infyp-gsc-impact-table-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--infyp-spacing-md);
}

.infyp-gsc-impact-table-header h4 {
	margin: 0;
}

#infyp-gsc-impact-table-wrap .infyp-gsc-pagination {
	padding: var(--infyp-spacing-sm) 0 0;
}

/* Sitemap Status */
.infyp-gsc-sitemap-card .infyp-card-header h3 {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-xs);
}

.infyp-gsc-sitemap-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--infyp-spacing-md);
}

.infyp-gsc-sitemap-stat {
	padding: var(--infyp-spacing-sm);
	background: var(--infyp-bg-light);
	border-radius: var(--infyp-radius-md);
}

.infyp-gsc-sitemap-stat-label {
	font-size: var(--infyp-font-size-xs);
	color: var(--infyp-text-tertiary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.infyp-gsc-sitemap-stat-value {
	font-size: var(--infyp-font-size-lg);
	font-weight: 600;
	color: var(--infyp-text-primary);
}

/* =========================================================================
   Table Search, Sort & Drill-Down
   ========================================================================= */

/* Card header layout for search */
.infyp-gsc-table-card > .infyp-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--infyp-spacing-sm);
	flex-wrap: wrap;
}

/* Search input */
.infyp-gsc-table-search {
	flex-shrink: 0;
}

.infyp-gsc-search-input {
	width: 180px;
	padding: 4px 8px;
	font-size: var(--infyp-font-size-sm);
	border: 1px solid var(--infyp-border-light);
	border-radius: var(--infyp-radius-md);
	background: var(--infyp-bg-light);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.infyp-gsc-search-input:focus {
	border-color: var(--infyp-primary);
	box-shadow: 0 0 0 1px var(--infyp-primary);
	outline: none;
	background: #fff;
}

/* Sortable headers */
.infyp-gsc-sortable {
	cursor: pointer;
	-webkit-user-select: none;
	        user-select: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

th.infyp-gsc-num.infyp-gsc-sortable {
	direction: rtl;
}

th.infyp-gsc-num.infyp-gsc-sortable .infyp-gsc-sort-icon {
	direction: ltr;
}

.infyp-gsc-sortable:hover {
	background: var(--infyp-bg-light);
}

.infyp-gsc-sort-icon {
	display: inline-block;
	width: 12px;
	font-size: 10px;
	vertical-align: middle;
	opacity: 0.3;
}

.infyp-gsc-sortable.asc .infyp-gsc-sort-icon,
.infyp-gsc-sortable.desc .infyp-gsc-sort-icon {
	opacity: 1;
}

.infyp-gsc-sortable.asc .infyp-gsc-sort-icon::after {
	content: '\25B2';
}

.infyp-gsc-sortable.desc .infyp-gsc-sort-icon::after {
	content: '\25BC';
}

/* Clickable drill-down links in combined table */
.infyp-gsc-drill-link {
	color: var(--infyp-primary);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.infyp-gsc-drill-link:hover {
	color: var(--infyp-primary-hover, #2c46ba);
	text-decoration: underline;
}

/* Drill-down panel */
.infyp-gsc-drill-down {
	margin-top: 0;
}

.infyp-gsc-drill-header {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-sm);
	margin-bottom: var(--infyp-spacing-sm);
	padding-bottom: var(--infyp-spacing-sm);
	border-bottom: 1px solid var(--infyp-border-light);
}

.infyp-gsc-drill-back {
	flex-shrink: 0;
}

.infyp-gsc-drill-title {
	font-weight: 600;
	font-size: var(--infyp-font-size-sm);
	color: var(--infyp-text-primary);
	word-break: break-all;
}

/* Pagination controls */
.infyp-gsc-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: var(--infyp-font-size-xs);
	color: var(--infyp-text-tertiary);
	padding: var(--infyp-spacing-xs) 0;
	min-height: 28px;
}

.infyp-gsc-pagination-btns {
	display: flex;
	gap: 4px;
}

.infyp-gsc-page-btn {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: var(--infyp-font-size-xs);
	line-height: 1.6;
	border: 1px solid var(--infyp-border-light);
	border-radius: var(--infyp-radius-md);
	background: #fff;
	color: var(--infyp-text-secondary);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.infyp-gsc-page-btn:hover:not(:disabled) {
	border-color: var(--infyp-primary);
	color: var(--infyp-primary);
}

.infyp-gsc-page-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

/* =========================================================================
   Dev / Mock Connection
   ========================================================================= */

.infyp-gsc-mock-banner {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-left: 4px solid #ffc107;
	padding: var(--infyp-spacing-sm) var(--infyp-spacing-md);
	margin-bottom: var(--infyp-spacing-md);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-radius: var(--infyp-radius-md);
	flex-wrap: wrap;
	gap: var(--infyp-spacing-sm);
}

.infyp-gsc-mock-banner-info {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-xs);
}

.infyp-gsc-mock-banner-info .dashicons {
	color: #856404;
}

.infyp-gsc-mock-banner-info span:last-child {
	color: #856404;
	font-weight: 600;
	font-size: var(--infyp-font-size-sm);
}

.infyp-gsc-mock-banner .button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-color: #856404;
	color: #856404;
}

.infyp-gsc-mock-banner .button .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
}

.infyp-gsc-dev-connect {
	margin-top: var(--infyp-spacing-lg);
	padding-top: var(--infyp-spacing-md);
	border-top: 1px dashed var(--infyp-border-light);
}

.infyp-gsc-dev-connect-inner {
	display: flex;
	align-items: center;
	gap: var(--infyp-spacing-sm);
	flex-wrap: wrap;
}

.infyp-gsc-dev-connect .button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border-color: #ffc107;
	color: #856404;
	background: #fff3cd;
}

.infyp-gsc-dev-connect .button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
}

.infyp-gsc-dev-connect .description {
	color: #856404;
	font-size: var(--infyp-font-size-sm);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 782px) {
	.infyp-gsc-metrics-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.infyp-gsc-tables-grid {
		grid-template-columns: 1fr;
	}

	.infyp-gsc-impact-metrics {
		grid-template-columns: repeat(2, 1fr);
	}

	.infyp-gsc-connection-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.infyp-gsc-table-card > .infyp-card-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.infyp-gsc-search-input {
		width: 100%;
	}
}


/* Source: plugin/redirects.css */
/**
 * Redirects Monitor Page Styles
 *
 * Styles for the redirect list table, summary cards, status badges,
 * and page-builder result indicators.
 *
 * @package IPAIS
 * @since   1.1.0
 */

/* ================================================================
   Column widths — percentage-based for consistent layout.

   Column order:
     cb | image | old_url | new_url | status_code | hits |
     last_hit | created | source | page_builders | status

   Desktop (11 columns = 100%):
     3 + 4 + 21 + 21 + 7 + 5 + 8 + 7 + 7 + 10 + 7 = 100%

   Tablet  (9 columns, hide last_hit + page_builders = 100%):
     3 + 5 + 26 + 26 + 7 + 6 + 9 + 8 + 10 = 100%

   Mobile  (5 columns, also hide status_code + hits + created + source = 100%):
     5 + 7 + 36 + 36 + 16 = 100%
   ================================================================ */

/* ---- Desktop (default) ---------------------------------------- */
.column-cb {
	width: 3%;
}

.column-image_id {
	width: 4%;
	padding-right: 0 !important;
}

.column-old_url {
	width: 21%;
}

.column-new_url {
	width: 21%;
}

.column-status_code {
	width: 7%;
}

.column-hit_count {
	width: 5%;
}

.column-last_hit_at {
	width: 8%;
}

.column-created_at {
	width: 7%;
}

.column-source {
	width: 7%;
}

.column-pagebuilder_results {
	width: 10%;
}

.column-status {
	width: 7%;
}

/* ----------------------------------------------------------------
   Redirect thumbnail
   ---------------------------------------------------------------- */
.infyp-redirect-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
}

/* ----------------------------------------------------------------
   URL display
   ---------------------------------------------------------------- */
.infyp-redirect-url {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: help;
}

/* ----------------------------------------------------------------
   Page builder result badges
   ---------------------------------------------------------------- */
.infyp-pb-results {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
}

.infyp-pb-result {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	white-space: nowrap;
}

.infyp-pb-result .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.infyp-pb-icon-warning {
	color: #dba617;
}

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

.infyp-pb-icon-none {
	color: #999;
}

/* ----------------------------------------------------------------
   Status badges (extend framework badges)
   ---------------------------------------------------------------- */
.infyp-badge-muted {
	background: #f0f0f1;
	color: #50575e;
}

.infyp-badge-info {
	background: #e7f0f9;
	color: #2271b1;
}

/* ----------------------------------------------------------------
   Summary cards — reuse API Usage layout (.infyp-api-usage-summary)
   so no new grid needed; just minor tweaks.
   ---------------------------------------------------------------- */

/* ---- Tablet (<=1024px) ---------------------------------------- */
@media screen and (max-width: 1024px) {
	.column-last_hit_at,
	.column-pagebuilder_results {
		display: none;
	}

	.column-image_id {
		width: 5%;
	}

	.column-old_url {
		width: 26%;
	}

	.column-new_url {
		width: 26%;
	}

	.column-status_code {
		width: 7%;
	}

	.column-hit_count {
		width: 6%;
	}

	.column-created_at {
		width: 9%;
	}

	.column-source {
		width: 8%;
	}

	.column-status {
		width: 10%;
	}
}

/* ---- Mobile (<=782px) ----------------------------------------- */
@media screen and (max-width: 782px) {
	.column-status_code,
	.column-hit_count,
	.column-created_at,
	.column-source {
		display: none;
	}

	.column-cb {
		width: 5%;
	}

	.column-image_id {
		width: 7%;
	}

	.column-old_url {
		width: 36%;
	}

	.column-new_url {
		width: 36%;
	}

	.column-status {
		width: 16%;
	}
}


/* Source: plugin/setup-wizard.css */
/**
 * AI Image SEO Setup Wizard Styles
 */

/* ==========================================================================
   V2 Design Tokens (self-contained for wizard)
   ========================================================================== */
:root {
    /* Backgrounds */
    --wz-bg: #ffffff;
    --wz-bg-surface: #fafafa;
    --wz-bg-elevated: #f5f5f5;

    /* Text */
    --wz-text: #111111;
    --wz-text-secondary: #666666;
    --wz-text-tertiary: #888888;
    --wz-text-inverse: #ffffff;

    /* Borders */
    --wz-border: #eaeaea;
    --wz-border-medium: #d0d0d0;

    /* Accent */
    --wz-accent: #000000;
    --wz-accent-hover: #333333;
    --wz-accent-fg: #ffffff;

    /* Status */
    --wz-success: #059669;
    --wz-success-bg: rgba(5, 150, 105, 0.05);
    --wz-success-border: rgba(5, 150, 105, 0.2);
    --wz-warning: #d97706;
    --wz-warning-bg: rgba(217, 119, 6, 0.05);
    --wz-danger: #dc2626;
    --wz-danger-bg: rgba(220, 38, 38, 0.05);
    --wz-info: #6366f1;
    --wz-wp-blue: #2563eb;
    --wz-wp-blue-bg: rgba(37, 99, 235, 0.05);

    /* Spacing */
    --wz-space-1: 4px;
    --wz-space-2: 8px;
    --wz-space-3: 12px;
    --wz-space-4: 16px;
    --wz-space-5: 20px;
    --wz-space-6: 24px;
    --wz-space-8: 32px;
    --wz-space-10: 40px;
    --wz-space-12: 48px;

    /* Typography */
    --wz-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wz-font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, monospace;
    --wz-text-xs: 0.75rem;
    --wz-text-sm: 0.875rem;
    --wz-text-base: 1rem;
    --wz-text-lg: 1.125rem;
    --wz-text-xl: 1.25rem;
    --wz-text-2xl: 1.5rem;
    --wz-text-3xl: 2rem;

    /* Radius */
    --wz-radius-sm: 4px;
    --wz-radius-md: 8px;
    --wz-radius-lg: 12px;
    --wz-radius-xl: 16px;
    --wz-radius-full: 9999px;

    /* Shadows */
    --wz-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --wz-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --wz-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

    /* Transitions */
    --wz-transition-fast: 0.15s ease;
    --wz-transition-base: 0.2s ease;
    --wz-transition-slow: 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --wz-bg: #0a0a0a;
    --wz-bg-surface: #0f0f0f;
    --wz-bg-elevated: #1a1a1a;

    --wz-text: #ededed;
    --wz-text-secondary: #a0a0a0;
    --wz-text-tertiary: #707070;
    --wz-text-inverse: #111111;

    --wz-border: #1e1e1e;
    --wz-border-medium: #2e2e2e;

    --wz-accent: #ffffff;
    --wz-accent-hover: #d4d4d4;
    --wz-accent-fg: #000000;

    --wz-success-bg: rgba(5, 150, 105, 0.1);
    --wz-success-border: rgba(5, 150, 105, 0.3);
    --wz-warning-bg: rgba(217, 119, 6, 0.1);
    --wz-danger-bg: rgba(220, 38, 38, 0.1);
    --wz-wp-blue-bg: rgba(37, 99, 235, 0.1);

    --wz-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --wz-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --wz-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Reset for wizard page */
.infyp-wizard-body {
    margin: 0;
    padding: 0;
    background: var(--wz-bg-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--wz-font);
    color: var(--wz-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.infyp-wizard-body,
.infyp-wizard-body * {
    font-family: var(--wz-font);
}

.infyp-wizard-body * {
    box-sizing: border-box;
}

/* Main Container */
.infyp-wizard-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px var(--wz-space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.infyp-wizard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding: 1rem;
    background: var(--wz-bg);
    border-radius: var(--wz-radius-lg);
}

.infyp-wizard-logo {
    display: flex;
    align-items: center;
    gap: var(--wz-space-2);
}

.infyp-wizard-logo svg,
.infyp-wizard-logo-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--wz-accent);
}

.infyp-wizard-logo-text {
    font-size: var(--wz-text-lg);
    font-weight: 700;
    color: var(--wz-text);
    letter-spacing: -0.02em;
}

.infyp-wizard-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--wz-text-secondary);
    font-size: var(--wz-text-sm);
    font-weight: 500;
    cursor: pointer;
    padding: var(--wz-space-4) var(--wz-space-8);
    border-radius: var(--wz-radius-md);
    transition: var(--wz-transition-base);
}

.infyp-wizard-skip:hover {
    background: var(--wz-bg-elevated);
    color: var(--wz-text);
}

/* Progress Indicator */
.infyp-wizard-progress {
    margin-bottom: 40px;
    background: var(--wz-bg);
    border-radius: var(--wz-radius-lg);
    padding: 1.5rem 2rem;
}

.infyp-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.infyp-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wz-space-2);
}

.infyp-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--wz-text-sm);
    font-weight: 600;
    background: var(--wz-border);
    color: var(--wz-text-secondary);
    transition: var(--wz-transition-base);
}

.infyp-wizard-step.active .infyp-step-dot {
    background: var(--wz-accent);
    color: var(--wz-accent-fg);
}

.infyp-wizard-step.completed .infyp-step-dot {
    background: var(--wz-success);
    color: var(--wz-accent-fg);
}

.infyp-step-label {
    font-size: var(--wz-text-sm);
    font-weight: 500;
    color: var(--wz-text-secondary);
    white-space: nowrap;
}

.infyp-wizard-step.active .infyp-step-label {
    color: var(--wz-accent);
    font-weight: 600;
}

.infyp-wizard-step.completed .infyp-step-label {
    color: var(--wz-success);
}

.infyp-step-connector {
    flex: 1;
    height: 2px;
    background: var(--wz-border);
    margin: 0 var(--wz-space-2);
    margin-bottom: var(--wz-space-6);
    transition: var(--wz-transition-base);
}

.infyp-step-connector.completed {
    background: var(--wz-success);
}

/* Content Card */
.infyp-wizard-content {
    background: var(--wz-bg);
    border-radius: var(--wz-radius-xl);
    padding: 48px;
    flex: 1;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.infyp-wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--wz-space-6);
    padding-top: var(--wz-space-6);
}

.infyp-wizard-nav-left {
    display: flex;
    align-items: center;
    gap: var(--wz-space-2);
}

.infyp-wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wz-space-2);
    padding: var(--wz-space-4) var(--wz-space-8);
    font-size: var(--wz-text-sm);
    font-weight: 600;
    border-radius: var(--wz-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--wz-transition-base);
    text-decoration: none;
}

.infyp-wizard-btn-primary {
    background: var(--wz-accent);
    color: var(--wz-accent-fg);
    border-color: var(--wz-accent);
}

.infyp-wizard-btn-primary:hover {
    background: var(--wz-accent-hover);
    border-color: var(--wz-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--wz-shadow-md);
}

.infyp-wizard-btn-secondary {
    background: transparent;
    color: var(--wz-text-secondary);
    border-color: var(--wz-border);
}

.infyp-wizard-btn-secondary:hover {
    background: var(--wz-bg-surface);
    border-color: var(--wz-border-medium);
    color: var(--wz-text);
}

.infyp-wizard-btn-large {
    padding: var(--wz-space-5) var(--wz-space-12);
    font-size: var(--wz-text-base);
}

.infyp-wizard-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ================================
   WELCOME STEP
   ================================ */
.infyp-step-welcome {
    text-align: center;
}

.infyp-welcome-title {
    font-size: var(--wz-text-3xl);
    font-weight: 700;
    color: var(--wz-text);
    margin: 0 0 var(--wz-space-4) 0;
    letter-spacing: -0.02em;
}

.infyp-welcome-subtitle {
    font-size: var(--wz-text-base);
    color: var(--wz-text-secondary);
    margin: 0 0 40px 0;
}

.infyp-welcome-features {
    display: grid;
    gap: var(--wz-space-4);
    text-align: left;
    margin: 0 auto var(--wz-space-8);
}

.infyp-feature-item {
    display: flex;
    align-items: center;
    gap: var(--wz-space-4);
    padding: var(--wz-space-5);
    background: var(--wz-bg-surface);
    border-radius: var(--wz-radius-lg);
    transition: var(--wz-transition-base);
}

.infyp-feature-item:hover {
    background: var(--wz-bg-elevated);
}

.infyp-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--wz-radius-md);
    background: var(--wz-success-bg);
    color: var(--wz-success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.infyp-feature-text {
    display: flex;
    flex-direction: column;
    gap: var(--wz-space-1);
}

.infyp-feature-text strong {
    font-size: var(--wz-text-sm);
    font-weight: 600;
    color: var(--wz-text);
}

.infyp-feature-text span {
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
}

.infyp-welcome-note {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: var(--wz-space-2);
    padding: var(--wz-space-4) var(--wz-space-5);
    background: var(--wz-bg-surface);
    border-radius: var(--wz-radius-md);
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
}

.infyp-welcome-note svg {
    flex-shrink: 0;
    color: var(--wz-accent);
}

/* Thank You Section */
.infyp-welcome-thanks {
    margin-top: var(--wz-space-8);
    padding: var(--wz-space-6);
    background: var(--wz-bg-surface);
    border-radius: var(--wz-radius-lg);
    border: 1px solid var(--wz-border);
    text-align: center;
}

.infyp-thanks-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wz-space-2);
}

.infyp-thanks-icon {
    color: var(--wz-danger);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.infyp-thanks-message {
    font-size: var(--wz-text-base);
    font-weight: 600;
    color: var(--wz-text);
    margin: 0;
}


/* ================================
   API KEYS STEP
   ================================ */
.infyp-step-title {
    font-size: var(--wz-text-2xl);
    font-weight: 700;
    color: var(--wz-text);
    margin: 0 0 var(--wz-space-2) 0;
    text-align: center;
}

.infyp-step-description {
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
    margin: 0 0 var(--wz-space-12) 0;
    text-align: center;
}

.infyp-api-keys-grid {
    display: grid;
    gap: var(--wz-space-5);
}

.infyp-api-card {
    border: 2px solid var(--wz-border);
    border-radius: var(--wz-radius-lg);
    padding: var(--wz-space-8);
    transition: var(--wz-transition-base);
}

.infyp-api-card:hover {
    border-color: var(--wz-border-medium);
}

.infyp-api-card.has-key {
    border-color: var(--wz-success);
    background: var(--wz-success-bg);
}

.infyp-api-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--wz-space-2);
}

.infyp-api-provider-info {
    display: flex;
    gap: var(--wz-space-2);
    align-items: center;
}

.infyp-api-provider-info h4 {
    font-size: var(--wz-text-base);
    font-weight: 600;
    color: var(--wz-text);
    margin: 0 0 var(--wz-space-1) 0;
}

.infyp-api-badge {
    display: inline-block;
    padding: var(--wz-space-1) var(--wz-space-2);
    font-size: var(--wz-text-xs);
    font-weight: 600;
    border-radius: var(--wz-radius-full);
    background: var(--wz-bg-elevated);
    color: var(--wz-text-secondary);
}

.infyp-api-badge.recommended {
    background: var(--wz-success-bg);
    color: var(--wz-success);
}

.infyp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--wz-space-1);
    padding: var(--wz-space-1) 10px;
    font-size: var(--wz-text-sm);
    font-weight: 600;
    border-radius: 6px;
}

.infyp-status-badge.connected {
    background: var(--wz-success-bg);
    color: var(--wz-success);
}

.infyp-status-badge.validating {
    background: var(--wz-bg-elevated);
    color: var(--wz-text-secondary);
}

.infyp-status-badge.invalid {
    background: var(--wz-danger-bg);
    color: var(--wz-danger);
}

.infyp-api-card-desc {
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
    margin: 0 0 var(--wz-space-5) 0;
    line-height: 1.5;
}

.infyp-api-input-wrapper {
    position: relative;
    margin-bottom: var(--wz-space-2);
}

.infyp-api-input {
    width: 100%;
    padding: var(--wz-space-4) 48px var(--wz-space-4) var(--wz-space-5);
    border: 1px solid var(--wz-border);
    color: var(--wz-text);
    border-radius: var(--wz-radius-md);
    font-size: var(--wz-text-sm);
    font-family: var(--wz-font-mono);
    transition: var(--wz-transition-base);
    background: var(--wz-bg);
}

.infyp-api-input:focus {
    outline: none;
    border-color: var(--wz-wp-blue);
    box-shadow: 0 0 0 3px var(--wz-wp-blue-bg);
}

.infyp-api-input::placeholder {
    color: var(--wz-text-tertiary);
    font-family: inherit;
}

.infyp-toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: var(--wz-space-1);
    cursor: pointer;
    color: var(--wz-text-tertiary);
    transition: var(--wz-transition-base);
}

.infyp-toggle-visibility:hover {
    color: var(--wz-text-secondary);
}

.infyp-get-key-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--wz-text-sm);
    font-weight: 500;
    color: var(--wz-accent);
    text-decoration: none;
    transition: var(--wz-transition-base);
}

.infyp-get-key-link:hover {
    color: var(--wz-accent-hover);
}

.infyp-api-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px var(--wz-space-5);
    background: var(--wz-bg-surface);
    border-radius: var(--wz-radius-md);
    margin-top: var(--wz-space-6);
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
}

.infyp-api-notice svg {
    flex-shrink: 0;
    color: var(--wz-accent);
}

.infyp-api-notice.error {
    background: var(--wz-danger-bg);
    color: var(--wz-danger);
}

.infyp-api-notice.error svg {
    color: var(--wz-danger);
}

/* ================================
   PREFERENCES STEP
   ================================ */
.infyp-preferences-form {
    margin-top: var(--wz-space-2);
}

.infyp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wz-space-6);
}

.infyp-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--wz-space-2);
}

.infyp-form-group-full {
    grid-column: 1 / -1;
}

.infyp-form-group:last-child {
    margin-bottom: 0;
}

.infyp-form-group label {
    font-size: var(--wz-text-sm);
    font-weight: 600;
    color: var(--wz-text);
}

.infyp-form-group label .optional {
    font-weight: 400;
    color: var(--wz-text-tertiary);
}

.infyp-select {
    width: 100%;
    padding: var(--wz-space-4) var(--wz-space-5);
    border: 1px solid var(--wz-border);
    border-radius: var(--wz-radius-md);
    font-size: var(--wz-text-sm);
    font-family: inherit;
    background: var(--wz-bg);
    transition: var(--wz-transition-base);
    color: var(--wz-text);
}

.infyp-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
}

.infyp-select:focus {
    outline: none;
    border-color: var(--wz-wp-blue);
    box-shadow: 0 0 0 3px var(--wz-wp-blue-bg);
}

.infyp-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.infyp-form-hint {
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
}

/* Radio Cards */
.infyp-radio-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--wz-space-2);
}

.infyp-radio-card {
    cursor: pointer;
}

.infyp-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.infyp-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--wz-space-5) var(--wz-space-4);
    border: 2px solid var(--wz-border);
    border-radius: var(--wz-radius-md);
    text-align: center;
    transition: var(--wz-transition-base);
}

.infyp-radio-card:hover .infyp-radio-content {
    border-color: var(--wz-border-medium);
    background: var(--wz-bg-surface);
}

.infyp-radio-card input:checked + .infyp-radio-content {
    border-color: var(--wz-accent);
    background: var(--wz-bg-surface);
}

.infyp-radio-label {
    font-size: var(--wz-text-sm);
    font-weight: 600;
    color: var(--wz-text);
}

.infyp-radio-desc {
    font-size: var(--wz-text-xs);
    color: var(--wz-text-secondary);
    margin-top: var(--wz-space-1);
}

/* Toggle Switch */
.infyp-toggle-wrapper {
    margin-top: var(--wz-space-4);
}

.infyp-toggle-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.infyp-toggle-wrapper label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: var(--wz-space-5);
    background: var(--wz-bg);
    border: 2px solid var(--wz-border);
    border-radius: var(--wz-radius-md);
    transition: var(--wz-transition-base);
}

.infyp-toggle-wrapper label:hover {
    background: var(--wz-bg-elevated);
    border-color: var(--wz-border-medium);
}

.infyp-toggle-wrapper input[type="checkbox"]:checked + label {
    background: var(--wz-success-bg);
    border-color: var(--wz-success);
}

/* Wizard-specific toggle switch - scoped to prevent conflicts with settings toggle */
.infyp-toggle-wrapper .infyp-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--wz-border-medium);
    border-radius: var(--wz-radius-full);
    flex-shrink: 0;
    transition: var(--wz-transition-base);
}

.infyp-toggle-wrapper .infyp-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--wz-shadow-sm);
    transition: var(--wz-transition-base);
}

.infyp-toggle-wrapper input[type="checkbox"]:checked + label .infyp-toggle-switch {
    background: var(--wz-success);
}

.infyp-toggle-wrapper input[type="checkbox"]:checked + label .infyp-toggle-switch::after {
    transform: translateX(20px);
}

/* Wizard-specific toggle label - scoped to prevent conflicts */
.infyp-toggle-wrapper .infyp-toggle-label {
    display: flex;
    flex-direction: column;
    gap: var(--wz-space-1);
}

.infyp-toggle-title {
    font-size: var(--wz-text-sm);
    font-weight: 500;
    color: var(--wz-text);
}

.infyp-toggle-title a {
    color: var(--wz-info);
    text-decoration: none;
    font-weight: 500;
}

.infyp-toggle-title a:hover {
    text-decoration: underline;
}

.infyp-toggle-desc {
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
    line-height: 1.5;
}

.infyp-toggle-desc strong {
    color: var(--wz-text);
    font-weight: 600;
}

/* Newsletter Opt-in */
.infyp-newsletter-optin {
    background: var(--wz-bg-surface);
    border-radius: var(--wz-radius-md);
    padding: var(--wz-space-5);
    border: 1px solid var(--wz-bg-elevated);
}

.infyp-toggle-newsletter label {
    background: transparent;
    border: none;
    padding: 0;
}

.infyp-toggle-newsletter label:hover {
    background: transparent;
    border-color: transparent;
}

.infyp-toggle-newsletter input[type="checkbox"]:checked + label {
    background: transparent;
    border-color: transparent;
}

/* Privacy link inside toggle description */
.infyp-privacy-link {
    display: inline;
    color: var(--wz-info);
    text-decoration: none;
    font-size: var(--wz-text-sm);
}

.infyp-privacy-link:hover {
    text-decoration: underline;
}

/* Data Disclosure Panel */
.infyp-data-disclosure {
    margin-top: var(--wz-space-5);
    border-top: 1px solid var(--wz-border);
    padding-top: var(--wz-space-4);
}

.infyp-disclosure-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: var(--wz-space-1) 0;
    color: var(--wz-info);
    font-size: var(--wz-text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--wz-transition-base);
}

.infyp-disclosure-trigger:hover {
    opacity: 0.8;
}

.infyp-disclosure-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.infyp-disclosure-trigger[aria-expanded="true"] .infyp-disclosure-icon {
    transform: rotate(90deg);
}

.infyp-disclosure-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.infyp-disclosure-content[aria-hidden="false"] {
    grid-template-rows: 1fr;
}

.infyp-disclosure-inner {
    overflow: hidden;
}

.infyp-disclosure-intro {
    padding: var(--wz-space-4) 0 var(--wz-space-2);
}

.infyp-disclosure-intro p {
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
    line-height: 1.5;
    margin: 0 0 var(--wz-space-1) 0;
}

.infyp-disclosure-intro p:last-child {
    margin-bottom: 0;
}

.infyp-disclosure-category {
    padding: var(--wz-space-4) 0;
    border-top: 1px solid var(--wz-border);
}

.infyp-disclosure-category-header {
    display: flex;
    align-items: center;
    gap: var(--wz-space-2);
    margin-bottom: var(--wz-space-1);
}

.infyp-disclosure-category-title {
    font-size: var(--wz-text-sm);
    font-weight: 600;
    color: var(--wz-text);
}

.infyp-disclosure-category-desc {
    display: block;
    font-size: var(--wz-text-xs);
    color: var(--wz-text-secondary);
    line-height: 1.3;
    margin-top: var(--wz-space-2);
}

.infyp-disclosure-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.infyp-disclosure-badge-required {
    display: inline-block;
    padding: 1px var(--wz-space-2);
    font-size: var(--wz-text-xs);
    font-weight: 500;
    color: var(--wz-text-secondary);
    background: var(--wz-bg-elevated);
    border-radius: var(--wz-radius-full);
}

/* Compact Toggle Variant */
.infyp-toggle-compact {
    flex-shrink: 0;
}

.infyp-toggle-compact input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.infyp-toggle-compact label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.infyp-toggle-compact .infyp-toggle-compact-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--wz-border-medium);
    border-radius: var(--wz-radius-full);
    flex-shrink: 0;
    transition: var(--wz-transition-base);
}

.infyp-toggle-compact .infyp-toggle-compact-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--wz-shadow-sm);
    transition: var(--wz-transition-base);
}

.infyp-toggle-compact input[type="checkbox"]:checked + label .infyp-toggle-compact-switch {
    background: var(--wz-success);
}

.infyp-toggle-compact input[type="checkbox"]:checked + label .infyp-toggle-compact-switch::after {
    transform: translateX(16px);
}

/* Form label above newsletter section */
.infyp-form-group .infyp-form-label {
    display: block;
    font-size: var(--wz-text-sm);
    font-weight: 500;
    color: var(--wz-text);
    margin-bottom: var(--wz-space-2);
}


/* ================================
   COMPLETE STEP
   ================================ */
.infyp-step-complete {
    text-align: center;
}

.infyp-complete-icon {
    margin-bottom: var(--wz-space-6);
}

.infyp-complete-title {
    font-size: var(--wz-text-3xl);
    font-weight: 700;
    color: var(--wz-text);
    margin: 0 0 var(--wz-space-4) 0;
    letter-spacing: -0.02em;
}

.infyp-complete-subtitle {
    font-size: var(--wz-text-base);
    color: var(--wz-text-secondary);
    margin: 0 0 var(--wz-space-12) 0;
}

.infyp-complete-summary {
    background: var(--wz-bg-surface);
    border-radius: var(--wz-radius-lg);
    padding: var(--wz-space-8);
    margin-bottom: var(--wz-space-8);
    text-align: left;
}

.infyp-complete-summary h3 {
    font-size: var(--wz-text-sm);
    font-weight: 600;
    color: var(--wz-text-secondary);
    margin: 0 0 var(--wz-space-5) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infyp-summary-items {
    display: flex;
    flex-direction: column;
    gap: var(--wz-space-2);
}

.infyp-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--wz-text-sm);
    color: var(--wz-text);
}

.infyp-summary-item.success svg {
    color: var(--wz-success);
}

.infyp-complete-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wz-space-2);
}

/* ================================
   FOOTER
   ================================ */
.infyp-wizard-footer {
    background: var(--wz-bg-elevated);
    border-top: 1px solid var(--wz-border);
    color: var(--wz-text);
    padding: var(--wz-space-12) var(--wz-space-6) var(--wz-space-8);
    margin-top: auto;
    font-family: var(--wz-font);
}

.infyp-wizard-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--wz-space-4);
}

.infyp-wizard-footer-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--wz-accent);
}

.infyp-wizard-footer-brand h3 {
    font-size: var(--wz-text-lg);
    font-weight: 700;
    margin: 0 0 var(--wz-space-1) 0;
    color: var(--wz-text);
    line-height: 1.2;
}

.infyp-wizard-footer-brand p {
    color: var(--wz-text-secondary);
    font-size: var(--wz-text-sm);
    line-height: 1.4;
    margin: 0;
}

.infyp-wizard-footer-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wz-space-2);
    margin-bottom: var(--wz-space-6);
}

.infyp-wizard-footer-brand-name {
    color: var(--wz-text);
    font-size: var(--wz-text-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
    letter-spacing: 0.02em;
}

.infyp-wizard-footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.infyp-wizard-footer-bottom p {
    color: var(--wz-text-tertiary);
    font-size: var(--wz-text-sm);
    margin: 0;
}


/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .infyp-wizard-page {
        padding: var(--wz-space-6) var(--wz-space-5);
    }

    .infyp-wizard-content {
        padding: var(--wz-space-12) var(--wz-space-8);
    }

    .infyp-wizard-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 var(--wz-space-6);
    }

    .infyp-step-connector {
        width: 30px;
        flex-shrink: 0;
    }

    .infyp-welcome-title,
    .infyp-complete-title {
        font-size: var(--wz-text-2xl);
    }

    .infyp-step-title {
        font-size: var(--wz-text-2xl);
    }

    .infyp-form-grid {
        grid-template-columns: 1fr;
    }

    .infyp-radio-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .infyp-wizard-navigation {
        flex-direction: column-reverse;
        gap: var(--wz-space-4);
    }

    .infyp-wizard-nav-left {
        width: 100%;
        flex-direction: column;
        gap: var(--wz-space-2);
    }

    .infyp-wizard-btn {
        width: 100%;
    }

    .infyp-wizard-skip {
        width: 100%;
        order: 1;
    }

    .infyp-wizard-btn-secondary.infyp-wizard-prev {
        order: 0;
    }

    .infyp-complete-actions .infyp-wizard-btn {
        width: 100%;
    }

}

@media (max-width: 480px) {
    .infyp-step-label {
        display: none;
    }

    .infyp-step-connector {
        width: 20px;
    }

    .infyp-radio-group {
        grid-template-columns: 1fr;
    }

    /* Footer 480px */
    .infyp-wizard-footer {
        padding: var(--wz-space-12) var(--wz-space-5) var(--wz-space-8);
    }

    .infyp-wizard-footer-brand h3 {
        font-size: var(--wz-text-lg);
    }

    .infyp-wizard-footer-brand p {
        font-size: var(--wz-text-sm);
    }

}

/* Hide WordPress admin bar on wizard page */
.infyp-wizard-body #wpadminbar {
    display: none;
}

.infyp-wizard-body.admin-bar {
    margin-top: 0 !important;
}

/* Loading state */
.infyp-wizard-btn.loading {
    position: relative;
    color: transparent;
}

.infyp-wizard-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.infyp-wizard-btn-primary.loading::after {
    border-top-color: white;
}

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

/* Skip Confirmation Modal */
.infyp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(4px);
}

.infyp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.infyp-modal {
    background: var(--wz-bg);
    border-radius: var(--wz-radius-xl);
    padding: var(--wz-space-12);
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.2s ease;
}

.infyp-modal-overlay.active .infyp-modal {
    transform: scale(1) translateY(0);
}

.infyp-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--wz-space-6);
    background: var(--wz-warning-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wz-warning);
}

.infyp-modal-title {
    font-size: var(--wz-text-2xl);
    font-weight: 600;
    color: var(--wz-text);
    margin: 0 0 var(--wz-space-4);
}

.infyp-modal-message {
    font-size: var(--wz-text-sm);
    color: var(--wz-text-secondary);
    margin: 0 0 var(--wz-space-8);
    line-height: 1.6;
}

.infyp-modal-actions {
    display: flex;
    gap: var(--wz-space-4);
    justify-content: center;
}

.infyp-modal-actions .infyp-btn {
    padding: var(--wz-space-4) var(--wz-space-8);
    border-radius: var(--wz-radius-md);
    font-size: var(--wz-text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.infyp-modal-actions .infyp-btn-secondary {
    background: var(--wz-bg-elevated);
    color: var(--wz-text);
}

.infyp-modal-actions .infyp-btn-secondary:hover {
    background: var(--wz-border);
}

.infyp-modal-actions .infyp-btn-danger {
    background: var(--wz-danger);
    color: var(--wz-accent-fg);
}

.infyp-modal-actions .infyp-btn-danger:hover {
    background: var(--wz-danger);
}

.infyp-modal-actions .infyp-btn.loading {
    position: relative;
    color: transparent;
}

.infyp-modal-actions .infyp-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Prevent body scroll when modal is open */
body.infyp-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   DARK MODE OVERRIDES
   ========================================================================== */
[data-theme="dark"] .infyp-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23707070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .infyp-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23ededed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .infyp-wizard-btn-primary.loading::after {
    border-top-color: var(--wz-accent-fg);
}

[data-theme="dark"] .infyp-modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}


