/**
 * Parrot SEO Admin Styles
 *
 * @package ParrotSEO
 */

/* CSS Variables */
:root {
    --parrot-primary: #0049f2;
    --parrot-primary-dark: #003dd1;
    --parrot-primary-light: #818cf8;
    --parrot-success: #22c55e;
    --parrot-warning: #f59e0b;
    --parrot-error: #ef4444;
    --parrot-gray-50: #f9fafb;
    --parrot-gray-100: #f3f4f6;
    --parrot-gray-200: #e5e7eb;
    --parrot-gray-300: #d1d5db;
    --parrot-gray-400: #9ca3af;
    --parrot-gray-500: #6b7280;
    --parrot-gray-600: #4b5563;
    --parrot-gray-700: #374151;
    --parrot-gray-800: #1f2937;
    --parrot-gray-900: #111827;
    --parrot-radius: 8px;
    --parrot-radius-lg: 12px;
    --parrot-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --parrot-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Wrap */
.parrot-seo-wrap {
    margin: 20px 20px 20px 0;
    max-width: 1400px;
}

/* Header */
.parrot-seo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, var(--parrot-primary) 0%, var(--parrot-primary-dark) 100%);
    border-radius: var(--parrot-radius-lg);
    color: #fff;
}

.parrot-seo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.parrot-seo-logo svg {
    display: block;
    stroke: #fff;
}

.parrot-seo-logo img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.parrot-seo-description {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.parrot-seo-version {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Navigation */
.parrot-seo-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--parrot-gray-100);
    border-radius: var(--parrot-radius);
}

.parrot-seo-nav-item {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--parrot-gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.parrot-seo-nav-item:hover {
    color: var(--parrot-primary);
    background: #fff;
}

.parrot-seo-nav-item.is-active {
    background: #fff;
    color: var(--parrot-primary);
    box-shadow: var(--parrot-shadow);
}

/* Cards */
.parrot-seo-card {
    background: #fff;
    border-radius: var(--parrot-radius-lg);
    box-shadow: var(--parrot-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.parrot-seo-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--parrot-gray-200);
}

.parrot-seo-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--parrot-gray-900);
}

.parrot-seo-card-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--parrot-gray-500);
}

.parrot-seo-card-body {
    padding: 24px;
    overflow: visible;
}

.parrot-seo-card--danger {
    border: 1px solid var(--parrot-error);
}

.parrot-seo-card--danger .parrot-seo-card-header {
    background: #fef2f2;
}

/* Error Log Monitor (Tools) */
.parrot-seo-error-log-view {
    margin-top: 12px;
    min-height: 200px;
    border: 1px solid var(--parrot-gray-300, #d1d5db);
    border-radius: 6px;
    background: #1e1e1e;
    max-height: 400px;
    overflow: auto;
}

.parrot-seo-error-log-pre {
    margin: 0;
    padding: 12px 16px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #e5e7eb;
    white-space: pre-wrap;
    word-break: break-all;
}

.parrot-seo-error-log-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.parrot-seo-error-log-notice.inline {
    margin: 12px 0;
}

/* Forms */
.parrot-seo-form .submit {
    margin-top: 8px;
    padding: 0;
}

.parrot-seo-field {
    margin-bottom: 20px;
}

.parrot-seo-field:last-child {
    margin-bottom: 0;
}

.parrot-seo-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--parrot-gray-700);
}

.parrot-seo-field input[type="text"],
.parrot-seo-field input[type="url"],
.parrot-seo-field input[type="email"],
.parrot-seo-field input[type="number"],
.parrot-seo-field textarea,
.parrot-seo-field select {
    width: 100%;
    max-width: 600px;
    padding: 10px 14px;
    border: 1px solid var(--parrot-gray-300);
    border-radius: var(--parrot-radius);
    font-size: 14px;
    transition: all 0.2s ease;
}

.parrot-seo-field input:focus,
.parrot-seo-field textarea:focus,
.parrot-seo-field select:focus {
    outline: none;
    border-color: var(--parrot-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.parrot-seo-field-help {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--parrot-gray-500);
}

/* Local SEO section */
.parrot-seo-local-seo-fields {
    margin-top: 12px;
    padding: 18px 20px 4px;
    border-radius: var(--parrot-radius);
    background: #ffffff;
    border: 1px solid var(--parrot-gray-200);
}

.parrot-seo-local-seo-fields .parrot-seo-field {
    margin-bottom: 16px;
}

.parrot-seo-local-seo-fields .parrot-seo-opening-hours-row {
    border-radius: 6px;
    padding: 4px 8px;
}

.parrot-seo-local-seo-fields .parrot-seo-opening-hours-row:nth-child(odd) {
    background-color: rgba(15, 23, 42, 0.02);
}

.parrot-seo-local-phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.parrot-seo-local-phone-row select {
    min-width: 180px;
}

.parrot-seo-local-phone-row input[type="text"] {
    max-width: 240px;
}

.parrot-seo-local-phone-row .parrot-seo-remove-phone-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    background: #fff;
    border: 1px solid var(--parrot-gray-300);
    border-radius: 6px;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.parrot-seo-local-phone-row .parrot-seo-remove-phone-row:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #b91c1c;
    transform: scale(1.05);
}

.parrot-seo-local-phone-row .parrot-seo-remove-phone-row .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.parrot-seo-local-seo-fields .parrot-seo-add-phone-row.parrot-seo-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 8px;
}

/* Opening hours format pills */
.parrot-seo-opening-hours-format {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 360px;
    margin-bottom: 8px;
}

.parrot-seo-opening-hours-format-label {
    font-size: 13px;
    color: var(--parrot-gray-600);
}

.parrot-seo-opening-hours-format-toggle {
    display: inline-flex;
    background: var(--parrot-gray-100);
    border-radius: 999px;
    padding: 2px;
}

.parrot-seo-opening-hours-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--parrot-gray-600);
    cursor: pointer;
}

.parrot-seo-opening-hours-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.parrot-seo-opening-hours-pill.is-active {
    background: var(--parrot-primary);
    color: #fff;
}

/* Image field */
.parrot-seo-image-field {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.parrot-seo-image-preview {
    margin-top: 12px;
    max-width: 200px;
}

.parrot-seo-image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: var(--parrot-radius);
    box-shadow: var(--parrot-shadow);
}

/* Radio group */
.parrot-seo-radio-group {
    display: flex;
    gap: 24px;
}

.parrot-seo-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.parrot-seo-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--parrot-primary);
}

/* Toggle */
.parrot-seo-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.parrot-seo-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.parrot-seo-toggle-slider {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: #d1d5db;
    border: 2px solid #9ca3af;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.parrot-seo-toggle-slider::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.parrot-seo-toggle input:checked + .parrot-seo-toggle-slider {
    background: #3b82f6;
    border-color: #2563eb;
}

.parrot-seo-toggle input:checked + .parrot-seo-toggle-slider::after {
    transform: translateX(20px);
}

.parrot-seo-toggle input:focus + .parrot-seo-toggle-slider {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.parrot-seo-toggle-label {
    font-size: 14px;
    color: var(--parrot-gray-700);
    line-height: 24px;
}

/* Button */
.parrot-seo-btn {
    padding: 12px 24px !important;
    border-radius: var(--parrot-radius) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    background: linear-gradient(135deg, #0049f2 0%, #003fd1 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.parrot-seo-btn:hover {
    background: linear-gradient(135deg, #003fd1 0%, #0035b3 100%) !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

.parrot-seo-btn:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.parrot-seo-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 73, 242, 0.3) !important;
}

/* Variables grid */
.parrot-seo-variables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.parrot-seo-variable {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--parrot-gray-50);
    border-radius: var(--parrot-radius);
}

.parrot-seo-variable code {
    padding: 4px 8px;
    background: var(--parrot-gray-200);
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
}

/* Stats grid */
.parrot-seo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.parrot-seo-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: var(--parrot-radius-lg);
    box-shadow: var(--parrot-shadow);
}

.parrot-seo-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--parrot-radius);
}

.parrot-seo-stat-icon--blue {
    background: rgba(79, 70, 229, 0.1);
    color: var(--parrot-primary);
}

.parrot-seo-stat-icon--green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--parrot-success);
}

.parrot-seo-stat-icon--purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.parrot-seo-stat-icon--orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--parrot-warning);
}

.parrot-seo-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.parrot-seo-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--parrot-gray-900);
    line-height: 1;
}

.parrot-seo-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--parrot-gray-500);
}

/* Dashboard grid */
.parrot-seo-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .parrot-seo-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Score distribution */
.parrot-seo-score-distribution {
    padding: 20px 0;
}

.parrot-seo-score-bar {
    display: flex;
    height: 32px;
    border-radius: var(--parrot-radius);
    overflow: hidden;
}

.parrot-seo-score-bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.parrot-seo-score-bar--good {
    background: var(--parrot-success);
}

.parrot-seo-score-bar--ok {
    background: var(--parrot-warning);
}

.parrot-seo-score-bar--poor {
    background: var(--parrot-error);
}

.parrot-seo-score-legend {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.parrot-seo-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--parrot-gray-600);
}

.parrot-seo-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.parrot-seo-legend--good .parrot-seo-legend-dot {
    background: var(--parrot-success);
}

.parrot-seo-legend--ok .parrot-seo-legend-dot {
    background: var(--parrot-warning);
}

.parrot-seo-legend--poor .parrot-seo-legend-dot {
    background: var(--parrot-error);
}

/* Quick actions */
.parrot-seo-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.parrot-seo-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--parrot-gray-50);
    border-radius: var(--parrot-radius);
    text-decoration: none;
    color: var(--parrot-gray-700);
    transition: all 0.2s ease;
}

.parrot-seo-quick-action:hover {
    background: var(--parrot-gray-100);
    color: var(--parrot-primary);
}

.parrot-seo-quick-action .dashicons {
    color: var(--parrot-primary);
}

/* Table */
.parrot-seo-table {
    width: 100%;
    border-collapse: collapse;
}

.parrot-seo-table th,
.parrot-seo-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--parrot-gray-200);
}

.parrot-seo-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--parrot-gray-500);
    background: var(--parrot-gray-50);
}

.parrot-seo-table td {
    font-size: 14px;
    color: var(--parrot-gray-700);
}

.parrot-seo-table tr:last-child td {
    border-bottom: none;
}

.parrot-seo-table a {
    color: var(--parrot-primary);
    text-decoration: none;
}

.parrot-seo-table a:hover {
    text-decoration: underline;
}

/* Score badge */
.parrot-seo-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.parrot-seo-score--green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--parrot-success);
}

.parrot-seo-score--orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--parrot-warning);
}

.parrot-seo-score--red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--parrot-error);
}

.parrot-seo-score--none {
    background: var(--parrot-gray-100);
    color: var(--parrot-gray-500);
}

/* Empty state */
.parrot-seo-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    text-align: center;
    color: var(--parrot-gray-500);
}

.parrot-seo-empty-state .dashicons {
    color: var(--parrot-success);
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Sitemap URL */
.parrot-seo-sitemap-url {
    margin-top: 16px;
    padding: 16px;
    background: var(--parrot-gray-50);
    border-radius: var(--parrot-radius);
}

.parrot-seo-sitemap-url a {
    color: var(--parrot-primary);
    word-break: break-all;
}

/* Schema types list */
.parrot-seo-schema-types-list {
    margin: 0;
    padding-left: 20px;
}

.parrot-seo-schema-types-list li {
    margin-bottom: 8px;
}

/* Tools page */
.parrot-seo-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Error Log Monitor on its own row */
.parrot-seo-tools .parrot-seo-card--full-width {
    grid-column: 1 / -1;
}

/* Tools cards: equal height, buttons bottom-left, consistent spacing */
.parrot-seo-tools .parrot-seo-tools-card {
    display: flex;
    flex-direction: column;
}

.parrot-seo-tools .parrot-seo-tools-card .parrot-seo-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
}

/* Tools card description: top-left, spacing below */
.parrot-seo-tools .parrot-seo-tools-card .parrot-seo-card-body > p.parrot-seo-tools-card-desc {
    margin: 0 0 16px 0;
    text-align: left;
    align-self: flex-start;
    line-height: 1.5;
}

.parrot-seo-tools .parrot-seo-tools-card .parrot-seo-card-body > p {
    margin-bottom: 0;
}

.parrot-seo-tools .parrot-seo-tools-card .parrot-seo-card-body > .parrot-seo-tools-form {
    margin-top: auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
}

.parrot-seo-tools .parrot-seo-tools-card .parrot-seo-card-body > .parrot-seo-tools-form .parrot-seo-tools-import-stack {
    width: 100%;
}

/* Import Settings: Select file and Import button on separate lines */
.parrot-seo-tools .parrot-seo-tools-import-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.parrot-seo-tools .parrot-seo-tools-import-stack .parrot-seo-tools-file-label {
    align-self: flex-start;
    width: auto;
}

.parrot-seo-tools .parrot-seo-tools-import-stack .parrot-seo-tools-btn {
    flex-shrink: 0;
    width: 100%;
}

/* Tools tab – brand buttons, full width */
.parrot-seo-tools .parrot-seo-tools-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--parrot-primary) !important;
    border-color: var(--parrot-primary) !important;
    color: #fff !important;
    border-radius: var(--parrot-radius);
    padding: 10px 16px;
    font-weight: 500;
    text-align: center;
}

.parrot-seo-tools .parrot-seo-tools-btn:hover,
.parrot-seo-tools .parrot-seo-tools-btn:focus {
    background: var(--parrot-primary-dark) !important;
    border-color: var(--parrot-primary-dark) !important;
    color: #fff !important;
}

.parrot-seo-tools .parrot-seo-tools-btn--secondary {
    background: #fff !important;
    border: 1px solid var(--parrot-primary) !important;
    color: var(--parrot-primary) !important;
}

.parrot-seo-tools .parrot-seo-tools-btn--secondary:hover,
.parrot-seo-tools .parrot-seo-tools-btn--secondary:focus {
    background: var(--parrot-gray-50) !important;
    border-color: var(--parrot-primary-dark) !important;
    color: var(--parrot-primary-dark) !important;
}

.parrot-seo-tools .parrot-seo-tools-btn--danger {
    background: var(--parrot-error) !important;
    border-color: var(--parrot-error) !important;
    color: #fff !important;
}

.parrot-seo-tools .parrot-seo-tools-btn--danger:hover,
.parrot-seo-tools .parrot-seo-tools-btn--danger:focus {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

/* Import: custom "Select file" area (dotted border, icon + text) */
.parrot-seo-tools .parrot-seo-tools-file-label {
    position: relative;
    display: block;
    cursor: pointer;
    margin-bottom: 0;
}

.parrot-seo-tools .parrot-seo-tools-file-label .parrot-seo-tools-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 1;
}

.parrot-seo-tools .parrot-seo-tools-file-label .parrot-seo-tools-file:focus {
    outline: none;
}

.parrot-seo-tools .parrot-seo-tools-file-label .parrot-seo-tools-file:focus + .parrot-seo-tools-file-label-inner {
    box-shadow: 0 0 0 2px rgba(0, 73, 242, 0.25);
}

.parrot-seo-tools .parrot-seo-tools-file-label-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    min-height: 34px;
    background: var(--parrot-gray-50);
    border: 2px dashed var(--parrot-gray-300);
    border-radius: var(--parrot-radius);
    color: var(--parrot-gray-700);
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.parrot-seo-tools .parrot-seo-tools-file-label:hover .parrot-seo-tools-file-label-inner {
    background: var(--parrot-gray-100);
    border-color: var(--parrot-gray-400);
}

.parrot-seo-tools .parrot-seo-tools-file-label-inner .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--parrot-gray-600);
}

.parrot-seo-tools .parrot-seo-tools-file-label-text {
    flex-shrink: 0;
}

.parrot-seo-tools .parrot-seo-tools-file-name {
    color: var(--parrot-primary);
    font-weight: 500;
    margin-left: 4px;
}

/* Column headers */
.parrot-seo-column-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.parrot-seo-column-header .dashicons {
    color: var(--parrot-gray-500);
}

/* ============================================
   Titles & Meta Page - Sidebar Layout
   ============================================ */

.parrot-seo-titles-form {
    margin-top: 20px;
}

.parrot-seo-titles-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Left Sidebar */
.parrot-seo-titles-sidebar {
    flex: 0 0 220px;
    background: #fff;
    border-radius: var(--parrot-radius);
    box-shadow: var(--parrot-shadow);
    position: sticky;
    top: 32px;
}

.parrot-seo-titles-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--parrot-gray-200);
}

.parrot-seo-titles-sidebar-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-gray-700);
}

.parrot-seo-titles-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.parrot-seo-titles-menu li {
    margin: 0;
}

.parrot-seo-titles-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--parrot-gray-600);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.parrot-seo-titles-menu li a:hover {
    background: var(--parrot-gray-50);
    color: var(--parrot-gray-800);
}

.parrot-seo-titles-menu li.is-active a {
    background: rgba(59, 130, 246, 0.05);
    color: var(--parrot-primary);
    border-left-color: var(--parrot-primary);
    font-weight: 500;
}

.parrot-seo-titles-menu li a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.parrot-seo-titles-menu li.is-active a .dashicons {
    opacity: 1;
}

/* Center Content Area */
.parrot-seo-titles-content {
    flex: 1;
    min-width: 0;
}

/* Right SERP Preview Sidebar */
.parrot-seo-serp-preview-sidebar {
    flex: 0 0 340px;
    position: sticky;
    top: 32px;
}

.parrot-seo-serp-card {
    background: #fff;
}

.parrot-seo-serp-card .parrot-seo-card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.parrot-seo-serp-card .parrot-seo-card-header p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--parrot-gray-500);
}

/* SERP Preview */
.parrot-seo-serp-preview {
    background: #fff;
    border: 1px solid var(--parrot-gray-200);
    border-radius: 8px;
    padding: 16px;
}

.parrot-seo-serp-url {
    font-size: 12px;
    color: #202124;
    margin-bottom: 4px;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
}

.parrot-seo-serp-url::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--parrot-gray-200);
    border-radius: 50%;
    margin-right: 10px;
}

.parrot-seo-serp-title {
    font-size: 18px;
    color: #1a0dab;
    font-family: Arial, sans-serif;
    line-height: 1.3;
    margin-bottom: 4px;
    cursor: pointer;
}

.parrot-seo-serp-title:hover {
    text-decoration: underline;
}

.parrot-seo-serp-description {
    font-size: 13px;
    color: #4d5156;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.parrot-seo-serp-note {
    font-size: 11px;
    color: var(--parrot-gray-400);
    margin: 12px 0 0;
    font-style: italic;
}

/* Input with Attached Dropdown */
.parrot-seo-input-with-dropdown {
    position: relative;
    display: flex;
}

.parrot-seo-input-with-dropdown input,
.parrot-seo-input-with-dropdown textarea {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.parrot-seo-input-with-dropdown textarea {
    border-top-right-radius: 0;
}

.parrot-seo-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background: var(--parrot-gray-100);
    border: 1px solid var(--parrot-gray-300);
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-dropdown-toggle:hover {
    background: var(--parrot-gray-200);
}

/* Separator Field - Full Width */
.parrot-seo-separator-field {
    width: 100%;
}

.parrot-seo-separator-wrapper {
    width: 100%;
}

.parrot-seo-separator-display {
    cursor: pointer;
    background: #fff !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.parrot-seo-separator-display:focus {
    outline: none;
}

.parrot-seo-separator-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background: var(--parrot-gray-100);
    border: 1px solid var(--parrot-gray-300);
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-separator-toggle:hover {
    background: var(--parrot-gray-200);
}

/* Separator List Dropdown */
.parrot-seo-separator-list {
    display: none;
    width: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--parrot-gray-200);
    border-radius: var(--parrot-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.parrot-seo-separator-list.is-open {
    display: block;
}

.parrot-seo-separator-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--parrot-gray-100);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.parrot-seo-separator-item:last-child {
    border-bottom: none;
}

.parrot-seo-separator-item:hover {
    background: var(--parrot-gray-50);
}

.parrot-seo-separator-item code {
    background: var(--parrot-gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.parrot-seo-separator-item span {
    color: var(--parrot-gray-600);
    font-size: 13px;
}

.parrot-seo-separator-item.is-selected {
    background: rgba(0, 73, 242, 0.08);
}

.parrot-seo-separator-item.is-selected code {
    background: var(--parrot-primary);
    color: #fff;
}

.parrot-seo-dropdown-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--parrot-gray-500);
}

/* Variable List (below field) */
.parrot-seo-variable-list {
    display: none;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--parrot-gray-200);
    border-radius: var(--parrot-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.parrot-seo-variable-list.is-open {
    display: block;
}

.parrot-seo-variable-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--parrot-gray-100);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.parrot-seo-variable-item:last-child {
    border-bottom: none;
}

.parrot-seo-variable-item:hover {
    background: var(--parrot-gray-50);
}

.parrot-seo-variable-item code {
    background: var(--parrot-gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--parrot-primary);
    white-space: nowrap;
}

.parrot-seo-variable-item span {
    font-size: 12px;
    color: var(--parrot-gray-600);
}

/* Checkbox List for Robots Meta */
.parrot-seo-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.parrot-seo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--parrot-gray-50);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.parrot-seo-checkbox:hover {
    background: var(--parrot-gray-100);
}

.parrot-seo-checkbox input[type="checkbox"] {
    margin: 2px 0 0;
    width: 16px;
    height: 16px;
    accent-color: var(--parrot-primary);
    flex-shrink: 0;
}

.parrot-seo-checkbox-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--parrot-gray-700);
    line-height: 1.4;
}

.parrot-seo-checkbox-desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--parrot-gray-500);
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 1400px) {
    .parrot-seo-serp-preview-sidebar {
        flex: 0 0 300px;
    }
}

@media (max-width: 1200px) {
    .parrot-seo-titles-layout {
        flex-wrap: wrap;
    }
    
    .parrot-seo-serp-preview-sidebar {
        flex: 0 0 100%;
        order: -1;
        position: static;
    }
}

@media (max-width: 1024px) {
    .parrot-seo-titles-layout {
        flex-direction: column;
    }
    
    .parrot-seo-titles-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
    
    .parrot-seo-titles-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 8px;
        gap: 4px;
    }
    
    .parrot-seo-titles-menu li a {
        padding: 8px 12px;
        border-radius: 4px;
        border-left: none;
    }
    
    .parrot-seo-titles-menu li.is-active a {
        background: var(--parrot-primary);
        color: #fff;
    }
}

/* Schema Content Type Settings */
.parrot-seo-field > label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    opacity: 0.7;
    vertical-align: middle;
}

.parrot-seo-select {
    width: 100%;
    max-width: 300px;
    padding: 10px 14px;
    border: 1px solid var(--parrot-gray-300);
    border-radius: var(--parrot-radius);
    background: #fff;
    font-size: 14px;
    color: var(--parrot-gray-700);
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.parrot-seo-select:focus {
    border-color: var(--parrot-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.parrot-seo-select:hover {
    border-color: var(--parrot-gray-400);
}

/* Radio Group - Blue & White */
.parrot-seo-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.parrot-seo-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1.5px solid rgba(0, 73, 242, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 73, 242, 0.04) 0%, #fff 100%);
    cursor: pointer;
    transition: all 0.2s ease;
}

.parrot-seo-radio:hover {
    border-color: rgba(0, 73, 242, 0.4);
    background: linear-gradient(135deg, rgba(0, 73, 242, 0.08) 0%, #fff 100%);
}

.parrot-seo-radio input[type="radio"] {
    display: none;
}

.parrot-seo-radio-indicator {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0, 73, 242, 0.35);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
    background: #fff;
}

.parrot-seo-radio input[type="radio"]:checked + .parrot-seo-radio-indicator {
    border-color: #0049f2;
}

.parrot-seo-radio input[type="radio"]:checked + .parrot-seo-radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #0049f2;
    border-radius: 50%;
}

.parrot-seo-radio:has(input[type="radio"]:checked) {
    border-color: #0049f2;
    background: linear-gradient(135deg, rgba(0, 73, 242, 0.08) 0%, #fff 100%);
}

.parrot-seo-radio input[type="radio"]:checked ~ .parrot-seo-radio-label {
    color: #0049f2;
    font-weight: 600;
}

.parrot-seo-radio-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--parrot-gray-700);
    white-space: nowrap;
}

.parrot-seo-radio-label .dashicons {
    display: none;
}

/* Schema Field Rows - Two Column Layout */
.parrot-seo-schema-field-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--parrot-gray-100);
}

.parrot-seo-field:last-child .parrot-seo-schema-field-row {
    border-bottom: none;
}

.parrot-seo-schema-field-label {
    flex: 0 0 200px;
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-gray-800);
    padding-top: 10px;
}

.parrot-seo-schema-field-input {
    flex: 1;
    max-width: 500px;
}

.parrot-seo-text-field,
.parrot-seo-select-field {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--parrot-gray-300);
    border-radius: 6px;
    font-size: 14px;
    color: var(--parrot-gray-700);
    background: #fff;
    transition: border-color 0.2s;
}

.parrot-seo-text-field:focus,
.parrot-seo-select-field:focus {
    outline: none;
    border-color: #0049f2;
}

.parrot-seo-text-field::placeholder {
    color: var(--parrot-gray-400);
}

.parrot-seo-field-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--parrot-gray-500);
    line-height: 1.5;
}

.parrot-seo-field-hint strong {
    color: var(--parrot-gray-600);
}

/* Image Upload Field */
.parrot-seo-image-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parrot-seo-image-preview {
    position: relative;
    display: inline-block;
}

.parrot-seo-image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 6px;
    border: 1px solid var(--parrot-gray-200);
}

.parrot-seo-image-preview:empty {
    display: none;
}

.parrot-seo-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.parrot-seo-remove-image:hover {
    background: #dc2626;
}

.parrot-seo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--parrot-gray-100);
    border: 1.5px solid var(--parrot-gray-300);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--parrot-gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-upload-btn:hover {
    background: var(--parrot-gray-200);
    border-color: var(--parrot-gray-400);
}

/* OG Image Upload Component */
.parrot-seo-og-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parrot-seo-og-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed var(--parrot-gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--parrot-gray-600);
    cursor: pointer;
    transition: all 0.2s;
    max-width: 200px;
}

.parrot-seo-og-upload-btn:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--parrot-primary);
    color: var(--parrot-primary);
}

.parrot-seo-og-upload-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.parrot-seo-og-image-preview {
    position: relative;
    display: inline-block;
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.parrot-seo-og-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.parrot-seo-og-image-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.parrot-seo-og-image-preview:hover .parrot-seo-og-image-delete {
    opacity: 1;
}

.parrot-seo-og-image-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.parrot-seo-og-image-delete .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Twitter Card Dropdown */
.parrot-seo-twitter-card-dropdown {
    position: relative;
    max-width: 280px;
    z-index: 100;
}

.parrot-seo-twitter-card-dropdown.is-open {
    z-index: 99999;
}

/* Allow dropdown overflow from parent containers */
.parrot-seo-setting-row:has(.parrot-seo-twitter-card-dropdown),
.parrot-seo-card-body:has(.parrot-seo-twitter-card-dropdown),
.parrot-seo-card:has(.parrot-seo-twitter-card-dropdown),
.parrot-seo-setting-control:has(.parrot-seo-twitter-card-dropdown) {
    overflow: visible;
}

.parrot-seo-twitter-card-dropdown .parrot-seo-custom-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--parrot-gray-300);
    border-radius: 6px;
    font-size: 14px;
    color: var(--parrot-gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-twitter-card-dropdown .parrot-seo-custom-dropdown-trigger:hover {
    border-color: var(--parrot-primary);
}

.parrot-seo-twitter-card-dropdown.is-open .parrot-seo-custom-dropdown-trigger {
    border-color: var(--parrot-primary);
    box-shadow: 0 0 0 2px rgba(0, 73, 242, 0.1);
}

.parrot-seo-twitter-card-dropdown .parrot-seo-custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--parrot-gray-200);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    overflow: hidden;
}

.parrot-seo-twitter-card-dropdown.is-open .parrot-seo-custom-dropdown-menu {
    display: block;
}

.parrot-seo-twitter-card-dropdown.open-up .parrot-seo-custom-dropdown-menu {
    top: auto;
    bottom: calc(100% + 4px);
}

.parrot-seo-twitter-card-dropdown .parrot-seo-custom-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--parrot-gray-100);
    font-size: 14px;
    color: var(--parrot-gray-700);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.parrot-seo-twitter-card-dropdown .parrot-seo-custom-dropdown-item:last-child {
    border-bottom: none;
}

.parrot-seo-twitter-card-dropdown .parrot-seo-custom-dropdown-item:hover {
    background: var(--parrot-gray-50);
}

.parrot-seo-twitter-card-dropdown .parrot-seo-custom-dropdown-item.is-selected {
    background: rgba(0, 73, 242, 0.08);
    color: var(--parrot-primary);
    font-weight: 500;
}

/* Divider */
.parrot-seo-divider {
    border: none;
    border-top: 1px solid var(--parrot-gray-200);
    margin: 24px 0;
}

/* Responsive for Schema Fields */
@media (max-width: 768px) {
    .parrot-seo-schema-field-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .parrot-seo-schema-field-label {
        flex: none;
        padding-top: 0;
    }
    
    .parrot-seo-schema-field-input {
        max-width: 100%;
    }
}

/* Field description */
.parrot-seo-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-gray-800);
    margin-bottom: 4px;
}

.parrot-seo-field-desc {
    font-size: 13px;
    color: var(--parrot-gray-500);
    margin: 0 0 8px 0;
}

.parrot-seo-toggle-desc {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--parrot-gray-500);
    line-height: 1.4;
}

/* When toggle-desc is outside the toggle label (standalone) */
.parrot-seo-field--checkbox > .parrot-seo-toggle-desc {
    margin-left: 56px;
    margin-top: 8px;
}

/* When toggle-desc is inside the toggle-label */
.parrot-seo-toggle-label .parrot-seo-toggle-desc {
    margin-left: 0;
    margin-top: 4px;
    font-weight: normal;
}

/* Two Column Layout */
.parrot-seo-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.parrot-seo-column {
    min-width: 0;
    overflow: visible;
}

.parrot-seo-column .parrot-seo-card {
    overflow: visible;
}

/* Schema Types Body */
.parrot-seo-schema-types-body {
    padding: 16px !important;
    overflow: visible !important;
}

/* Schema Row - Static Style (no hover) */
.parrot-seo-schema-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--parrot-gray-200);
    position: relative;
    z-index: 1;
    overflow: visible;
}

.parrot-seo-schema-row--static {
    transition: none;
}

.parrot-seo-schema-row--static:hover {
    background: #f8fafc;
    border-color: var(--parrot-gray-200);
}

.parrot-seo-schema-row:has(.parrot-seo-custom-dropdown.is-open) {
    z-index: 1000;
}

.parrot-seo-schema-row:last-child {
    margin-bottom: 0;
}

.parrot-seo-schema-row-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-gray-800);
}

.parrot-seo-schema-row-label .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--parrot-primary);
    opacity: 0.8;
}

/* Vertical Setting Row */
.parrot-seo-setting-row--vertical {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.parrot-seo-setting-row--vertical .parrot-seo-setting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.parrot-seo-setting-row--vertical .parrot-seo-setting-header strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-gray-800);
}

.parrot-seo-setting-row--vertical .parrot-seo-setting-desc {
    margin: 0;
    line-height: 1.6;
}

.parrot-seo-setting-row--vertical .parrot-seo-setting-desc code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--parrot-gray-700);
}

/* Custom Dropdown */
.parrot-seo-custom-dropdown {
    position: relative;
    min-width: 200px;
}

.parrot-seo-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid rgba(0, 73, 242, 0.2);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: var(--parrot-gray-700);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.parrot-seo-dropdown-trigger:hover {
    border-color: rgba(0, 73, 242, 0.4);
}

.parrot-seo-custom-dropdown.is-open .parrot-seo-dropdown-trigger {
    border-color: #0049f2;
}

.parrot-seo-dropdown-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parrot-seo-dropdown-arrow {
    display: flex;
    align-items: center;
    color: var(--parrot-gray-400);
    transition: transform 0.2s;
}

.parrot-seo-custom-dropdown.is-open .parrot-seo-dropdown-arrow {
    transform: rotate(180deg);
}

.parrot-seo-dropdown-menu {
    position: absolute;
    right: 0;
    width: 220px;
    max-height: 200px;
    background: #fff;
    border: 1.5px solid rgba(0, 73, 242, 0.25);
    border-radius: 8px;
    z-index: 99999;
    display: none;
    overflow: hidden;
}

/* Default: open downward */
.parrot-seo-custom-dropdown.is-open .parrot-seo-dropdown-menu {
    top: calc(100% + 4px);
    bottom: auto;
}

/* Open upward when flagged */
.parrot-seo-custom-dropdown.is-open.open-up .parrot-seo-dropdown-menu {
    top: auto;
    bottom: calc(100% + 4px);
}

.parrot-seo-custom-dropdown.is-open .parrot-seo-dropdown-menu {
    display: block;
}

.parrot-seo-dropdown-search {
    padding: 10px;
    border-bottom: 1px solid var(--parrot-gray-100);
}

.parrot-seo-dropdown-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--parrot-gray-200);
    border-radius: 6px;
    font-size: 13px;
    background: var(--parrot-gray-50);
    transition: all 0.2s;
}

.parrot-seo-dropdown-search-input:focus {
    outline: none;
    border-color: var(--parrot-primary);
    background: #fff;
}

.parrot-seo-dropdown-options {
    max-height: 160px;
    overflow-y: auto;
    padding: 6px 0;
}

.parrot-seo-dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--parrot-gray-700);
    cursor: pointer;
    transition: background 0.15s;
}

.parrot-seo-dropdown-option:hover {
    background: var(--parrot-gray-50);
}

.parrot-seo-dropdown-option.is-selected {
    background: rgba(59, 130, 246, 0.06);
    color: var(--parrot-primary);
    font-weight: 500;
}

.parrot-seo-dropdown-check {
    display: flex;
    align-items: center;
    color: var(--parrot-primary);
}

.parrot-seo-dropdown-option-label {
    flex: 1;
}

/* Sitemap Settings Layout */
.parrot-seo-sitemap-form .parrot-seo-card-body {
    padding: 0;
}

.parrot-seo-setting-row {
    display: flex;
    padding: 24px 28px;
    border-bottom: 1px solid var(--parrot-gray-200);
    gap: 24px;
}

.parrot-seo-setting-row:last-child {
    border-bottom: none;
}

.parrot-seo-setting-label {
    width: 200px;
    flex-shrink: 0;
}

.parrot-seo-setting-label strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-gray-800);
}

.parrot-seo-setting-control {
    flex: 1;
}

.parrot-seo-setting-desc {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: var(--parrot-gray-500);
    line-height: 1.5;
}

.parrot-seo-sitemap-url-box {
    padding: 16px 28px;
    background: rgba(59, 130, 246, 0.05);
    border-bottom: 1px solid var(--parrot-gray-200);
}

.parrot-seo-sitemap-url-box strong {
    margin-right: 8px;
}

.parrot-seo-sitemap-url-box a {
    color: var(--parrot-primary);
}

.parrot-seo-select-all {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--parrot-primary);
    text-decoration: none;
    font-weight: 500;
}

.parrot-seo-select-all:hover {
    text-decoration: underline;
}

.parrot-seo-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parrot-seo-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--parrot-gray-700);
}

.parrot-seo-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--parrot-primary);
    cursor: pointer;
    border-radius: 4px;
}

.parrot-seo-conditional-fields {
    border-top: 1px solid var(--parrot-gray-200);
    background: rgba(0, 0, 0, 0.01);
}

/* Responsive */
@media (max-width: 1200px) {
    .parrot-seo-two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .parrot-seo-radio-group {
        flex-direction: column;
    }
    
    .parrot-seo-schema-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .parrot-seo-custom-dropdown {
        width: 100%;
    }
    
    .parrot-seo-setting-row {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    
    .parrot-seo-setting-label {
        width: 100%;
    }
    
    .parrot-seo-setting-row--vertical .parrot-seo-setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ======================================
   REDIRECTIONS PAGE STYLES
   ====================================== */

.parrot-seo-redirect-form {
    width: 100%;
}

/* Allow dropdown to overflow from redirections card */
.parrot-seo-redirections .parrot-seo-card,
.parrot-seo-redirections .parrot-seo-card-body {
    overflow: visible !important;
}

.parrot-seo-redirect-fields {
    display: flex !important;
    align-items: flex-end !important;
    gap: 16px;
    flex-wrap: nowrap !important;
}

.parrot-seo-redirect-field {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.parrot-seo-redirect-field--source {
    flex: 1 1 auto !important;
    min-width: 180px;
    max-width: 340px;
}

.parrot-seo-redirect-field--target {
    flex: 1 1 auto !important;
    min-width: 180px;
    max-width: 500px;
}

.parrot-seo-redirect-field label {
    display: block;
    font-weight: 600;
    color: var(--parrot-gray-700);
    margin-bottom: 8px;
    font-size: 13px;
}

.parrot-seo-redirect-field input[type="text"],
.parrot-seo-redirect-field input[type="url"],
.parrot-seo-redirect-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--parrot-gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.parrot-seo-redirect-field input:focus,
.parrot-seo-redirect-field select:focus {
    border-color: var(--parrot-primary);
    box-shadow: 0 0 0 3px rgba(0, 73, 242, 0.08);
    outline: none;
}

.parrot-seo-redirect-field input::placeholder {
    color: var(--parrot-gray-400);
}

.parrot-seo-redirect-input-wrapper {
    display: flex;
    align-items: stretch;
    height: 44px;
}

.parrot-seo-redirect-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--parrot-gray-50);
    border: 1px solid var(--parrot-gray-300);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 13px;
    color: var(--parrot-gray-500);
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parrot-seo-redirect-input-wrapper input {
    flex: 1;
    border-radius: 0 8px 8px 0 !important;
    min-width: 80px;
}

.parrot-seo-redirect-field--type {
    flex: 0 0 180px !important;
    min-width: 180px !important;
    max-width: 180px;
    position: relative;
    z-index: 100;
    align-self: flex-end;
    margin-bottom: 25px;
}

.parrot-seo-redirect-field--type select {
    cursor: pointer;
}

.parrot-seo-redirect-field--submit {
    flex: 0 0 auto !important;
    min-width: auto;
    flex-shrink: 0 !important;
    align-self: flex-end;
    margin-bottom: 25px;
    margin-left: 8px;
}

.parrot-seo-redirect-field--submit .parrot-seo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 20px;
    white-space: nowrap;
}

.parrot-seo-redirect-field--submit .parrot-seo-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.parrot-seo-redirect-field .parrot-seo-field-help {
    margin-top: 8px;
    font-size: 12px;
    color: var(--parrot-gray-500);
    line-height: 1.4;
}

/* Redirections Table */
.parrot-seo-redirections-table-wrapper {
    overflow-x: auto;
}

.parrot-seo-redirections-table {
    width: 100%;
    border-collapse: collapse;
}

.parrot-seo-redirections-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--parrot-gray-50);
    border-bottom: 2px solid var(--parrot-gray-200);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--parrot-gray-600);
}

.parrot-seo-redirections-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--parrot-gray-100);
    vertical-align: middle;
}

.parrot-seo-redirections-table tbody tr:hover {
    background: var(--parrot-gray-50);
}

.parrot-seo-redirect-from code {
    background: var(--parrot-gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
}

.parrot-seo-redirect-to a {
    color: var(--parrot-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    word-break: break-all;
}

.parrot-seo-redirect-to a:hover {
    text-decoration: underline;
}

.parrot-seo-redirect-to .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.parrot-seo-redirect-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.parrot-seo-redirect-type--301 {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.parrot-seo-redirect-type--302,
.parrot-seo-redirect-type--307 {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.parrot-seo-redirect-type--410 {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Redirect Type Custom Dropdown */
.parrot-seo-redirect-type-dropdown {
    position: relative;
    width: 100%;
}

.parrot-seo-redirect-type-dropdown .parrot-seo-custom-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--parrot-gray-300);
    border-radius: 8px;
    font-size: 14px;
    color: var(--parrot-gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-redirect-type-dropdown .parrot-seo-custom-dropdown-trigger:hover {
    border-color: var(--parrot-primary);
}

.parrot-seo-redirect-type-dropdown.is-open .parrot-seo-custom-dropdown-trigger {
    border-color: var(--parrot-primary);
    box-shadow: 0 0 0 3px rgba(0, 73, 242, 0.08);
}

.parrot-seo-redirect-type-dropdown .parrot-seo-custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--parrot-gray-200);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 999999;
    overflow: hidden;
}

.parrot-seo-redirect-type-dropdown.is-open .parrot-seo-custom-dropdown-menu {
    display: block;
}

.parrot-seo-redirect-type-dropdown.open-up .parrot-seo-custom-dropdown-menu {
    top: auto;
    bottom: calc(100% + 4px);
}

.parrot-seo-redirect-type-dropdown .parrot-seo-custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--parrot-gray-100);
    font-size: 14px;
    color: var(--parrot-gray-700);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.parrot-seo-redirect-type-dropdown .parrot-seo-custom-dropdown-item:last-child {
    border-bottom: none;
}

.parrot-seo-redirect-type-dropdown .parrot-seo-custom-dropdown-item:hover {
    background: var(--parrot-gray-50);
}

.parrot-seo-redirect-type-dropdown .parrot-seo-custom-dropdown-item.is-selected {
    background: rgba(0, 73, 242, 0.06);
}

/* Redirect Badges in Dropdown */
.parrot-seo-redirect-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.parrot-seo-redirect-badge--301 {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.parrot-seo-redirect-badge--302 {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.parrot-seo-redirect-badge--307 {
    background: rgba(251, 191, 36, 0.12);
    color: #d97706;
}

.parrot-seo-redirect-badge--410 {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* Import Form Styles */
.parrot-seo-import-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.parrot-seo-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.parrot-seo-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px dashed var(--parrot-gray-300);
    border-radius: 6px;
    font-size: 13px;
    color: var(--parrot-gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-file-label:hover {
    border-color: var(--parrot-primary);
    color: var(--parrot-primary);
    background: rgba(0, 73, 242, 0.02);
}


.parrot-seo-redirect-hits {
    font-weight: 600;
    color: var(--parrot-gray-600);
}

.parrot-seo-redirect-actions {
    display: flex;
    gap: 8px;
}

/* Button Icons */
.parrot-seo-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--parrot-gray-300);
    border-radius: 6px;
    background: #fff;
    color: var(--parrot-gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-btn-icon:hover {
    background: var(--parrot-gray-100);
    border-color: var(--parrot-gray-400);
}

.parrot-seo-btn-icon--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.parrot-seo-btn-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Empty State */
.parrot-seo-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--parrot-gray-500);
}

.parrot-seo-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--parrot-gray-300);
}

.parrot-seo-empty-state h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--parrot-gray-700);
}

.parrot-seo-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Import/Export Grid */
.parrot-seo-import-export-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .parrot-seo-import-export-grid {
        grid-template-columns: 1fr;
    }
}

.parrot-seo-import-export-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--parrot-gray-200);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.parrot-seo-import-export-item:hover {
    border-color: var(--parrot-gray-300);
}

.parrot-seo-import-export-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.parrot-seo-import-export-item--export .parrot-seo-import-export-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.parrot-seo-import-export-item--import .parrot-seo-import-export-icon {
    background: rgba(0, 73, 242, 0.1);
    color: var(--parrot-primary);
}

.parrot-seo-import-export-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.parrot-seo-import-export-content {
    flex: 1;
    margin-bottom: 20px;
}

.parrot-seo-import-export-item h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--parrot-gray-800);
}

.parrot-seo-import-export-item p {
    margin: 0;
    font-size: 13px;
    color: var(--parrot-gray-500);
    line-height: 1.5;
}

.parrot-seo-import-export-action {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Action Buttons */
.parrot-seo-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.parrot-seo-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.parrot-seo-action-btn--export {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.parrot-seo-action-btn--export:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}

.parrot-seo-action-btn--import {
    background: #fff;
    color: var(--parrot-primary);
    border: 1.5px dashed var(--parrot-primary);
}

.parrot-seo-action-btn--import:hover {
    background: rgba(0, 73, 242, 0.04);
    border-style: solid;
}

.parrot-seo-action-btn--submit {
    display: none;
    background: linear-gradient(135deg, var(--parrot-primary) 0%, #003fd1 100%);
    color: #fff;
}

.parrot-seo-action-btn--submit:hover {
    background: linear-gradient(135deg, #003fd1 0%, #0035b0 100%);
    color: #fff;
}

.parrot-seo-import-form.has-file .parrot-seo-action-btn--import {
    border-style: solid;
    background: rgba(0, 73, 242, 0.06);
}

.parrot-seo-import-form.has-file .parrot-seo-action-btn--submit {
    display: inline-flex;
}

/* ======================================
   404 MONITOR PAGE STYLES
   ====================================== */

/* Stats Grid */
.parrot-seo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.parrot-seo-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--parrot-gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.parrot-seo-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.parrot-seo-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.parrot-seo-stat-icon--error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.parrot-seo-stat-icon--today {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.parrot-seo-stat-icon--unique {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.parrot-seo-stat-content {
    display: flex;
    flex-direction: column;
}

.parrot-seo-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--parrot-gray-800);
    line-height: 1;
}

.parrot-seo-stat-label {
    font-size: 13px;
    color: var(--parrot-gray-500);
    margin-top: 4px;
}

/* Card Header with Flex */
.parrot-seo-card-header--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.parrot-seo-card-header--flex .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* 404 Table */
.parrot-seo-404-table-wrapper {
    overflow-x: auto;
}

.parrot-seo-404-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid var(--parrot-gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.parrot-seo-404-table th,
.parrot-seo-404-table td {
    width: 16.66%;
    border-right: 1px solid var(--parrot-gray-200);
}

.parrot-seo-404-table th:last-child,
.parrot-seo-404-table td:last-child {
    border-right: none;
}

.parrot-seo-404-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--parrot-gray-50);
    border-bottom: 1px solid var(--parrot-gray-200);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--parrot-gray-600);
}

.parrot-seo-404-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--parrot-gray-100);
    vertical-align: middle;
    word-break: break-word;
}

.parrot-seo-404-table tbody tr:last-child td {
    border-bottom: none;
}

.parrot-seo-404-table tbody tr:hover {
    background: var(--parrot-gray-50);
}

.parrot-seo-404-url code {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
}

/* Center align columns: Hits(2), Referrer(3), User Agent(4), Last Accessed(5), Actions(6) */
.parrot-seo-404-table th:nth-child(2),
.parrot-seo-404-table td:nth-child(2),
.parrot-seo-404-table th:nth-child(3),
.parrot-seo-404-table td:nth-child(3),
.parrot-seo-404-table th:nth-child(4),
.parrot-seo-404-table td:nth-child(4),
.parrot-seo-404-table th:nth-child(5),
.parrot-seo-404-table td:nth-child(5),
.parrot-seo-404-table th:nth-child(6),
.parrot-seo-404-table td:nth-child(6) {
    text-align: center;
}

.parrot-seo-hits-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--parrot-gray-100);
    color: var(--parrot-gray-600);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

.parrot-seo-hits-badge--high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.parrot-seo-404-user-agent {
    text-align: center;
}

/* Clear Logs Button */
.parrot-seo-clear-logs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #dc2626;
    border: 1.5px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.parrot-seo-clear-logs-btn:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: #dc2626;
}

.parrot-seo-clear-logs-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.parrot-seo-404-referrer a {
    color: var(--parrot-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.parrot-seo-404-referrer a:hover {
    text-decoration: underline;
}

.parrot-seo-404-referrer .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.parrot-seo-muted {
    color: var(--parrot-gray-400);
    font-style: italic;
}

/* User Agent Badges */
.parrot-seo-ua-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.parrot-seo-ua-badge--bot {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.parrot-seo-ua-badge--user {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.parrot-seo-404-time {
    white-space: nowrap;
}

.parrot-seo-404-time small {
    display: block;
    margin-top: 2px;
}

.parrot-seo-404-actions {
    text-align: center;
}

.parrot-seo-actions-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.parrot-seo-table-note {
    margin: 16px 0 0;
    padding: 12px;
    background: var(--parrot-gray-50);
    border-radius: 6px;
    font-size: 13px;
    color: var(--parrot-gray-600);
    text-align: center;
}

/* Setting Actions */
.parrot-seo-setting-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--parrot-gray-200);
}

/* Responsive for Redirections */
@media (max-width: 1400px) {
    .parrot-seo-redirect-prefix {
        max-width: 130px;
        font-size: 12px;
    }
    
    .parrot-seo-redirect-field--type {
        flex: 0 0 160px !important;
        min-width: 160px !important;
        max-width: 160px;
    }
}

@media (max-width: 1100px) {
    .parrot-seo-redirect-prefix {
        max-width: 100px;
        font-size: 11px;
    }
    
    .parrot-seo-redirect-field--source {
        min-width: 140px;
        max-width: 280px;
    }
    
    .parrot-seo-redirect-field--target {
        min-width: 140px;
        max-width: none;
    }
    
    .parrot-seo-redirect-field--type {
        flex: 0 0 150px !important;
        min-width: 150px !important;
        max-width: 150px;
    }
    
    .parrot-seo-redirect-field--submit .parrot-seo-btn {
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (max-width: 850px) {
    .parrot-seo-redirect-fields {
        flex-wrap: wrap !important;
    }
    
    .parrot-seo-redirect-field--source,
    .parrot-seo-redirect-field--target {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100%;
    }
    
    .parrot-seo-redirect-field--type {
        flex: 1 1 auto !important;
        min-width: 140px !important;
        max-width: none;
        margin-bottom: 0;
    }
    
    .parrot-seo-redirect-field--submit {
        flex: 0 0 auto !important;
        margin-bottom: 0;
    }
    
    .parrot-seo-redirect-prefix {
        max-width: 140px;
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .parrot-seo-redirect-fields {
        flex-direction: column !important;
        gap: 16px;
    }
    
    .parrot-seo-redirect-field,
    .parrot-seo-redirect-field--source,
    .parrot-seo-redirect-field--target,
    .parrot-seo-redirect-field--type {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .parrot-seo-redirect-field--submit {
        width: 100%;
        margin-bottom: 0 !important;
    }
    
    .parrot-seo-redirect-field--submit .parrot-seo-btn {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .parrot-seo-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .parrot-seo-card-header--flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ======================================
   SEO ANALYZER PAGE STYLES
   ====================================== */

/* Sub-tabs */
.parrot-seo-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--parrot-gray-100);
    border-radius: 12px;
    width: fit-content;
}

.parrot-seo-sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--parrot-gray-600);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.parrot-seo-sub-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--parrot-gray-800);
}

.parrot-seo-sub-tab.is-active {
    background: #fff;
    color: var(--parrot-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.parrot-seo-sub-tab .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Analyzer Form */
.parrot-seo-analyzer-form {
    display: flex;
    gap: 16px;
    align-items: center;
}

.parrot-seo-analyzer-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    background: #fff;
    border: 1px solid var(--parrot-gray-300);
    border-radius: 8px;
    padding: 0 16px;
    transition: all 0.2s;
}

.parrot-seo-analyzer-input-wrapper:focus-within {
    border-color: var(--parrot-primary);
    box-shadow: 0 0 0 3px rgba(0, 73, 242, 0.08);
}

.parrot-seo-analyzer-input-wrapper .dashicons {
    color: var(--parrot-gray-400);
    margin-right: 12px;
}

.parrot-seo-analyzer-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    height: 48px;
    font-size: 15px;
    color: var(--parrot-gray-800);
    outline: none;
}

.parrot-seo-analyzer-input-wrapper input::placeholder {
    color: var(--parrot-gray-400);
}

.parrot-seo-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--parrot-primary) 0%, #003fd1 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.parrot-seo-btn--primary:hover {
    background: linear-gradient(135deg, #003fd1 0%, #0035b0 100%);
    color: #fff;
}

.parrot-seo-btn--primary .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Analysis Loading */
.parrot-seo-analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.parrot-seo-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--parrot-gray-200);
    border-top-color: var(--parrot-primary);
    border-radius: 50%;
    animation: parrot-spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.parrot-seo-analysis-loading p {
    color: var(--parrot-gray-600);
    font-size: 15px;
    margin: 0;
}

/* Score Overview */
.parrot-seo-score-overview {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--parrot-gray-200);
    margin-bottom: 24px;
}

.parrot-seo-score-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.parrot-seo-score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 4px solid #22c55e;
}

.parrot-seo-score-value {
    font-size: 48px;
    font-weight: 700;
    color: #22c55e;
    line-height: 1;
}

.parrot-seo-score-label {
    font-size: 12px;
    color: var(--parrot-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.parrot-seo-score-breakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.parrot-seo-score-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.parrot-seo-score-item-label {
    width: 120px;
    font-size: 14px;
    font-weight: 500;
    color: var(--parrot-gray-700);
}

.parrot-seo-score-item-bar {
    flex: 1;
    height: 12px;
    background: var(--parrot-gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.parrot-seo-score-item-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 6px;
    transition: width 1s ease-out, background-color 0.3s ease;
}

/* Green shades for score bars based on score value */
.parrot-seo-score-item-fill.score-low {
    background: #86efac; /* Light green for 0-50 */
}

.parrot-seo-score-item-fill.score-medium {
    background: #22c55e; /* Medium green for 51-75 */
}

.parrot-seo-score-item-fill.score-high {
    background: #23c45f; /* Dark green for 76-100 */
}

/* URL Display styling */
.parrot-seo-analyzer-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parrot-seo-analyzer-url-display .dashicons {
    color: #6b7280;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.parrot-seo-detected-url {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

.parrot-seo-score-item-value {
    width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-gray-800);
}

/* Analysis Sections */
.parrot-seo-analysis-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.parrot-seo-analysis-section {
    background: #fff;
    border: 1px solid var(--parrot-gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.parrot-seo-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--parrot-gray-50);
    border-bottom: 1px solid var(--parrot-gray-200);
}

.parrot-seo-section-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--parrot-primary);
}

.parrot-seo-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--parrot-gray-800);
}

.parrot-seo-section-content {
    display: flex;
    flex-direction: column;
}

/* Analysis Row */
.parrot-seo-analysis-row {
    display: grid;
    grid-template-columns: 80px 200px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--parrot-gray-100);
    transition: background 0.2s;
}

.parrot-seo-analysis-row:last-child {
    border-bottom: none;
}

.parrot-seo-analysis-row--success {
    background: #fff;
}

.parrot-seo-analysis-row--warning {
    background: #fff;
}

.parrot-seo-analysis-row--error {
    background: rgba(239, 68, 68, 0.04);
}

/* Analysis Icon Column */
.parrot-seo-analysis-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid var(--parrot-gray-100);
}

.parrot-seo-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
}

.parrot-seo-status-icon::before {
    font-family: dashicons;
    font-size: 16px;
}

.parrot-seo-status-icon--success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
}

.parrot-seo-status-icon--success::before {
    content: "\f147";
    color: #22c55e;
}

.parrot-seo-status-icon--warning {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid #f59e0b;
}

.parrot-seo-status-icon--warning::before {
    content: "\f534";
    color: #f59e0b;
}

.parrot-seo-status-icon--error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
}

.parrot-seo-status-icon--error::before {
    content: "\f335";
    color: #ef4444;
}

/* Analysis Metric Column */
.parrot-seo-analysis-metric {
    display: flex;
    align-items: center;
    padding: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--parrot-gray-700);
    border-right: 1px solid var(--parrot-gray-100);
}

/* Analysis Remark Column */
.parrot-seo-analysis-remark {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--parrot-gray-600);
}

.parrot-seo-remark-title {
    font-weight: 600;
    margin-right: 4px;
}

.parrot-seo-remark-title--success {
    color: #22c55e;
}

.parrot-seo-remark-title--warning {
    color: #f59e0b;
}

.parrot-seo-remark-title--error {
    color: #ef4444;
}

/* Detected Values */
.parrot-seo-analysis-remark {
    flex-direction: column;
    align-items: flex-start;
}

.parrot-seo-remark-text {
    display: block;
}

.parrot-seo-detected-value {
    margin-top: 12px;
    width: 100%;
}

.parrot-seo-detected-text {
    display: block;
    padding: 10px 14px;
    background: var(--parrot-gray-50);
    border: 1px solid var(--parrot-gray-200);
    border-radius: 6px;
    font-size: 13px;
    color: var(--parrot-gray-700);
    font-style: italic;
    line-height: 1.5;
    max-width: 100%;
    word-break: break-word;
}

.parrot-seo-detected-url {
    display: inline-block;
    padding: 6px 10px;
    background: rgba(0, 73, 242, 0.06);
    border: 1px solid rgba(0, 73, 242, 0.15);
    border-radius: 4px;
    font-size: 12px;
    color: var(--parrot-primary);
    font-family: monospace;
    word-break: break-all;
}

.parrot-seo-detected-code {
    display: block;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(74, 222, 128, 0.12) 100%);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

.parrot-seo-char-count {
    font-size: 12px;
    color: var(--parrot-gray-500);
    font-weight: 500;
}

/* Detected Tags */
.parrot-seo-detected-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.parrot-seo-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.parrot-seo-tag--success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.parrot-seo-tag--warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.parrot-seo-tag--error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.parrot-seo-tag--neutral {
    background: var(--parrot-gray-100);
    color: var(--parrot-gray-600);
    border: 1px solid var(--parrot-gray-200);
}

.parrot-seo-tag--schema {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Status-based Tag Styling */
.parrot-seo-tag--block {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
    margin-bottom: 8px;
}

.parrot-seo-tag--block:last-child {
    margin-bottom: 0;
}

/* Pill-shaped Tags (inline) */
.parrot-seo-tag--pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-right: 6px;
    margin-bottom: 6px;
}

.parrot-seo-detected-tags--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* Success (Green) Tags */
.parrot-seo-tag--success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(74, 222, 128, 0.12) 100%);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Warning (Amber) Tags */
.parrot-seo-tag--warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.12) 100%);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Error (Red) Tags */
.parrot-seo-tag--error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(248, 113, 113, 0.12) 100%);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.parrot-seo-tag--block strong {
    margin-left: 8px;
}

.parrot-seo-tag--success strong {
    color: #166534;
}

.parrot-seo-tag--warning strong {
    color: #92400e;
}

.parrot-seo-tag--error strong {
    color: #991b1b;
}

/* Legacy heading tag - now uses success style */
.parrot-seo-tag--heading {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(74, 222, 128, 0.12) 100%);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.parrot-seo-detected-tags .parrot-seo-tag--heading {
    margin-bottom: 8px;
}

.parrot-seo-detected-tags .parrot-seo-tag--heading:last-child {
    margin-bottom: 0;
}

/* Detected Images */
.parrot-seo-detected-images {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.parrot-seo-image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--parrot-gray-50);
    border: 1px solid var(--parrot-gray-200);
    border-radius: 8px;
    max-width: 120px;
}

.parrot-seo-image-preview img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--parrot-gray-200);
}

.parrot-seo-image-placeholder {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid var(--parrot-gray-200);
}

.parrot-seo-image-placeholder .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--parrot-gray-400);
}

.parrot-seo-image-placeholder--jpg {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.parrot-seo-image-placeholder--jpg .dashicons {
    color: #d97706;
}

.parrot-seo-image-placeholder--png {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.parrot-seo-image-placeholder--png .dashicons {
    color: #3b82f6;
}

.parrot-seo-image-placeholder--large {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.parrot-seo-image-placeholder--large .dashicons {
    color: #dc2626;
}

.parrot-seo-image-name {
    font-size: 10px;
    color: var(--parrot-gray-600);
    text-align: center;
    word-break: break-all;
    max-width: 100%;
    line-height: 1.3;
}

.parrot-seo-image-preview--warning {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.parrot-seo-image-preview--error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.parrot-seo-image-info {
    font-size: 10px;
    color: var(--parrot-gray-500);
    text-align: center;
    word-break: break-all;
    max-width: 100%;
}

.parrot-seo-image-size {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.parrot-seo-image-format {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Image URL Tags */
.parrot-seo-tag--image {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.12) 100%);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
}

.parrot-seo-tag--image strong {
    color: #92400e;
    margin-left: 8px;
}

.parrot-seo-tag--image.parrot-seo-tag--error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(248, 113, 113, 0.12) 100%);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.parrot-seo-tag--image.parrot-seo-tag--error strong {
    color: #991b1b;
}

/* Detected Links */
.parrot-seo-detected-links {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.parrot-seo-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--parrot-gray-50);
    border: 1px solid var(--parrot-gray-200);
    border-radius: 6px;
    font-size: 12px;
    color: var(--parrot-gray-600);
    word-break: break-all;
}

.parrot-seo-link-item--internal {
    border-left: 3px solid #22c55e;
}

.parrot-seo-link-item--external {
    border-left: 3px solid #3b82f6;
}

.parrot-seo-link-item--broken {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.parrot-seo-link-item a {
    color: #0049f2;
    text-decoration: none;
}

.parrot-seo-link-item a:hover {
    text-decoration: underline;
}

.parrot-seo-link-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parrot-seo-link-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.parrot-seo-link-item--internal .parrot-seo-link-icon .dashicons {
    color: #22c55e;
}

.parrot-seo-link-item--external .parrot-seo-link-icon .dashicons {
    color: #3b82f6;
}

.parrot-seo-link-item--broken .parrot-seo-link-icon .dashicons {
    color: #ef4444;
}

/* Responsive for Analysis Rows */
@media (max-width: 900px) {
    .parrot-seo-analysis-row {
        grid-template-columns: 60px 150px 1fr;
    }
    
    .parrot-seo-analysis-metric {
        font-size: 12px;
        padding: 16px;
    }
    
    .parrot-seo-analysis-remark {
        font-size: 13px;
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .parrot-seo-analysis-row {
        grid-template-columns: 1fr;
    }
    
    .parrot-seo-analysis-icon {
        border-right: none;
        border-bottom: 1px solid var(--parrot-gray-100);
        padding: 16px;
    }
    
    .parrot-seo-analysis-metric {
        border-right: none;
        border-bottom: 1px solid var(--parrot-gray-100);
        padding: 12px 16px;
    }
    
    .parrot-seo-analysis-remark {
        padding: 16px;
    }
}

/* Competitor Analysis */
.parrot-seo-competitor-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parrot-seo-competitor-inputs {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.parrot-seo-competitor-field {
    flex: 1;
}

.parrot-seo-competitor-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--parrot-gray-700);
}

.parrot-seo-competitor-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--parrot-gray-100);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: var(--parrot-gray-500);
    flex-shrink: 0;
}

/* Comparison Cards */
.parrot-seo-comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.parrot-seo-comparison-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--parrot-gray-200);
    padding: 24px;
    text-align: center;
}

.parrot-seo-comparison-card--yours {
    border-color: var(--parrot-primary);
}

.parrot-seo-comparison-card--competitor {
    border-color: #f59e0b;
}

.parrot-seo-comparison-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.parrot-seo-comparison-card-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.parrot-seo-comparison-card--yours .parrot-seo-comparison-card-header .dashicons {
    color: var(--parrot-primary);
}

.parrot-seo-comparison-card--competitor .parrot-seo-comparison-card-header .dashicons {
    color: #f59e0b;
}

.parrot-seo-comparison-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--parrot-gray-800);
}

.parrot-seo-comparison-score {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 24px;
}

.parrot-seo-comparison-card--yours .parrot-seo-comparison-score {
    color: var(--parrot-primary);
}

.parrot-seo-comparison-card--competitor .parrot-seo-comparison-score {
    color: #f59e0b;
}

/* Comparison Score Section */
.parrot-seo-comparison-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--parrot-gray-200);
    margin-bottom: 24px;
}

.parrot-seo-comparison-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.parrot-seo-comparison-score-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--parrot-gray-700);
}

.parrot-seo-score-circle--small {
    width: 120px;
    height: 120px;
}

.parrot-seo-score-circle--small .parrot-seo-score-value {
    font-size: 36px;
}

.parrot-seo-comparison-vs-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--parrot-gray-400);
    padding: 0 20px;
}

/* Comparison Table */
.parrot-seo-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.parrot-seo-comparison-table th,
.parrot-seo-comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--parrot-gray-200);
}

.parrot-seo-comparison-table th {
    background: var(--parrot-gray-50);
    font-weight: 600;
    font-size: 13px;
    color: var(--parrot-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parrot-seo-comparison-table td {
    font-size: 14px;
    color: var(--parrot-gray-700);
}

.parrot-seo-comparison-table th:nth-child(2),
.parrot-seo-comparison-table th:nth-child(3),
.parrot-seo-comparison-table th:nth-child(4),
.parrot-seo-comparison-table td:nth-child(2),
.parrot-seo-comparison-table td:nth-child(3),
.parrot-seo-comparison-table td:nth-child(4) {
    text-align: center;
}

.parrot-seo-comparison-table .metric-winner {
    color: #22c55e;
    font-weight: 600;
}

.parrot-seo-comparison-table .metric-loser {
    color: #ef4444;
}

.parrot-seo-comparison-table .metric-tie {
    color: var(--parrot-gray-500);
}

.parrot-seo-comparison-result {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.parrot-seo-comparison-result--win {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.parrot-seo-comparison-result--lose {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.parrot-seo-comparison-result--tie {
    background: var(--parrot-gray-100);
    color: var(--parrot-gray-600);
}

/* Recommendations List */
.parrot-seo-recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parrot-seo-recommendations-list li {
    padding: 12px 16px;
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
    margin-bottom: 8px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--parrot-gray-700);
}

.parrot-seo-no-recommendations {
    text-align: center;
    color: #22c55e;
    font-weight: 500;
    padding: 20px;
}

/* Saved Competitors List */
.parrot-seo-competitors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.parrot-seo-competitor-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--parrot-gray-50);
    border-radius: 8px;
}

.parrot-seo-competitor-url {
    flex: 1;
    font-size: 14px;
    color: var(--parrot-gray-700);
}

.parrot-seo-competitor-score {
    font-size: 14px;
    font-weight: 600;
    color: var(--parrot-primary);
}

/* Responsive for Analyzer */
@media (max-width: 768px) {
    .parrot-seo-sub-tabs {
        width: 100%;
    }

    .parrot-seo-sub-tab {
        flex: 1;
        justify-content: center;
    }

    .parrot-seo-analyzer-form {
        flex-direction: column;
    }

    .parrot-seo-analyzer-input-wrapper {
        width: 100%;
    }

    .parrot-seo-btn--primary {
        width: 100%;
        justify-content: center;
    }

    .parrot-seo-score-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .parrot-seo-competitor-inputs {
        flex-direction: column;
    }

    .parrot-seo-competitor-vs {
        align-self: center;
    }

    .parrot-seo-comparison-cards {
        grid-template-columns: 1fr;
    }
}
