#ai-faq-container .faq-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
}
#ai-faq-container .faq-item h4 {
    margin-top: 0;
}
#ai-faq-container label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
#ai-faq-container .button{
    margin: 10px 0;
}

.ai-faq-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.ai-faq-modal-content {
    background-color: #fff;
    margin: 5% auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

.ai-faq-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.ai-faq-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.ai-faq-modal-close:hover,
.ai-faq-modal-close:focus {
    color: #333;
}

.ai-faq-modal-body {
    padding: 20px;
}

.ai-faq-field {
    margin-bottom: 20px;
}

.ai-faq-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ai-faq-field input,
.ai-faq-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ai-faq-field .description {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.ai-faq-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.ai-faq-modal-footer .button {
    margin-left: 10px;
}

#ai-faq-loading {
    text-align: center;
    padding: 20px;
}

.ai-faq-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: ai-faq-spin 1s linear infinite;
}

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

/* Settings page: rotating refresh icon */
.rotating {
    animation: logrfaq-rotate 1s linear infinite;
}

@keyframes logrfaq-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#refresh-models {
    vertical-align: middle;
    margin-left: 5px;
}

#refresh-models .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

#ai-faq-error {
    margin-top: 10px;
    padding: 10px;
}

/* Toggle Switch Styles */
.ai-faq-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.ai-faq-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-faq-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.ai-faq-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .ai-faq-toggle-slider {
    background-color: #0073aa;
}

input:focus + .ai-faq-toggle-slider {
    box-shadow: 0 0 1px #0073aa;
}

input:checked + .ai-faq-toggle-slider:before {
    transform: translateX(26px);
}

.ai-faq-toggle-slider.round {
    border-radius: 34px;
}

.ai-faq-toggle-slider.round:before {
    border-radius: 50%;
}

.ai-faq-toggle-label-text {
    vertical-align: middle;
}



.ai-faq-dashboard {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.dashboard-widget {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.widget-icon.status-good {
    background: #d4edda;
    color: #155724;
}

.widget-icon.status-error {
    background: #f8d7da;
    color: #721c24;
}

.widget-icon.status-info {
    background: #d1ecf1;
    color: #0c5460;
}

.widget-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.widget-content p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.ai-faq-builder-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}

.info-section {
    margin-bottom: 30px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.ai-faq-builder-info h3 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.ai-faq-builder-info h4 {
    color: #23282d;
    margin-bottom: 8px;
}

.ai-faq-builder-info code {
    background: #fff;
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    /* font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.feature-item .dashicons {
    color: #00a32a;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    margin-bottom: 5px;
    color: #23282d;
}

.feature-item p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.settings-impact {
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.impact-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.impact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.impact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #23282d;
}

.impact-item p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

#api-test-result {
    margin: 15px 0;
}

.button.loading {
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
.faq-settings-notice { 
    padding: 10px;
    background: #fff2cc;
    border: 1px solid #f0c33c;
    border-radius: 4px; 
}
.faq-settings-notice h4 {
    margin-top: 15px;
    margin-bottom: 8px; 
}
.faq-settings-notice ul {
    margin: 8px 0;
    padding-left: 20px; 
}
.faq-settings-notice li {
    margin: 4px 0;
}
