/* Existing Admin Styles */
/* Status Colors */
.fastaill-status-approved {
    color: #46b450;
    font-weight: 600;
}

.fastaill-status-unapprove {
    color: #dc3232;
    font-weight: 600;
}

.fastaill-status-unknown {
    color: #999;
}

/* Exclusive Quick Edit */
/* Only target the AI Summary CPT list table */
.post-type-fastaill_ai_summary .inline-edit-row fieldset {
    float: none !important;
    width: 100% !important;
}

/* Hide default WordPress Quick Edit columns, but NOT our custom one */
.post-type-fastaill_ai_summary .inline-edit-row fieldset.inline-edit-col-left:not(.fastaill-quick-edit-fieldset),
.post-type-fastaill_ai_summary .inline-edit-row fieldset.inline-edit-col-center,
.post-type-fastaill_ai_summary .inline-edit-row fieldset.inline-edit-col-right,
.post-type-fastaill_ai_summary .inline-edit-row .inline-edit-col-bottom {
    display: none !important;
}

/* BUT show our custom fieldset */
.post-type-fastaill_ai_summary .inline-edit-row .fastaill-quick-edit-fieldset {
    display: block !important;
    clear: both;
    margin-bottom: 20px;
}

/* Hide the "Tags" fieldset if it leaks through */
.post-type-fastaill_ai_summary .inline-edit-row fieldset.inline-edit-col-center,
.post-type-fastaill_ai_summary .inline-edit-row fieldset.inline-edit-col-right {
    display: none !important;
}

/* Allow buttons to show */
.post-type-fastaill_ai_summary .inline-edit-row .submit {
    display: block !important;
    clear: both;
    padding-top: 10px;
}

/* Hide specific labels inside just in case targeting fails */
.post-type-fastaill_ai_summary .inline-edit-row label {
    display: block;
}

/* Editor container */
#fastaill-quick-edit-editor-container {
    margin-top: 10px;
}

.approve,
.unapproved .unapprove {
    display: inline-block;
}

/* Column Widths */
.post-type-fastaill_ai_summary .column-linked_post_type {
    width: 10%;
}

.post-type-fastaill_ai_summary .column-date {
    width: 10%;
}

.post-type-fastaill_ai_summary .column-ai_summary_preview {
    width: 55%;
}

.post-type-fastaill_ai_summary .column-title {
    width: 25%;
}

/* Modal Overlay for Bulk Generation Navigation Warning */
.fastaill-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fastaill-modal-dialog {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
}

.fastaill-summary-disabled-tab {
    cursor: not-allowed;
}

.fastaill-modal-content {
    padding: 24px 30px;
}

.fastaill-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.fastaill-modal-ok,
.fastaill-modal-cancel {
    min-width: 100px;
}

.fastaill_model_text {
    font-size: 15px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.fastaill_bulk_logs_wrapper {
    margin-top: 20px;
}

.fastaill_bulk_logs_summary_content {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
}

.fastaill_bulk_no_posts {
    color: #d63638;
    font-weight: 500;
    margin-top: 10px;
}

.fastaill_completion_status_done {
    color: #22bb33;
    font-weight: bold;
    font-size: 14px;
}

.fastaill_cooling_bulk_data {
    color: #006699;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    padding: 6px 12px;
    background: #e6f3ff;
    border-left: 3px solid #006699;
    border-radius: 3px;
}

.fastaill_length_validation_notice {
    color: #d63638;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

.fastaill_approved_notify_user {
    color: #46b450;
    font-weight: 600;
}

.fastaill_unapproved_notify_user {
    color: #dc3232;
    font-weight: 600;
}

.fastaill_unknown_notify_user {
    color: #999;
}

.bulk_progress_warning_notice {
    color: #ff0000;
    font-size: 13px;
    margin-left: 10px;
    display: none;
}

.fastaill-summary-bulk-progress-wrapper {
    display: none;
    margin-top: 20px;
}

.fastaill-summary-progress-bar-wrapper {
    background: #f0f0f1;
    border-radius: 4px;
    height: 20px;
    width: 100%;
    overflow: hidden;
}

.fastaill-summary-progress-bar {
    background: #2271b1;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.ai-summary-progress-text {
    margin-top: 5px;
    font-weight: bold;
}

.no_summary_status_text {
    color: #999;
}

.approved_summary_status_text {
    color: #46b450;
    font-weight: 600;
}

.fastaill-ai-summary-field-wrap {
    max-width: 100%;
    line-height: 1.5;
    overflow: hidden;
}

.fastaill_api_response {
    color: #46b450;
    line-height: 2;
    margin-left: 10px;
}

.fastaill_api_response.error {
    color: #dc3232;
    line-height: 2;
    margin-left: 10px;
}

table.posts #fastaill_ai_summary {
    width: 130px;
}

table.posts .fastaill_ai_summary.column_fastaill_summary {
    text-align: center;
}

#prompt_template,
#title_prompt_template {
    resize: none;
}

.inline-edit-fastaill_ai_summary fieldset label span.input-text-wrap {
    margin-left: 0;
}

.inline-edit-fastaill_ai_summary.inline-editor fieldset label span.title {
    width: fit-content;
}

.fastaill-disabled-row th,
.fastaill-disabled-row td label,
.fastaill-disabled-row td p {
    cursor: not-allowed;
    opacity: 0.4;
}

.nav-tab.fastaill-summary-disabled-tab:focus {
    background: #dcdcde;
    box-shadow: unset;
    outline: unset;
}

.fastaill-summary-settings .nav-tab.nav-tab-active {
    pointer-events: none;
    cursor: default;
    opacity: 0.8;
}