/** * Zoho CRM Admin Interface Styles */ /* Credentials Configuration Section */ .hvac-zoho-credentials { background: #fff; border: 1px solid #c3c4c7; border-radius: 4px; padding: 20px; margin: 20px 0; box-shadow: 0 1px 1px rgba(0,0,0,0.04); } .hvac-zoho-credentials h2 { margin-top: 0; margin-bottom: 15px; color: #1d2327; font-size: 1.3em; } .hvac-zoho-credentials .form-table th { width: 200px; padding: 15px 10px 15px 0; } .hvac-zoho-credentials .form-table td { padding: 15px 10px; } .hvac-zoho-credentials input[type="text"], .hvac-zoho-credentials input[type="password"] { width: 100%; max-width: 500px; } .hvac-zoho-credentials .description { color: #646970; font-size: 13px; margin-top: 5px; } .hvac-zoho-credentials .description a { color: #2271b1; text-decoration: none; } .hvac-zoho-credentials .description a:hover { color: #135e96; text-decoration: underline; } .hvac-zoho-credentials code { background: #f6f7f7; border: 1px solid #c3c4c7; padding: 8px 12px; border-radius: 3px; font-family: Consolas, Monaco, monospace; font-size: 13px; display: inline-block; margin-right: 10px; } /* Main Sections */ .hvac-zoho-status, .hvac-zoho-sync, .hvac-zoho-settings { margin-top: 30px; background: #fff; padding: 20px; border: 1px solid #c3c4c7; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,0.04); } .sync-section { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; } .sync-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; } .sync-section h3 { margin-top: 0; } .sync-status { margin-top: 10px; } .sync-status .notice { margin: 10px 0; } #connection-status { margin-top: 10px; } #connection-status .notice { margin: 10px 0; } .sync-button { margin-top: 10px; } code { background: #f4f4f4; padding: 2px 6px; border-radius: 3px; font-family: 'Courier New', Courier, monospace; } /* Debug Information Styling */ .hvac-zoho-debug-info { margin-top: 15px; padding: 15px; background: #f9f9f9; border: 1px solid #ddd; border-left: 4px solid #dc3232; } .hvac-zoho-debug-info p { margin: 5px 0; } .hvac-zoho-debug-info strong { color: #23282d; } .hvac-zoho-debug-info details { margin-top: 10px; } .hvac-zoho-debug-info details summary { cursor: pointer; font-weight: bold; color: #0073aa; padding: 5px; background: #f0f0f0; border: 1px solid #ddd; border-radius: 3px; margin-bottom: 5px; } .hvac-zoho-debug-info details summary:hover { background: #e9e9e9; } .hvac-zoho-debug-info pre { white-space: pre-wrap; word-wrap: break-word; font-family: monospace; background: #f0f0f0; padding: 15px; max-height: 300px; overflow: auto; border: 1px solid #ddd; border-radius: 3px; font-size: 12px; line-height: 1.4; color: #333; } /* Error Notice Improvements */ .notice-error { padding: 15px; } .notice-error p { margin: 0.5em 0; } .notice-error p:first-child { font-weight: 500; } /* Staging Mode Banner */ .notice-info h3 { margin-top: 0.5em; margin-bottom: 0.5em; color: #0073aa; } /* Status indicators */ .dashicons.dashicons-yes-alt { color: #46b450; } .dashicons.dashicons-warning { color: #ffb900; } .dashicons.dashicons-dismiss { color: #dc3232; } /* Copy button styling */ #copy-redirect-uri { font-size: 11px; height: 22px; line-height: 20px; padding: 0 8px; margin-left: 8px; } /* OAuth button styling */ #start-oauth { background: #00a32a; border-color: #00a32a; color: #fff; } #start-oauth:hover { background: #008a20; border-color: #008a20; } /* Loading states */ .button[disabled] { opacity: 0.6; cursor: not-allowed; } /* Responsive adjustments */ @media (max-width: 782px) { .hvac-zoho-credentials .form-table th, .hvac-zoho-credentials .form-table td { display: block; width: 100%; padding: 10px 0; } .hvac-zoho-credentials .form-table th { padding-bottom: 5px; } .hvac-zoho-credentials input[type="text"], .hvac-zoho-credentials input[type="password"] { max-width: none; } } /* Focus Management Styles - WCAG 2.1 Compliance */ /* Added for keyboard accessibility and screen reader support */ /* Button Focus Styles */ .hvac-button:focus, .hvac-content .button:focus, .hvac-content button:focus, .hvac-content input[type="submit"]:focus, .hvac-email-submit:focus, .hvac-filter-submit:focus, .hvac-certificate-actions button:focus, .hvac-certificate-actions a:focus { outline: 2px solid #005fcc; outline-offset: 2px; box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2); border-radius: 4px; } /* Input Focus Styles */ .hvac-form-input:focus, .hvac-content input[type="text"]:focus, .hvac-content input[type="email"]:focus, .hvac-content input[type="password"]:focus, .hvac-content input[type="url"]:focus, .hvac-content textarea:focus, .hvac-content select:focus, .hvac-email-form-row input:focus, .hvac-email-form-row textarea:focus, .hvac-filter-group input:focus, .hvac-filter-group select:focus { outline: 2px solid #005fcc; outline-offset: 2px; border-color: #005fcc; box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2); } /* Link Focus Styles */ .hvac-content a:focus, .hvac-event-link:focus, .hvac-certificate-link:focus, .hvac-attendee-profile-icon:focus, .hvac-dashboard-nav a:focus, .hvac-email-navigation a:focus { outline: 2px solid #005fcc; outline-offset: 2px; text-decoration: underline; background-color: rgba(0, 95, 204, 0.1); border-radius: 2px; } /* Interactive Element Focus Styles */ .hvac-attendee-checkbox:focus, .hvac-select-all-container input[type="checkbox"]:focus, .hvac-modal-close:focus, .hvac-certificate-table tr:focus { outline: 2px solid #005fcc; outline-offset: 2px; box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2); } /* High Contrast Mode Support */ @media (prefers-contrast: high) { .hvac-content *:focus { outline: 3px solid #000000; outline-offset: 2px; background-color: #ffff00; color: #000000; } } /* Focus-visible polyfill support */ /* Reset focus for mouse users while preserving keyboard accessibility */ .js-focus-visible :focus:not(.focus-visible) { outline: none; box-shadow: none; } /* Ensure focus is visible for keyboard users */ .js-focus-visible .focus-visible { outline: 2px solid #005fcc; outline-offset: 2px; }