/* AI Validation Section — Experimental Feature
   Mirrors .validation-error-section with green colors */
.ai-validation-section {
    margin-top: 16px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--qc-radius-md, 8px);
}

.ai-validation-section .ai-header {
    font-weight: 600;
    color: #166534;
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.ai-validation-section .ai-header i {
    font-size: 14px;
    color: #22c55e;
}

.ai-validation-section .experimental-badge {
    font-size: 9px;
    font-weight: 600;
    background: #22c55e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ai-validation-section .ai-error-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.ai-validation-section .ai-error-list li {
    color: #14532d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.ai-validation-section .ai-error-list li:last-child {
    margin-bottom: 0;
}

/* Loading indicator inside PDM card */
.ai-loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--qc-radius-md, 8px);
}

.ai-loading-indicator .ai-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #bbf7d0;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
}

.ai-loading-indicator span {
    font-size: 12px;
    color: #166534;
    font-weight: 500;
}

@keyframes ai-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Warning state */
.ai-validation-warning {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--qc-radius-md, 8px);
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-validation-warning i {
    color: #22c55e;
}

/* No issues state */
.ai-no-issues {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--qc-radius-md, 8px);
    font-size: 13px;
    color: #166534;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-no-issues i {
    color: #22c55e;
}

/* AI Toggle Switch */
.ai-toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
}

.ai-toggle-switch input {
    display: none;
}

.ai-toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: #d1d5db;
    border-radius: 11px;
    transition: background-color 0.3s ease;
}

.ai-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ai-toggle-switch input:checked+.ai-toggle-slider {
    background-color: #22c55e;
}

.ai-toggle-switch input:checked+.ai-toggle-slider::after {
    transform: translateX(18px);
}

.ai-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.ai-toggle-switch input:checked~.ai-toggle-label {
    color: #374151;
}