/* Mobile Notice Styles */
.zmon-mobile-pwbb-notice {
    display: none; /* Hidden by default */
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #72aee6;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    border-radius: 4px;
}
.zmon-mobile-notice-content h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #1d2327;
}
.zmon-mobile-notice-content p {
    color: #50575e;
    font-size: 14px;
    margin: 0;
}

/* Responsive Logic */
@media screen and (max-width: 782px) {
    .zmon-desktop-editor-only {
        display: none !important;
    }
    .zmon-mobile-pwbb-notice {
        display: block !important;
    }
    /* Ensure the Author Status table below remains visible and looks good */
    .zmon-author-status-container {
        margin-top: 20px !important;
        overflow-x: auto; /* Allow horizontal scroll */
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile Table Optimizations */
    .zmon-author-status-table {
        min-width: 600px; /* Force minimum width to trigger scroll */
    }
    .zmon-author-status-table th, 
    .zmon-author-status-table td {
        padding: 8px 5px !important; /* Tighter padding */
    }
    /* Adjust Author Column */
    .zmon-author-status-table .column-author {
        width: auto !important; /* Override inline width */
        white-space: nowrap;
        padding-right: 25px !important; /* Visual separation from Title */
    }
    /* Disable clicking rows on mobile (View only) */
    .zmon-clickable-row {
        pointer-events: none !important;
        cursor: default !important;
    }
    /* Hide less important columns if extremely narrow, but scroll is better */
}

.zmon-preview-wizard-container {
    margin: 0;
}
.zmon-theme-preview-wrapper {
    margin-bottom: 0;
}
.zmon-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 15px;
}
.zmon-user-switcher {
    margin-bottom: 0 !important; /* Override previous margin */
}
.zmon-toolbar-credits {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
}
.zmon-credits-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.zmon-credits-toggle input {
    margin-right: 8px;
}
.zmon-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.zmon-toolbar-actions .button {
    min-width: 170px; /* Prevent jumping */
    justify-content: center;
    transition: all 0.2s ease;
}
/* New controls styling */
.zmon-bio-box-controls {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to right */
    padding-right: 15px;
}
/* Ensure Z icon aligns */
.zmon-bio-box-say-thanks {
    display: flex;
    align-items: center;
    justify-content: center;
}
.zmon-bio-box-say-thanks-btn {
    width: 40px !important;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    height: 100%;
}
.zmon-bio-box-say-thanks-icon {
    width: 20px;
    height: 20px;
    color: #64748b; /* Slate-500 neutral */
}
/* Author Title Styles */
.zmon-bio-box-title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligned left to match name */
    gap: 5px;
    margin-bottom: 5px;
}
.zmon-bio-box-title {
    display: inline-block;
    min-width: 30px;
    outline: none; /* Focus handled by browser default or custom if needed */
}
.zmon-bio-box-title:focus {
    border-bottom: 1px dashed #ccc;
}
.zmon-default-title {
    font-style: italic;
    color: #888;
    font-weight: 400; /* Ensure not bold if parent is */
}
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-reset-title,
.zmon-reset-title {
    cursor: pointer;
    color: #d63638 !important;
    font-family: dashicons !important;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: inline-block; /* Removed !important to allow JS hiding */
    vertical-align: middle !important;
    text-align: center !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
}
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-reset-title.zmon-reset-ready,
.zmon-reset-title.zmon-reset-ready {
    color: #dc3232 !important;
    opacity: 1 !important;
    animation: pulse-delete 0.5s ease-in-out infinite;
}
.zmon-reset-title:hover {
    opacity: 1;
    color: #dc3232; /* Ensure hover color matches delete button */
}
.zmon-author-status-container {
    background: #fff;
    padding: 20px;
    /* Modern Card Style matching PWBB2 visual */
    border: 1px solid #c3c4c7;
    border-radius: 8px; /* Softer corners */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Intelligent modern shadow */
    
    margin-top: 0 !important;
    margin-bottom: 0 !important; /* Fixed margin as requested */
    display: block !important;
    clear: both !important;
    float: none !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box;
    z-index: 10;
}
.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: #f0fdf4 !important; /* Softer modern green */
    border-left: 4px solid #4ade80 !important; /* Brighter accent */
    transition: background-color 0.2s ease;
}
.zmon-author-status-table tr.zmon-onboarding-complete td {
    background-color: #f0fdf4 !important;
}
.zmon-author-status-table tr.zmon-onboarding-complete:hover td {
    background-color: #dcfce7 !important;
}

/* Incomplete rows hover - Amber tint (Contrast to Blue/Green) */
.zmon-author-status-table tr:not(.zmon-onboarding-complete):hover td {
    background-color: #fff7ed !important; /* Amber-50 */
    transition: background-color 0.2s ease;
}
/* Add a left border indicator on hover for incomplete rows if they don't have one */
.zmon-author-status-table tr:not(.zmon-onboarding-complete):hover {
    border-left: 4px solid #fb923c !important; /* Orange-400 */
}
/* 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-clickable-row {
    cursor: pointer;
}
.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;
}

/* Generic Tooltip Styles - mirroring .zmon-bio-box-say-thanks-tooltip */
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-tooltip-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-tooltip-popup {
    display: none;
    position: absolute;
    bottom: 100%; /* Above the icon */
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff !important; /* Force white text */
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px; /* Slightly larger to match standard */
    line-height: 1.4 !important;
    white-space: pre-line; /* Allows line breaks */
    z-index: 100;
    width: max-content;
    max-width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px; /* Space between tip and icon */
    font-weight: 500 !important; /* Match ZMonstrs popup weight */
    text-transform: none !important;
    text-align: left;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Arrow */
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-tooltip-popup::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

/* Show on hover */
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-tooltip-container:hover .zmon-tooltip-popup {
    display: block;
}

/* Icon style */
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-tooltip-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #a0a5aa;
    cursor: help;
    display: inline-block;
    line-height: 1;
}
.zmon-theme-preview-wrapper .zmon-bio-box-widget .zmon-tooltip-container:hover .zmon-tooltip-icon {
    color: #2271b1 !important;
}
/* Tooltip Styling */
/* Force Tooltip to Top */
.zmon-next-tab-arrow::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 10px;
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    top: auto !important;
    right: auto !important;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-weight: 500;
}
/* Arrow Tip */
.zmon-next-tab-arrow::before {
    content: '';
    position: absolute;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 4px;
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    top: auto !important;
    right: auto !important;
}
.zmon-next-tab-arrow:hover::after,
.zmon-next-tab-arrow:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
}
