/** * HVAC AI Assist Modal Styles * * Styling for the AI-powered event population modal interface * * @package HVAC_Community_Events * @since 3.2.0 */ /* Modal Base Styles */ .hvac-ai-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10001; display: none; } .hvac-ai-modal .modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); } .hvac-ai-modal .modal-content { position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); width: 90%; max-width: 800px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; z-index: 10002; } /* Modal Header */ .hvac-ai-modal .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; background: linear-gradient(135deg, #0073aa 0%, #005a87 100%); color: white; } .hvac-ai-modal .modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; } .hvac-ai-modal .modal-header .dashicons { font-size: 20px; } .hvac-ai-modal .modal-close { background: none; border: none; color: rgba(255, 255, 255, 0.8); font-size: 28px; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; } .hvac-ai-modal .modal-close:hover { background: rgba(255, 255, 255, 0.15); color: white; } /* Modal Body */ .hvac-ai-modal .modal-body { flex: 1; overflow-y: auto; padding: 24px; } /* Introduction */ .hvac-ai-modal .ai-intro { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin-bottom: 24px; } .hvac-ai-modal .ai-intro p { margin: 0 0 12px 0; color: #4a5568; font-weight: 500; } .hvac-ai-modal .ai-intro ul { margin: 0; padding-left: 20px; } .hvac-ai-modal .ai-intro li { margin-bottom: 6px; color: #2d3748; font-size: 14px; } /* Input Section */ .hvac-ai-modal .ai-input-section { margin-bottom: 24px; } /* Input Type Tabs */ .hvac-ai-modal .input-type-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid #e5e7eb; } .hvac-ai-modal .tab-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: none; border: none; border-bottom: 3px solid transparent; color: #6b7280; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border-radius: 6px 6px 0 0; } .hvac-ai-modal .tab-btn:hover { background: #f9fafb; color: #374151; } .hvac-ai-modal .tab-btn.active { background: #eff6ff; color: #0073aa; border-bottom-color: #0073aa; } .hvac-ai-modal .tab-btn .dashicons { font-size: 16px; } /* Input Areas */ .hvac-ai-modal .input-tab-content { display: none; } .hvac-ai-modal .input-tab-content.active { display: block; } .hvac-ai-modal .input-tab-content label { display: block; margin-bottom: 8px; color: #374151; font-weight: 500; font-size: 14px; } .hvac-ai-modal .input-tab-content input, .hvac-ai-modal .input-tab-content textarea { width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; resize: vertical; transition: border-color 0.2s ease; box-sizing: border-box; } .hvac-ai-modal .input-tab-content input:focus, .hvac-ai-modal .input-tab-content textarea:focus { outline: none; border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1); } .hvac-ai-modal .input-help { margin: 8px 0 0 0; color: #6b7280; font-size: 12px; font-style: italic; } /* Processing Section */ .hvac-ai-modal .ai-processing { text-align: center; padding: 40px 20px; } .hvac-ai-modal .processing-spinner { margin-bottom: 24px; } .hvac-ai-modal .spinner { width: 48px; height: 48px; border: 4px solid #e5e7eb; border-top: 4px solid #0073aa; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .hvac-ai-modal .processing-status .status-message { color: #374151; font-size: 16px; font-weight: 500; margin-bottom: 20px; } .hvac-ai-modal .progress-steps { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; } .hvac-ai-modal .progress-steps .step { padding: 6px 12px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 20px; color: #6b7280; font-size: 12px; font-weight: 500; transition: all 0.3s ease; } .hvac-ai-modal .progress-steps .step.active { background: #dbeafe; border-color: #0073aa; color: #0073aa; } /* Results Section */ .hvac-ai-modal .ai-results { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; } .hvac-ai-modal .results-header { background: #f0f9ff; padding: 16px 20px; border-bottom: 1px solid #e0f2fe; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; } .hvac-ai-modal .results-header h4 { margin: 0; color: #0c4a6e; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; } .hvac-ai-modal .confidence-indicator { display: flex; align-items: center; gap: 8px; font-size: 14px; } .hvac-ai-modal .confidence-label { color: #374151; font-weight: 500; } .hvac-ai-modal .confidence-bar { width: 80px; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; } .hvac-ai-modal .confidence-fill { height: 100%; background: #ef4444; transition: all 0.3s ease; } .hvac-ai-modal .confidence-bar.confidence-medium .confidence-fill { background: #f59e0b; } .hvac-ai-modal .confidence-bar.confidence-high .confidence-fill { background: #10b981; } .hvac-ai-modal .confidence-percent { color: #374151; font-weight: 600; font-size: 13px; min-width: 35px; } /* Results Content */ .hvac-ai-modal .results-content { padding: 20px; } .hvac-ai-modal .result-fields { display: grid; gap: 12px; margin-bottom: 20px; } .hvac-ai-modal .result-field { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; } .hvac-ai-modal .result-field:last-child { border-bottom: none; } .hvac-ai-modal .result-field label { font-weight: 600; color: #374151; min-width: 80px; font-size: 14px; margin: 0; } .hvac-ai-modal .result-field span { color: #1f2937; font-size: 14px; word-break: break-word; } /* Result Warnings */ .hvac-ai-modal .result-warnings { background: #fef3cd; border: 1px solid #fbbf24; border-radius: 8px; padding: 16px; margin-top: 16px; } .hvac-ai-modal .result-warnings h5 { margin: 0 0 12px 0; color: #92400e; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; } .hvac-ai-modal .result-warnings .warning-list { margin: 0; padding-left: 20px; } .hvac-ai-modal .result-warnings li { color: #92400e; font-size: 13px; margin-bottom: 4px; } /* Modal Footer */ .hvac-ai-modal .modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 20px 24px; border-top: 1px solid #e5e7eb; background: #f9fafb; } .hvac-ai-modal .btn-secondary, .hvac-ai-modal .btn-primary { padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; } .hvac-ai-modal .btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; } .hvac-ai-modal .btn-secondary:hover { background: #e5e7eb; border-color: #9ca3af; } .hvac-ai-modal .btn-primary { background: linear-gradient(135deg, #0073aa 0%, #005a87 100%); color: white; } .hvac-ai-modal .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #005a87 0%, #004269 100%); transform: translateY(-1px); } .hvac-ai-modal .btn-primary:disabled { background: #9ca3af; cursor: not-allowed; transform: none; } .hvac-ai-modal .btn-primary .dashicons, .hvac-ai-modal .btn-secondary .dashicons { font-size: 16px; } /* Responsive Design */ @media (max-width: 768px) { .hvac-ai-modal .modal-content { width: 95%; max-height: 95vh; margin: 0; } .hvac-ai-modal .modal-header { padding: 16px 20px; } .hvac-ai-modal .modal-body { padding: 20px; } .hvac-ai-modal .input-type-tabs { flex-wrap: wrap; gap: 4px; } .hvac-ai-modal .tab-btn { padding: 8px 12px; font-size: 13px; } .hvac-ai-modal .results-header { flex-direction: column; align-items: flex-start; gap: 8px; } .hvac-ai-modal .modal-footer { padding: 16px 20px; flex-direction: column-reverse; } .hvac-ai-modal .btn-secondary, .hvac-ai-modal .btn-primary { width: 100%; justify-content: center; } .hvac-ai-modal .progress-steps { gap: 8px; } .hvac-ai-modal .progress-steps .step { font-size: 11px; padding: 4px 8px; } } @media (max-width: 480px) { .hvac-ai-modal .modal-content { width: 98%; border-radius: 8px; } .hvac-ai-modal .modal-header h3 { font-size: 16px; } .hvac-ai-modal .ai-intro { padding: 12px; } .hvac-ai-modal .tab-btn { padding: 6px 8px; font-size: 12px; } .hvac-ai-modal .tab-btn .dashicons { display: none; } } /* Animation for modal appearance */ @keyframes modalFadeIn { from { opacity: 0; transform: translate(-50%, -60%); } to { opacity: 1; transform: translate(-50%, -50%); } } .hvac-ai-modal.show .modal-content { animation: modalFadeIn 0.3s ease-out; } /* Enhanced AI Assist Button Styles */ #ai-assist-btn:not(.placeholder-btn) { background: linear-gradient(135deg, #0073aa 0%, #005a87 100%); color: white; border: 1px solid #0073aa; position: relative; overflow: hidden; } #ai-assist-btn:not(.placeholder-btn):hover { background: linear-gradient(135deg, #005a87 0%, #004269 100%); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3); } #ai-assist-btn:not(.placeholder-btn):before { content: '🤖'; margin-right: 4px; } /* Success/Error Messages */ .hvac-ai-success { background: #d1fae5; border: 1px solid #10b981; color: #065f46; padding: 12px 16px; border-radius: 6px; margin: 16px 0; font-size: 14px; } .hvac-ai-error { background: #fee2e2; border: 1px solid #ef4444; color: #991b1b; padding: 12px 16px; border-radius: 6px; margin: 16px 0; font-size: 14px; }