/* Theme Preview Wrapper */
.zmon-theme-preview-wrapper {
    background: transparent;
    position: relative;
    /* Removed heavy inheritance resets to allow pwbb-styles.css to work naturally */
}

/* Ensure global box-sizing doesn't break layout */
.zmon-theme-preview-wrapper * {
    box-sizing: border-box;
}

.zmon-preview-wizard-container {
    max-width: 100%;
    margin: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.zmon-preview-wizard-container h2 {
    margin-top: 0;
}

.zmon-preview-wizard-container .zmon-bio-box-tabs {
    border-bottom: 1px solid #eee;
}

.zmon-preview-wizard-container .zmon-bio-box-tab-caption {
    cursor: pointer;
}

/* Tab Visibility Logic - High Specificity */
.zmon-preview-wizard-container .zmon-bio-box-tab-content {
    display: none;
}

.zmon-preview-wizard-container .zmon-bio-box-tab-content.active {
    display: block !important;
}

/* Author Status Table */
.zmon-author-status-container {
    max-width: 800px;
    margin: 20px auto;
}

/* Default state: Bio tab active if no other tab is active */
.zmon-preview-wizard-container .zmon-bio-box-tab-content[data-tab="bio"] {
    display: block;
    /* Fallback */
}

/* If any sibling is active, hide the bio tab (unless it is the active one) */
.zmon-preview-wizard-container .zmon-bio-box-tab-content.active~.zmon-bio-box-tab-content[data-tab="bio"]:not(.active) {
    display: none;
}

/* User Switcher styles replaced by flex toolbar */

/* Popular Posts Styles */
.zmon-popular-posts-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.zmon-popular-posts-column h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zmon-power-posts-list,
.zmon-related-posts-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    min-height: 200px;
    background: #f9f9f9;
}

.zmon-empty-message {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

.zmon-post-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.zmon-post-item:hover {
    background: #f5f5f5;
}

.zmon-post-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.zmon-post-info strong {
    display: block;
    margin-bottom: 5px;
}

.zmon-post-meta {
    font-size: 12px;
    color: #666;
}

/* Popup Styles */
#zmon-social-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

#zmon-social-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    z-index: 100001;
    overflow: hidden;
}

/* Compact Header */
.zmon-popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zmon-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.zmon-popup-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    font-size: 20px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.zmon-popup-close:hover {
    background: #f1f5f9;
    color: #ef4444;
}

/* Compact Content */
.zmon-popup-content {
    padding: 20px;
    max-height: 80vh;
    /* Allow max height but don't force scroll unless really needed on small screens */
    overflow-y: auto;
}

/* Social Fields Layout */
.zmon-social-field-group {
    display: flex;
    flex-direction: row;
    /* Force row */
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    /* Compact spacing */
    width: 100%;
}

.zmon-social-field-group:last-child {
    margin-bottom: 0;
}

/* Link Label Styles */
.zmon-social-link-label {
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    font-size: 14px;
    text-decoration: none;
    cursor: default;
    /* Disabled by default */
    transition: color 0.2s;
}

.zmon-social-link-label.disabled {
    pointer-events: none;
    color: #64748b;
}

.zmon-social-link-label:not(.disabled):hover {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Checkmark */
.zmon-social-check {
    color: #22c55e;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    display: none;
    /* Hidden by default */
}

/* Footer */
.zmon-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f1;
    background: #f8fafc;
    text-align: right;
}

/* Modal Styles */
.zmon-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.zmon-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

.zmon-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.zmon-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zmon-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.zmon-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.zmon-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.zmon-user-switcher label {
    font-weight: bold;
    margin-right: 10px;
}

/* Editable Widget Overrides */
.zmon-editable-widget {
    border: 2px dashed #ccc !important;
    position: relative;
    padding: 35px !important;
    min-height: 450px;
    margin: 40px 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.zmon-editable-widget:hover {
    border-color: #2271b1 !important;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.1);
}

/* Increase text size within the editable widget for better visibility */
.zmon-editable-widget .zmon-bio-box-widget {
    font-size: 1.1em;
    margin: 0 !important;
}

.zmon-editable-widget .zmon-bio-box-tab-caption {
    font-size: 15px !important;
    padding: 22px 0 !important;
}

.zmon-editable-photo {
    position: relative;
    cursor: pointer;
}

.zmon-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lower 50% radial tint effect */
    background: radial-gradient(circle at center bottom, rgba(0, 0, 0, 0.8) 0%, transparent 70%) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    /* Default visibility */
    transition: opacity 0.2s;
    z-index: 10;
    /* Ensure it sits on top of the image */
}

.zmon-editable-photo:hover .zmon-edit-overlay {
    opacity: 1;
}

/* Ultra High Specificity to override theme resets */
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-edit-overlay span.dashicons,
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-edit-overlay .dashicons,
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-reset-title,
.zmon-reset-title {
    cursor: pointer;
    color: #666 !important;
    /* Match manual link base color */
    font-family: dashicons !important;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block;
    vertical-align: middle !important;
    text-align: center !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: all 0.2s;
}

.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-reset-title.zmon-reset-ready,
.zmon-reset-title.zmon-reset-ready {
    color: #dc3232 !important;
    animation: pulse-delete 0.5s ease-in-out infinite;
}

.zmon-reset-title:hover {
    color: #dc3232 !important;
}

.zmon-author-status-container {
    background: #fff;
}

.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-edit-overlay span.dashicons:before,
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-edit-overlay span.dashicons-camera:before,
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-edit-overlay .dashicons:before,
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-edit-overlay .dashicons-camera:before,
.zmon-edit-overlay .dashicons:before,
.zmon-edit-overlay .dashicons-camera:before {
    content: "\f128" !important;
    font-family: dashicons !important;
}

/* Global Dashicons Protection against Theme Reset */
.zmon-theme-preview-wrapper .zmon-bio-box-widget .dashicons {
    font-family: dashicons !important;
}

.zmon-bio-box-text {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    /* Prevent flex overflow */
}

.zmon-editable-name {
    cursor: pointer;
}

.zmon-editable-name:hover {
    border-bottom-color: #2271b1;
    color: #2271b1 !important;
}

.zmon-bio-box-avatar,
.zmon-editable-photo {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    /* Don't shrink */
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f1;
    /* Placeholder bg */
    display: flex;
    justify-content: center;
    align-items: center;
}

.zmon-bio-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    font-size: 0;
    /* Hide alt text if image loads partially */
    color: transparent !important;
    /* Force transparent against theme reset */
}

/* Fallback Icon for Broken Images */
.zmon-bio-box-avatar:before {
    content: "\f110";
    /* dashicons-admin-users (person) */
    font-family: dashicons;
    font-size: 48px;
    color: #c3c4c7;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.zmon-bio-box-avatar img {
    position: relative;
    z-index: 1;
    background: #f0f0f1;
    /* Ensure background matches placeholder if img is transparent */
}

.zmon-editable-desc {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 2px 4px;
    /* Added horizontal padding requested by user */
    min-height: 180px;
    /* Increased from 60px to show more text content */
    max-height: none;
    /* Allow expansion */
    height: auto;
    /* Natural height based on content */
    overflow-y: auto;
    /* Scroll if content exceeds container */
    transition: all 0.2s;
    display: block !important;
    /* Ensure box behavior */
    width: 100% !important;
    /* Take full width of container */
    box-sizing: border-box;
    /* Include padding/border in width */
}

/* Add dashed border to the right column LIST WRAPPER only */
.zmon-editable-widget.zmon-tab-popular-active .zmon-manual-posts-list-wrapper {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    margin: -10px;
    /* Counteract padding */
    margin-bottom: 10px;
    /* Space for legend below */
    position: relative;
    transition: all 0.2s;
    background: #fff;
}

.zmon-editable-widget.zmon-tab-popular-active .zmon-manual-posts-list-wrapper:hover {
    border-color: #2271b1 !important;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.1);
    z-index: 10;
}

/* Ensure vertical alignment of rows in both columns */
.zmon-bio-box-popular-posts ul {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; REMOVED to prevent spreading */
    /* height: 100%; REMOVED to prevent spreading */
    gap: 0;
    /* Remove gap, rely on border-bottom */
    margin: 0;
    padding: 0;
}

.zmon-bio-box-popular-posts li {
    display: flex;
    /* Flexbox for vertical centering */
    align-items: center;
    min-height: 48px;
    /* Fixed height for consistent alignment */
    height: 48px;
    padding: 0 5px !important;
    /* Consistent padding */
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.zmon-bio-box-popular-posts .zmon-manual-post-slot {
    padding: 0 5px !important;
    /* Override specifics */
}

/* Fix link vertical alignment inside fixed height li */
.zmon-bio-box-popular-posts a {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
}

/* Adjust manual link placeholder alignment */
.zmon-manual-link-placeholder {
    line-height: 48px;
}

.zmon-editable-desc:hover,
.zmon-editable-desc:focus {
    border-color: #2271b1;
    background: #f0f6fc;
    outline: none;
}



#zmon-save-wizard-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#zmon-save-message {
    position: fixed;
    bottom: 24px;
    left: 320px;
    font-size: 15px;
    font-weight: 600;
    color: #46b450;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#zmon-save-message.show {
    opacity: 1;
}


/* Navigation Container */
.zmon-pwbb-navigation-container {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.zmon-pwbb-navigation-container .zmon-bio-box-widget {
    flex: 1;
}

/* Preview Toolbar */
.zmon-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.zmon-toolbar-group-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.zmon-user-switcher,
.zmon-toolbar-credits {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

.zmon-user-switcher label {
    margin-right: 10px;
    font-weight: 600;
}

.zmon-toolbar-credits label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.zmon-toolbar-actions {
    margin-left: auto;
}

/* Next Tab Arrow Button - Fixed Position */
/* .zmon-next-tab-arrow style removed - deferred to pwbb-styles.css */

/* .zmon-next-tab-arrow:hover removed - deferred to pwbb-styles.css */

.zmon-next-tab-arrow .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: block;
    /* Ensure centering */
    margin: 0;
    /* Override default dashicon margins if any */
}

/* Enable clickable tabs for preview navigation */
.zmon-preview-wizard-container .zmon-bio-box-tab-caption {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 20;
    transition: all 0.2s ease;
    border: none;
    /* Reset */
    background: none;
    /* Reset */
}

.zmon-preview-wizard-container .zmon-bio-box-tab-caption:hover {
    opacity: 0.8;
}

.zmon-preview-wizard-container .zmon-bio-box-tab-caption.selected {
    cursor: default !important;
    opacity: 1;
}


/* Icons removed (Using pwbb-styles.css) */

#zmon-save-message {

    font-weight: bold;
    color: #007cba;
}

/* Widget layout styles removed (Using pwbb-styles.css) */

/* Manual Link Actions (Handled by pwbb-styles.css) */
/* Spin Animations for Dashicons (Wizard Specific) */
/* Spin animation for shuffle */
.dashicons-update-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Manual Link Popup */
#zmon-manual-link-popup .zmon-manual-link-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

#zmon-manual-link-popup input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#zmon-manual-link-popup input[type="url"]:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

#zmon-title-preview {
    padding: 12px;
    background: #f0f8ff;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
}

#zmon-title-preview label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 4px;
}

#zmon-fetched-title {
    font-weight: 600;
    color: #2271b1;
    margin-top: 4px;
}

/* Loading Spinner */
.zmon-loading-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 4px;
    color: #856404;
}

.zmon-loading-spinner .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error Message */
.zmon-error-message {
    padding: 12px;
    background: #f8d7da;
    border-left: 3px solid #dc3232;
    border-radius: 4px;
    color: #721c24;
    font-size: 13px;
}

/* Tint Animations */
.zmon-manual-post-slot.zmon-tint-success {
    background-color: #d4edda;
    animation: tint-fade-success 1.5s ease-out forwards;
}

.zmon-manual-post-slot.zmon-tint-delete {
    background-color: #f8d7da;
    animation: tint-fade-delete 1.2s ease-out forwards;
}

@keyframes tint-fade-success {

    0%,
    40% {
        background-color: #d4edda;
    }

    100% {
        background-color: transparent;
    }
}

@keyframes tint-fade-delete {

    0%,
    50% {
        background-color: #f8d7da;
    }

    100% {
        background-color: transparent;
    }
}

/* Mobile Responsive for Manual Links */
@media (max-width: 600px) {
    .zmon-manual-post-slot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .zmon-manual-link-actions {
        opacity: 1;
        margin-left: 0;
    }
}

/* Footer Right Container - Version and Info Icon */
.zmon-bio-box-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.zmon-bio-box-footer-right .zmon-bio-box-version {
    margin-left: 0;
}

/* ========================================
   PINTEREST ICON
   ======================================== */
.zmon-bio-box-icon-pinterest {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' xml:space='preserve'%3E%3Cpath d='M12.35 2.03c-5.5 0-8.38 3.5-8.38 7.38 0 1.88 1 3.75 2.62 4.75.5.25.38 0 .75-1.5 0-.12 0-.25-.12-.38-2.24-2.75-.37-8.13 4.88-8.13 7.62 0 6.12 10.5 1.38 10.5-1 .13-1.88-.62-1.88-1.62v-.5c.5-1.38.88-2.63 1-4 0-2.62-3.88-2.25-3.88 1.25 0 .62.12 1.25.38 1.75 0 0-1.25 5.12-1.5 6-.25 1.5-.12 3 .12 4.38-.12.12 0 .12 0 .12h.12c.88-1.25 1.62-2.5 2.12-3.88.12-.62.75-2.88.75-2.88.62.88 1.75 1.38 2.88 1.38 3.88 0 6.62-3.38 6.62-7.5s-3.48-7.12-7.86-7.12z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' xml:space='preserve'%3E%3Cpath d='M12.35 2.03c-5.5 0-8.38 3.5-8.38 7.38 0 1.88 1 3.75 2.62 4.75.5.25.38 0 .75-1.5 0-.12 0-.25-.12-.38-2.24-2.75-.37-8.13 4.88-8.13 7.62 0 6.12 10.5 1.38 10.5-1 .13-1.88-.62-1.88-1.62v-.5c.5-1.38.88-2.63 1-4 0-2.62-3.88-2.25-3.88 1.25 0 .62.12 1.25.38 1.75 0 0-1.25 5.12-1.5 6-.25 1.5-.12 3 .12 4.38-.12.12 0 .12 0 .12h.12c.88-1.25 1.62-2.5 2.12-3.88.12-.62.75-2.88.75-2.88.62.88 1.75 1.38 2.88 1.38 3.88 0 6.62-3.38 6.62-7.5s-3.48-7.12-7.86-7.12z'/%3E%3C/svg%3E");
    background-color: currentColor;
}

/* ========================================
   INACTIVE/OPAQUE SOCIAL ICONS
   ======================================== */
.zmon-social-link-edit.zmon-icon-inactive {
    opacity: 0.3 !important;
    transition: opacity 0.2s ease;
}

.zmon-social-link-edit.zmon-icon-inactive:hover {
    opacity: 0.6 !important;
}

/* ========================================
   EMPTY BIO DESCRIPTION PLACEHOLDER
   ======================================== */
.zmon-editable-desc:empty:before {
    content: "Click to edit your bio. Share 2-3 sentences about your expertise, experience, and what makes you unique.";
    color: #999;
    font-style: italic;
    opacity: 0.7;
}

.zmon-editable-desc:focus:empty:before {
    content: "";
}

/* Main Footer Layout */
.zmon-bio-box-author-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Enhanced Tooltips & UX */
/* ======================================== */
.zmon-bio-box-avatar.zmon-editable-photo {
    position: relative;
}

.zmon-bio-box-avatar.zmon-editable-photo[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.zmon-next-tab-arrow[title]:hover::after {
    content: attr(title);
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Popular Posts Tab - Layout Improvements */

/* New Header Row Layout */
.zmon-bio-box-header-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end;
    /* Align legend bottom to title baseline if we add one */
}

.zmon-bio-box-header-left,
.zmon-bio-box-header-right {
    flex: 1;
    /* Match 50% split of the grid below */
    min-width: 0;
}

/* Grid Columns Logic */
/* Ensure both columns start at the exact same vertical position */
.zmon-bio-box-posts-grid {
    display: flex;
    gap: 20px;
    /* Ensure no extra padding disrupts alignment */
}

/* Popular Posts Tab - Target Right Half Only */
/* Main widget border remains! */



/* Popular Posts Legend - Styled for Header */
.zmon-bio-box-popular-posts-legend {
    background: #f0f8ff;
    border: 1px solid #d0e8ff;
    border-radius: 6px;
    padding: 10px;
    /* No bottom margin needed in header context */
    font-size: 12px;
}

.zmon-bio-box-popular-posts-legend p {
    margin: 0 0 4px 0;
    padding: 0;
    color: #334155;
    font-family: inherit;
}

.zmon-bio-box-popular-posts-legend p:last-child {
    margin-bottom: 0;
}

.zmon-bio-box-popular-posts-legend strong {
    color: #1e40af;
    font-weight: 700;
}

/* Social Media Tip - Styled like Popular Posts Legend */
.zmon-bio-box-social-tip {
    background: #f0f8ff;
    border: 1px solid #d0e8ff;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    margin-left: 15px;
    margin-right: auto;
    color: #334155;
}

.zmon-bio-box-social-tip strong {
    color: #1e40af;
    font-weight: 700;
}

/* Custom Display Name Select */
.zmon-display-name-select {
    display: none;
    /* Hidden by default, shown by JS */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 24px 2px 8px;
    /* Room for custom arrow */
    font-family: inherit;
    font-size: 24px;
    /* Matches h4 size roughly */
    font-weight: 800;
    /* Matches Name weight */
    color: #333;
    cursor: pointer;
    line-height: inherit;
    margin: 0 0 5px;
    /* Matches h4 margin */
    width: auto;
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    /* Custom Arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 16px;
}

.zmon-display-name-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Ensure wrapper handles layout */
.zmon-bio-box-author-name-wrapper {
    position: relative;
    display: block;
}

/* Custom Display Name Dropdown */
.zmon-bio-box-author-name-wrapper {
    position: relative;
    display: inline-block;
}

.zmon-name-display-row {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Increased gap slightly */
    cursor: pointer;
}

.zmon-name-display-row .zmon-editable-name {
    margin: 0;
    /* Remove default h4 margin */
    display: inline-block;
}

.zmon-name-display-row:hover .zmon-editable-name {
    color: #2271b1 !important;
    /* Force override */
}

.zmon-name-display-row:hover .zmon-name-dropdown-arrow {
    color: #2271b1;
}

.zmon-name-dropdown-arrow {
    color: #50575e !important;
    /* Force color against reset */
    font-family: dashicons !important;
    /* Force font against reset */
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.zmon-name-display-row.open .zmon-name-dropdown-arrow {
    transform: rotate(180deg);
}

.zmon-name-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    /* Matches PWBB2 style */
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Slightly lifted */
    min-width: 250px;
    /* Ensure enough width */
    max-width: 300px;
    margin-top: 5px;
    padding: 0;
}

.zmon-name-dropdown-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zmon-name-dropdown-list li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #3c434a;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    /* Reset margins */
}

.zmon-name-dropdown-list li:last-child {
    border-bottom: none;
}

.zmon-name-dropdown-list li:hover {
    background-color: #f6f7f7;
    color: #2271b1;
}

.zmon-name-dropdown-list li.selected {
    font-weight: 600;
    background-color: #f0f6fc;
}

.zmon-name-dropdown-list li .dashicons-saved {
    color: #46b450;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Author Status Table Styles - Moved from PreviewWizard.php */
.zmon-author-status-container {
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    margin-top: 30px;
}

.zmon-author-status-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.zmon-author-status-table th {
    font-weight: 600;
}

.zmon-author-status-table .dashicons-yes {
    color: #46b450;
}

.zmon-author-status-table .dashicons-no {
    color: #dc3232;
}

.zmon-author-status-table .avatar-32 {
    border-radius: 50%;
}

/* Complete rows - green tint */
.zmon-author-status-table tr.zmon-onboarding-complete {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745 !important;
}

.zmon-author-status-table tr.zmon-onboarding-complete td {
    background-color: #d4edda !important;
}

.zmon-author-status-table tr.zmon-onboarding-complete:hover {
    background-color: #c3e6cb !important;
}

.zmon-author-status-table tr.zmon-onboarding-complete:hover td {
    background-color: #c3e6cb !important;
}

/* Current user being edited - blue highlight */
.zmon-author-status-table tr.zmon-current-user {
    background-color: #e3f2fd !important;
    border-left: 4px solid #2196f3 !important;
}

.zmon-author-status-table tr.zmon-current-user td {
    background-color: #e3f2fd !important;
}

.zmon-author-status-table tr.zmon-current-user:hover {
    background-color: #bbdefb !important;
}

.zmon-author-status-table tr.zmon-current-user:hover td {
    background-color: #bbdefb !important;
}

/* Current user takes priority over complete */
.zmon-author-status-table tr.zmon-current-user.zmon-onboarding-complete {
    background-color: #c8e6c9 !important;
    border-left: 4px solid #1976d2 !important;
}

.zmon-author-status-table tr.zmon-current-user.zmon-onboarding-complete td {
    background-color: #c8e6c9 !important;
}

.zmon-author-status-table tr.zmon-current-user.zmon-onboarding-complete:hover {
    background-color: #a5d6a7 !important;
}

.zmon-author-status-table tr.zmon-current-user.zmon-onboarding-complete:hover td {
    background-color: #a5d6a7 !important;
}

/* Success button state - Green */
.button-primary.zmon-save-success,
.button-primary.zmon-save-success:disabled,
.button-primary.zmon-save-success:hover,
.button-primary.zmon-save-success:focus {
    background-color: #46b450 !important;
    border-color: #46b450 !important;
    color: #fff !important;
    opacity: 1 !important;
    /* Force full opacity even if disabled */
    text-shadow: none !important;
    cursor: default !important;
    box-shadow: none !important;
}

/* Social Input Placeholders - Refined */
.zmon-social-fields input::placeholder {
    font-size: 70%;
    /* 30% smaller */
    opacity: 0.5;
    /* Faded */
    color: #94a3b8;
    /* Explicit light color */
    letter-spacing: 0.5px;
}

/* Animation for the hint text */
#zmon-clear-socials-hint {
    animation: fadeIn 0.2s ease-in;
}

/* Bug Report Popup */
#zmon-bug-report-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
}

#zmon-bug-report-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    z-index: 100001;
    overflow: hidden;
    text-align: left;
}