/* AI Search Assistant Plugin Styles */
/* Consistent with AllCarsCuracao Sky color palette and design standards */

/* Clarification Modal */
.ai-clarification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ai-clarification-modal.active {
    opacity: 1;
    visibility: visible;
}

.ai-clarification-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ai-clarification-modal.active .ai-clarification-content {
    transform: scale(1);
}

/* Modal Header */
.ai-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.ai-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ai-modal-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.ai-progress-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.ai-progress-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
}

.ai-progress-step.active {
    background: white;
}

.ai-progress-step.completed {
    background: #10b981;
}

/* Modal Body */
.ai-modal-body {
    padding: 24px;
}

.ai-question {
    margin-bottom: 32px;
}

.ai-question-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.ai-question-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 20px 0;
}

/* Question Options */
.ai-options-grid {
    display: grid;
    gap: 12px;
}

.ai-option {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.ai-option:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1);
}

.ai-option.selected {
    border-color: #0ea5e9;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.ai-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.ai-option-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.ai-option-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.ai-option-description {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    padding-left: 36px;
}

/* Date Range Options */
.ai-date-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-date-info {
    flex: 1;
}

.ai-date-range {
    font-size: 0.75rem;
    color: #0ea5e9;
    font-weight: 500;
}

/* Modal Footer */
.ai-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ai-btn {
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-btn-primary {
    background: #0ea5e9;
    color: white;
}

.ai-btn-primary:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.3);
}

.ai-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ai-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.ai-btn-text {
    background: transparent;
    color: #64748b;
    padding: 8px 12px;
}

.ai-btn-text:hover {
    color: #0ea5e9;
    background: #f0f9ff;
}

/* Loading States */
.ai-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.ai-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0ea5e9;
    border-radius: 50%;
    animation: ai-spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.ai-processing-text {
    color: #64748b;
    font-size: 0.875rem;
}

/* Error States */
.ai-error {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.875rem;
    margin: 16px 0;
}

/* Success States */
.ai-success {
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #16a34a;
    font-size: 0.875rem;
    margin: 16px 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .ai-clarification-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .ai-modal-header,
    .ai-modal-body,
    .ai-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .ai-modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .ai-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ai-option-description {
        padding-left: 0;
        margin-top: 4px;
    }
}

/* Animation for smooth transitions */
.ai-fade-in {
    animation: ai-fadeIn 0.3s ease-out;
}

@keyframes ai-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for modal */
.ai-clarification-content::-webkit-scrollbar {
    width: 6px;
}

.ai-clarification-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.ai-clarification-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ai-clarification-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
