/* AI FAQ Layout Admin Styles */
.ai-faq-layout-settings {
    max-width: 1200px;
}

.ai-faq-layout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

.ai-faq-settings-panel {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ai-faq-settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ai-faq-settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ai-faq-settings-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
    color: #23282d;
    font-size: 18px;
}

.ai-faq-color-picker {
    width: 100px !important;
}

.wp-picker-container {
    display: inline-block;
}

/* Range Sliders */
input[type="range"] {
    width: 200px;
    margin-right: 10px;
}

.range-value {
    display: inline-block;
    min-width: 50px;
    font-weight: bold;
    color: #0073aa;
}

/* Form Actions */
.ai-faq-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-faq-form-actions .button-primary {
    background: #0073aa;
    border-color: #0073aa;
    text-shadow: none;
}

.ai-faq-form-actions .button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

#ai-faq-preview-btn {
    background: #00a32a;
    border-color: #00a32a;
    color: #fff;
}

#ai-faq-preview-btn:hover {
    background: #008a20;
    border-color: #008a20;
}

#ai-faq-reset-btn {
    background: #dc3232;
    border-color: #dc3232;
    color: #fff;
}

#ai-faq-reset-btn:hover {
    background: #c92c2c;
    border-color: #c92c2c;
}

/* Preview Panel */
.ai-faq-preview-panel {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.ai-faq-preview-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#ai-faq-preview-container {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background: #f9f9f9;
}

/* Preview FAQ Styles */
.ai-faq-preview .ai-faq-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.ai-faq-preview .ai-faq-question {
    background: #f8f9fa;
    padding: 15px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    /* width: 100%; */
    text-align: left;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.ai-faq-preview .ai-faq-question:hover {
    background: #e9ecef;
}

.ai-faq-preview .ai-faq-question h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.ai-faq-preview .ai-faq-icon {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: transform 0.3s ease;
}

/* .ai-faq-preview .ai-faq-item.active .ai-faq-icon {
    transform: rotate(45deg);
} */

.ai-faq-preview .ai-faq-answer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.ai-faq-preview .ai-faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Loading States */
.ai-faq-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ai-faq-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notices */
.ai-faq-notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
}

.ai-faq-notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ai-faq-notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .ai-faq-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-faq-preview-panel {
        position: static;
        max-height: none;
    }
}

@media screen and (max-width: 768px) {
    .ai-faq-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ai-faq-form-actions .button {
        margin-bottom: 10px;
        text-align: center;
    }
    
    input[type="range"] {
        width: 150px;
    }
}

/* Table Enhancements */
.form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
    vertical-align: top;
}

.form-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.form-table td select,
.form-toggletd input[type="text"] {
    min-width: 200px;
}

.form-table .description {
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

/* Custom Checkbox Styles */
.form-table input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* Select Styling */
.form-table select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.form-table select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

