/** * HVAC Event Edit Fixes CSS * * Visual feedback styles for comprehensive event field population system */ /* Populated field visual feedback */ .hvac-populated-field { border-left: 3px solid #4CAF50 !important; background-color: #f8fff8 !important; transition: all 0.3s ease; } .hvac-populated-field:focus { border-left-color: #45a049 !important; box-shadow: 0 0 0 1px #45a049 !important; } /* Loading indicator styles */ .hvac-loading-indicator { display: flex; align-items: center; gap: 8px; } .hvac-spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid white; border-radius: 50%; animation: hvac-spin 1s linear infinite; } @keyframes hvac-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Completion notification styles */ .hvac-completion-notification { display: flex; align-items: center; gap: 8px; } .hvac-success-icon { font-weight: bold; font-size: 16px; } /* Enhanced form field styling when populated */ .tribe-community-events .hvac-populated-field, .tribe-events .hvac-populated-field { position: relative; } .tribe-community-events .hvac-populated-field::after, .tribe-events .hvac-populated-field::after { content: "✓"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #4CAF50; font-weight: bold; font-size: 14px; pointer-events: none; } /* Special handling for textareas */ textarea.hvac-populated-field::after { top: 12px; transform: none; } /* Special handling for select fields */ select.hvac-populated-field::after { right: 30px; /* Account for dropdown arrow */ } /* Checkbox and radio button styling */ input[type="checkbox"].hvac-populated-field, input[type="radio"].hvac-populated-field { box-shadow: 0 0 0 2px #4CAF50 !important; } /* TinyMCE editor styling */ .mce-edit-area.hvac-populated-field { border: 2px solid #4CAF50 !important; } /* Featured image preview styling */ .featured-image-preview img, .tribe-image-preview img { border: 2px solid #4CAF50; border-radius: 4px; } /* Venue and organizer field groups */ .tribe-venue-fields .hvac-populated-field, .tribe-organizer-fields .hvac-populated-field { margin-bottom: 5px; } /* Category and tag field styling */ .tribe-events-cat-checkbox input.hvac-populated-field + label, .post-tag-checkbox input.hvac-populated-field + label { background-color: #e8f5e8; border-radius: 3px; padding: 2px 6px; } /* Loading state for form */ .tribe-community-events.hvac-populating { opacity: 0.7; pointer-events: none; transition: opacity 0.3s ease; } /* Success state for entire form */ .tribe-community-events.hvac-population-complete { animation: hvac-population-success 0.5s ease; } @keyframes hvac-population-success { 0% { background-color: transparent; } 50% { background-color: rgba(76, 175, 80, 0.1); } 100% { background-color: transparent; } } /* Mobile responsive adjustments */ @media (max-width: 768px) { .hvac-loading-indicator, .hvac-completion-notification { right: 10px; left: 10px; font-size: 13px; padding: 8px 12px; } .tribe-community-events .hvac-populated-field::after, .tribe-events .hvac-populated-field::after { font-size: 12px; right: 6px; } } /* High contrast mode support */ @media (prefers-contrast: high) { .hvac-populated-field { border-left-width: 4px !important; background-color: #ffffff !important; } } /* Reduced motion support */ @media (prefers-reduced-motion: reduce) { .hvac-populated-field, .hvac-loading-indicator, .hvac-completion-notification, .tribe-community-events.hvac-population-complete { transition: none !important; animation: none !important; } .hvac-spinner { animation: none; border: 2px solid white; } } /* Dark theme support */ @media (prefers-color-scheme: dark) { .hvac-populated-field { background-color: #1a2e1a !important; border-left-color: #66bb6a !important; } .hvac-loading-indicator { background-color: #1976d2 !important; } .hvac-completion-notification { background-color: #388e3c !important; } } /* Print styles */ @media print { .hvac-loading-indicator, .hvac-completion-notification { display: none !important; } .hvac-populated-field { border-left: none !important; background-color: transparent !important; } .hvac-populated-field::after { display: none !important; } }