.help-tooltip {
    cursor: pointer;
    color: #0073aa;
    font-size: 14px;
    font-weight: bold;
    margin-left: 5px;
}
.help-tooltip:hover {
    color: #005177;
}
.form-table th {
    width: 250px;
    text-align: left;
}
.widefat.striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
#content_list {
    margin-top: 10px;
}
#generate_faqs {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}
#load_more {
    margin-top: 10px;
    background: #2271b1;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}
#progress {
    width: 100%;
    margin-top: 10px;
}
.loading {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}
body.post-type-ai_faq .wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 20px 0;  /* top/bottom 20px, left/right 0 */
}
/* Style the admin list table for FAQs */
body.post-type-ai_faq .wp-list-table {
    background: #fff;
    border: 1px solid #e5e5e5;
    margin-top: 20px;
}

/* Striped rows like in your bulk generator */
body.post-type-ai_faq .wp-list-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Adjust column spacing and header styles */
body.post-type-ai_faq .wp-list-table th,
body.post-type-ai_faq .wp-list-table td {
    padding: 10px;
    vertical-align: middle;
}
body.post-type-ai_faq .wp-list-table th {
    font-weight: bold;
}

/* Optional: style bulk action dropdown and filters if needed */
body.post-type-ai_faq #bulk-action-selector-top,
body.post-type-ai_faq #bulk-action-selector-bottom {
    margin-right: 10px;
}
/* Common container styling for AI FAQ Generator admin pages */
.wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 20px 0;  /* 20px top/bottom, 0 left/right */
}

/* Dashboard Page Specific Styles (applies to page=ai-faq-generator) */
.page-ai-faq-generator .wrap h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Manage FAQs (Custom Post Type: ai_faq) - Ensure container is left aligned */
body.post-type-ai_faq .wrap {
    margin: 20px 0;
}

/* Table styling for admin screens */
.widefat.striped {
    background: #fff;
    border: 1px solid #e5e5e5;
    width: 100%;
}
.widefat.striped thead th {
    padding: 10px;
    text-align: left;
}
.widefat.striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.widefat.striped tbody tr td {
    padding: 10px;
    vertical-align: middle;
}

/* Buttons (used on dashboard and bulk pages) */
.button {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: #2271b1;
    border: 1px solid #1e6a96;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}
.button.button-secondary {
    background-color: #f7f7f7;
    border-color: #cccccc;
    color: #333;
}

/* Update table border color */
table.widefat {
    border: 1px solid #ddd;  /* Light gray border for the table */
}
table.widefat th,
table.widefat td {
    border: 1px solid #ddd;
}

/* Optionally, if you're using metaboxes for your filters, update their border as well */
.postbox {
    border: 0px solid #ddd;
}
/* Base FAQ container */
.ai-faq-container {
    margin-top: 20px;
}

/* Boxed style */
.ai-faq-container.boxed .ai-faq-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* List style */
.ai-faq-container.list .ai-faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
.ai-faq-container {
    margin-top: 20px;
}

/* Accordion */
.ai-faq-container.accordion .ai-faq-item {
    margin-bottom: 10px;
}
.ai-faq-container.accordion .ai-faq-question {
    font-weight: bold;
    cursor: pointer;
    background-color: #f7f7f7;
    padding: 10px;
    border: 1px solid #ccc;
    margin: 0;
}
.ai-faq-container.accordion .ai-faq-answer {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
}

/* List */
.ai-faq-container.list .ai-faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
.ai-faq-container.list .ai-faq-question {
    font-weight: bold;
    margin-bottom: 5px;
}
.ai-faq-container.list .ai-faq-answer {
    margin-left: 0;
}

/* Boxed */
.ai-faq-container.boxed .ai-faq-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.ai-faq-container.boxed .ai-faq-question {
    font-weight: bold;
    margin-bottom: 8px;
}
.help-tooltip {
    cursor: pointer;
    color: #0073aa;
    font-size: 14px;
    font-weight: bold;
    margin-left: 5px;
}
.help-tooltip:hover {
    color: #005177;
}
.form-table th {
    width: 250px;
    text-align: left;
}
.widefat.striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
#content_list {
    margin-top: 10px;
}
#generate_faqs {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}
#load_more {
    margin-top: 10px;
    background: #2271b1;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
}
#progress {
    width: 100%;
    margin-top: 10px;
}
.loading {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}
body.post-type-ai_faq .wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 20px 0;  /* top/bottom 20px, left/right 0 */
}
/* Style the admin list table for FAQs */
body.post-type-ai_faq .wp-list-table {
    background: #fff;
    border: 1px solid #e5e5e5;
    margin-top: 20px;
}

/* Striped rows like in your bulk generator */
body.post-type-ai_faq .wp-list-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

/* Adjust column spacing and header styles */
body.post-type-ai_faq .wp-list-table th,
body.post-type-ai_faq .wp-list-table td {
    padding: 10px;
    vertical-align: middle;
}
body.post-type-ai_faq .wp-list-table th {
    font-weight: bold;
}

/* Optional: style bulk action dropdown and filters if needed */
body.post-type-ai_faq #bulk-action-selector-top,
body.post-type-ai_faq #bulk-action-selector-bottom {
    margin-right: 10px;
}
/* Common container styling for AI FAQ Generator admin pages */
.wrap {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 20px 0;  /* 20px top/bottom, 0 left/right */
}

/* Dashboard Page Specific Styles (applies to page=ai-faq-generator) */
.page-ai-faq-generator .wrap h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Manage FAQs (Custom Post Type: ai_faq) - Ensure container is left aligned */
body.post-type-ai_faq .wrap {
    margin: 20px 0;
}

/* Table styling for admin screens */
.widefat.striped {
    background: #fff;
    border: 1px solid #e5e5e5;
    width: 100%;
}
.widefat.striped thead th {
    padding: 10px;
    text-align: left;
}
.widefat.striped tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.widefat.striped tbody tr td {
    padding: 10px;
    vertical-align: middle;
}

/* Buttons (used on dashboard and bulk pages) */
.button {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: #2271b1;
    border: 1px solid #1e6a96;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}
.button.button-secondary {
    background-color: #f7f7f7;
    border-color: #cccccc;
    color: #333;
}

/* Update table border color */
table.widefat {
    border: 1px solid #ddd;  /* Light gray border for the table */
}
table.widefat th,
table.widefat td {
    border: 1px solid #ddd;
}

/* 🚫 Remove borders ONLY on Bulk Manage page */
body.admin_page_ai-faq-bulk-manage .postbox {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Base FAQ container */
.ai-faq-container {
    margin-top: 20px;
}

/* Boxed style */
.ai-faq-container.boxed .ai-faq-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* List style */
.ai-faq-container.list .ai-faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
.ai-faq-container {
    margin-top: 20px;
}

/* Accordion */
.ai-faq-container.accordion .ai-faq-item {
    margin-bottom: 10px;
}
.ai-faq-container.accordion .ai-faq-question {
    font-weight: bold;
    cursor: pointer;
    background-color: #f7f7f7;
    padding: 10px;
    border: 1px solid #ccc;
    margin: 0;
}
.ai-faq-container.accordion .ai-faq-answer {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
}

/* List */
.ai-faq-container.list .ai-faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
.ai-faq-container.list .ai-faq-question {
    font-weight: bold;
    margin-bottom: 5px;
}
.ai-faq-container.list .ai-faq-answer {
    margin-left: 0;
}

/* Boxed */
.ai-faq-container.boxed .ai-faq-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.ai-faq-container.boxed .ai-faq-question {
    font-weight: bold;
    margin-bottom: 8px;
}
.aifqg-section {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-left: 4px solid #0073aa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.aifqg-section h2 {
    margin-top: 0;
    font-size: 18px;
    color: #0073aa;
    display: flex;
    align-items: center;
    gap: 10px;
}
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* spacing between buttons */
    margin-bottom: 20px;
}

.quick-actions .button {
    flex-shrink: 0; /* don't shrink buttons */
}
/* 🎯 Emulate .aifqg-section on Add New FAQ editor page */
body.post-type-ai_faq #poststuff {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-left: 4px solid #0073aa;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.filter-block {
    flex: 1 1 200px;
    min-width: 200px;
}
  
.aifqg-filter-source-form {
    margin-bottom: 20px;
}

.aifqg-filter-source-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    max-width: 100%;
}

.aifqg-filter-label {
    margin: 0;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.aifqg-filter-input {
    flex-grow: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.aifqg-filter-button {
    padding: 8px 16px;
}
