/* CSS Variables - Matching Free Alberta Landing Page Theme */ :root { /* Light theme */ --md-primary-fg-color: #2196f3; --md-primary-fg-color--light: #42a5f5; --md-primary-fg-color--dark: #1976d2; --md-primary-bg-color: #ffffff; --md-accent-fg-color: #526cfe; --md-accent-bg-color: #ffffff; --md-typeset-color: rgba(0, 0, 0, 0.87); --md-code-bg-color: #f5f5f5; /* App-specific colors */ --page-bg-color: #f5f5f5; --card-bg-color: #ffffff; --card-border-color: #ddd; --text-color: #333; --text-muted-color: #666; --shadow-color: rgba(0, 0, 0, 0.15); --shadow-color-heavy: rgba(0, 0, 0, 0.25); } [data-theme="dark"] { /* Dark theme */ --md-primary-fg-color: #2196f3; --md-primary-fg-color--light: #42a5f5; --md-primary-fg-color--dark: #1976d2; --md-primary-bg-color: #1e1e1e; --md-accent-fg-color: #526cfe; --md-accent-bg-color: #1e1e1e; --md-typeset-color: rgba(255, 255, 255, 0.87); --md-code-bg-color: #2d2d2d; /* App-specific colors */ --page-bg-color: #121212; --card-bg-color: #1e1e1e; --card-border-color: #333; --text-color: rgba(255, 255, 255, 0.87); --text-muted-color: rgba(255, 255, 255, 0.6); --shadow-color: rgba(0, 0, 0, 0.25); --shadow-color-heavy: rgba(0, 0, 0, 0.4); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--page-bg-color); transition: background-color 0.3s ease, color 0.3s ease; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } header { text-align: center; margin-bottom: 40px; padding: 60px 20px; background: linear-gradient(135deg, #2196f3 0%, #42a5f5 50%, #64b5f6 100%); background-size: 200% 200%; border-radius: 12px; box-shadow: 0 8px 24px rgba(33, 150, 243, 0.2); position: relative; overflow: hidden; animation: gradientShift 15s ease infinite; } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .header-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } .gradient-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); animation: overlayPulse 8s ease-in-out infinite; } @keyframes overlayPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } } .particles { position: absolute; width: 100%; height: 100%; overflow: hidden; } .particle { position: absolute; font-size: 24px; animation: float 20s infinite ease-in-out; opacity: 0.4; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); } .particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 18s; animation-delay: 0s; font-size: 28px; } .particle:nth-child(2) { left: 80%; top: 60%; animation-duration: 22s; animation-delay: 2s; font-size: 22px; } .particle:nth-child(3) { left: 30%; top: 70%; animation-duration: 20s; animation-delay: 4s; font-size: 26px; } .particle:nth-child(4) { left: 60%; top: 30%; animation-duration: 19s; animation-delay: 1s; font-size: 24px; } .particle:nth-child(5) { left: 90%; top: 80%; animation-duration: 21s; animation-delay: 3s; font-size: 25px; } .particle:nth-child(6) { left: 50%; top: 10%; animation-duration: 17s; animation-delay: 5s; font-size: 23px; } .particle:nth-child(7) { left: 15%; top: 50%; animation-duration: 23s; animation-delay: 6s; font-size: 27px; } .particle:nth-child(8) { left: 75%; top: 15%; animation-duration: 19s; animation-delay: 2.5s; font-size: 24px; } @keyframes float { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.3; } 25% { transform: translate(30px, -30px) scale(1.2) rotate(15deg); opacity: 0.5; } 50% { transform: translate(-20px, 20px) scale(0.9) rotate(-10deg); opacity: 0.4; } 75% { transform: translate(20px, 30px) scale(1.1) rotate(20deg); opacity: 0.45; } } /* Unified Header Section */ .unified-header-section { position: relative; background: linear-gradient(135deg, #2196f3 0%, #42a5f5 50%, #64b5f6 100%); background-size: 200% 200%; animation: gradientShift 15s ease infinite; border-radius: 12px; padding: 60px 20px 40px; margin-bottom: 40px; box-shadow: 0 8px 24px rgba(33, 150, 243, 0.2); overflow: hidden; text-align: center; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .section-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; } .gradient-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); animation: overlayPulse 8s ease-in-out infinite; } @keyframes overlayPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } } .particles { position: absolute; width: 100%; height: 100%; overflow: hidden; } .particle { position: absolute; font-size: 24px; animation: float 20s infinite ease-in-out; opacity: 0.4; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); } .particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 18s; animation-delay: 0s; font-size: 28px; } .particle:nth-child(2) { left: 80%; top: 60%; animation-duration: 22s; animation-delay: 2s; font-size: 22px; } .particle:nth-child(3) { left: 30%; top: 70%; animation-duration: 20s; animation-delay: 4s; font-size: 26px; } .particle:nth-child(4) { left: 60%; top: 30%; animation-duration: 19s; animation-delay: 1s; font-size: 24px; } .particle:nth-child(5) { left: 90%; top: 80%; animation-duration: 21s; animation-delay: 3s; font-size: 25px; } .particle:nth-child(6) { left: 50%; top: 10%; animation-duration: 17s; animation-delay: 5s; font-size: 23px; } .particle:nth-child(7) { left: 15%; top: 50%; animation-duration: 23s; animation-delay: 6s; font-size: 27px; } .particle:nth-child(8) { left: 75%; top: 15%; animation-duration: 19s; animation-delay: 2.5s; font-size: 24px; } .particle:nth-child(9) { left: 40%; top: 40%; animation-duration: 20s; animation-delay: 4s; font-size: 26px; } .particle:nth-child(10) { left: 65%; top: 65%; animation-duration: 18s; animation-delay: 1.5s; font-size: 25px; } @keyframes float { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.3; } 25% { transform: translate(30px, -30px) scale(1.2) rotate(15deg); opacity: 0.5; } 50% { transform: translate(-20px, 20px) scale(0.9) rotate(-10deg); opacity: 0.4; } 75% { transform: translate(20px, 30px) scale(1.1) rotate(20deg); opacity: 0.45; } } .unified-header-section .header-content { position: relative; z-index: 1; margin-bottom: 50px; } .unified-header-section .header-content h1 { color: #ffffff; margin-bottom: 10px; font-size: 2.5em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); font-weight: 700; } .unified-header-section .header-content p { color: rgba(255, 255, 255, 0.95); font-size: 1.1em; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15); } .brand-link { color: #ffffff; text-decoration: none; position: relative; display: inline-block; transition: all 0.3s ease; } .brand-link::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0; background-color: rgba(255, 255, 255, 0.6); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease; } .brand-link:hover { transform: translateY(-2px); } .brand-link:hover::after { transform: scaleX(1); transform-origin: bottom left; } .fade-in { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; } .fade-in-delay { animation: fadeInUp 0.8s ease-out 0.3s forwards; opacity: 0; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .unified-header-section .map-header { position: relative; z-index: 1; margin-bottom: 30px; } .unified-header-section .map-header h2 { color: #ffffff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); font-size: 2em; font-weight: 600; margin: 0; } .header-content { position: relative; z-index: 1; } header h1 { color: #ffffff; margin-bottom: 10px; font-size: 2.5em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); font-weight: 700; } header p { color: rgba(255, 255, 255, 0.95); font-size: 1.1em; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15); } .brand-link { color: #ffffff; text-decoration: none; position: relative; display: inline-block; transition: all 0.3s ease; } .brand-link::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0; background-color: rgba(255, 255, 255, 0.6); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease; } .brand-link:hover { transform: translateY(-2px); } .brand-link:hover::after { transform: scaleX(1); transform-origin: bottom left; } .fade-in { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; } .fade-in-delay { animation: fadeInUp 0.8s ease-out 0.3s forwards; opacity: 0; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Buttons */ .btn { display: inline-block; padding: 10px 16px; margin: 2px; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 4px; transition: all 0.2s ease-in-out; user-select: none; } .btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .btn-primary { color: white; background-color: #2196f3; border-color: #2196f3; } .btn-primary:hover { background-color: #1976d2; border-color: #1976d2; } .btn-secondary { color: #2196f3; background-color: white; border-color: #2196f3; } .btn-secondary:hover { color: white; background-color: #2196f3; border-color: #2196f3; } .btn-success { color: white; background-color: #28a745; border-color: #28a745; } .btn-success:hover { background-color: #218838; border-color: #1e7e34; } .text-muted { color: #6c757d; font-style: italic; } /* Forms */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; } .form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid var(--card-border-color); border-radius: 4px; font-size: 16px; transition: border-color 0.3s ease, background-color 0.3s ease; background-color: var(--card-bg-color); color: var(--text-color); } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #2196f3; box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1); } .input-group { display: flex; gap: 10px; align-items: flex-start; } .input-group input { flex: 1; } #postal-form { background: var(--card-bg-color); padding: 30px; border-radius: 8px; box-shadow: 0 2px 4px var(--shadow-color); max-width: 600px; margin: 0 auto; transition: background-color 0.3s ease; } /* Buttons */ .btn { padding: 12px 24px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: 600; text-decoration: none; display: inline-block; transition: all 0.3s ease; } .btn-primary { background-color: #2196f3; color: white; } .btn-primary:hover { background-color: #1976d2; transform: translateY(-1px); } .btn-secondary { background-color: #6c757d; color: white; } .btn-secondary:hover { background-color: #5a6268; } .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } /* Loading Spinner */ .loading { text-align: center; padding: 40px; } .spinner { border: 4px solid var(--card-border-color); border-top: 4px solid var(--md-primary-fg-color); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 20px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Error Messages */ .error-message { background-color: #f8d7da; color: #721c24; padding: 15px; border-radius: 4px; margin: 20px 0; border: 1px solid #f5c6cb; } /* Success Messages */ .success-message { background-color: #d4edda; color: #155724; padding: 15px; border-radius: 4px; margin: 20px 0; border: 1px solid #c3e6cb; } /* Representatives Section */ #representatives-section { margin-top: 40px; } .location-info { background: var(--card-bg-color); padding: 20px; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 2px 4px var(--shadow-color); transition: background-color 0.3s ease; } .location-info h3 { color: var(--md-primary-fg-color); margin-bottom: 10px; } .rep-category { margin-bottom: 40px; background: var(--card-bg-color); border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px var(--shadow-color); /* Prevent width changes when inline composer is added */ position: relative; width: 100%; box-sizing: border-box; transition: background-color 0.3s ease; } .rep-category h3 { color: var(--md-primary-fg-color); margin: 0 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--card-border-color); } .rep-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; } .rep-card { border: 1px solid var(--card-border-color); border-radius: 8px; padding: 20px; background: var(--md-code-bg-color); transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease; display: flex; gap: 20px; align-items: flex-start; } .rep-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px var(--shadow-color-heavy); } .rep-photo { flex-shrink: 0; width: 80px; height: 80px; position: relative; } .rep-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #2196f3; } .rep-photo-fallback { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, #2196f3, #42a5f5); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2em; border: 2px solid #2196f3; } .rep-content { flex: 1; min-width: 0; } .rep-card h4 { color: #2196f3; margin-bottom: 10px; font-size: 1.2em; } .rep-card .rep-info { margin-bottom: 15px; } .rep-card .rep-info p { margin: 5px 0; color: #666; } .rep-card .rep-info strong { color: #333; } .rep-card .rep-actions { display: flex; gap: 10px; flex-wrap: wrap; } .call-representative { display: inline-flex; align-items: center; gap: 6px; } .call-representative:hover { background-color: #218838; border-color: #1e7e34; } /* Inline Email Composer Styles */ .inline-email-composer { margin-top: 20px; padding: 20px; background: var(--card-bg-color); border: 2px solid var(--md-primary-fg-color); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease, padding 0.4s ease; /* Ensure it's not affected by any parent grid/flex container */ width: 100% !important; max-width: none !important; min-width: 0 !important; grid-column: 1 / -1; /* Span full width if inside a grid */ display: block !important; box-sizing: border-box !important; } .inline-email-composer.active { max-height: 2000px; opacity: 1; margin-top: 20px; padding: 20px; } .inline-email-composer.closing { max-height: 0; opacity: 0; margin-top: 0; padding: 0 20px; } .inline-email-composer .composer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--card-border-color); } .inline-email-composer .composer-header h3 { color: var(--md-primary-fg-color); margin: 0; font-size: 1.3em; } .inline-email-composer .close-btn { font-size: 24px; font-weight: bold; cursor: pointer; color: var(--text-muted-color); transition: color 0.3s ease; background: none; border: none; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .inline-email-composer .close-btn:hover { color: var(--text-color); } .inline-email-composer .composer-body { animation: slideIn 0.3s ease; } @keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .inline-email-composer .email-preview-details { background-color: #f8f9fa; padding: 15px; border-radius: 6px; border: 1px solid #e9ecef; margin-bottom: 20px; } .inline-email-composer .detail-row { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; } .inline-email-composer .detail-row:last-child { margin-bottom: 0; } .inline-email-composer .detail-row strong { color: #495057; min-width: 90px; flex-shrink: 0; } .inline-email-composer .detail-row span { color: #333; word-break: break-word; } .inline-email-composer .email-preview-content { background-color: white; border: 1px solid #ddd; border-radius: 6px; padding: 20px; max-height: 400px; overflow-y: auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; } /* Wrapper for sanitized email HTML to prevent it affecting parent page */ .inline-email-composer .email-preview-body { max-width: 600px; margin: 0 auto; width: 100%; box-sizing: border-box; } .inline-email-composer .email-preview-content p { margin-bottom: 12px; } .inline-email-composer .email-preview-content p:last-child { margin-bottom: 0; } /* Ensure all inline composer child elements respect full width */ .inline-email-composer .composer-header, .inline-email-composer .composer-body, .inline-email-composer .recipient-info, .inline-email-composer .inline-email-form, .inline-email-composer .form-group, .inline-email-composer .form-actions, .inline-email-composer .email-preview-details, .inline-email-composer .email-preview-content { width: 100%; max-width: none; box-sizing: border-box; } .inline-email-composer .form-group input, .inline-email-composer .form-group textarea { width: 100%; max-width: none; box-sizing: border-box; } /* Modal Styles */ .modal { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; } .modal-content { background-color: var(--card-bg-color); border-radius: 8px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 4px 20px var(--shadow-color-heavy); transition: background-color 0.3s ease; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--card-border-color); } .modal-header h3 { color: var(--md-primary-fg-color); margin: 0; } .close-btn { font-size: 28px; font-weight: bold; cursor: pointer; color: var(--text-muted-color); transition: color 0.3s ease; } .close-btn:hover { color: var(--text-color); } .modal-body { padding: 20px; } .recipient-info { background-color: var(--md-code-bg-color); padding: 10px; border-radius: 4px; margin-bottom: 10px; border-left: 4px solid var(--md-primary-fg-color); } .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; } .char-counter { color: var(--text-muted-color); font-size: 0.9em; text-align: right; display: block; margin-top: 5px; } /* Email Preview Modal Styles */ .preview-modal { max-width: 800px; max-height: 95vh; } .preview-modal .modal-body { max-height: calc(95vh - 120px); overflow-y: auto; } .preview-section { margin-bottom: 24px; } .preview-section h4 { color: #2196f3; margin-bottom: 12px; font-size: 1.1em; font-weight: 600; } .email-details { background-color: #f8f9fa; padding: 16px; border-radius: 6px; border: 1px solid #e9ecef; } .detail-row { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px; } .detail-row:last-child { margin-bottom: 0; } .detail-row strong { color: #495057; min-width: 60px; flex-shrink: 0; } .detail-row span { color: #333; word-break: break-word; } .email-preview-content { background-color: white; border: 1px solid #ddd; border-radius: 6px; padding: 20px; max-height: 400px; overflow-y: auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; } .email-preview-content p { margin-bottom: 12px; } .email-preview-content p:last-child { margin-bottom: 0; } .modal-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; padding-top: 20px; border-top: 1px solid #e9ecef; margin-top: 24px; } .email-details { background-color: #f8f9fa; padding: 16px; border-radius: 6px; border: 1px solid #e9ecef; } .detail-row { margin-bottom: 8px; display: flex; flex-wrap: wrap; } .detail-row:last-child { margin-bottom: 0; } .detail-row strong { min-width: 60px; color: #495057; font-weight: 600; } .detail-row span { color: #212529; word-break: break-word; } .email-preview-content { background-color: #ffffff; border-radius: 6px; min-height: 200px; max-height: 600px; overflow: hidden; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; } /* Style for iframe email previews */ .email-preview-content iframe { display: block; width: 100%; border: 1px solid #dee2e6; border-radius: 6px; background-color: #ffffff; } /* Style for text email previews */ .email-preview-content pre { margin: 0; padding: 20px; background-color: #f8f9fa; border-radius: 6px; border: 1px solid #dee2e6; white-space: pre-wrap; font-family: inherit; overflow-x: auto; } .email-preview-content img { max-width: 100%; height: auto; } .email-preview-content a { color: #007bff; text-decoration: underline; } .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e9ecef; } .btn.btn-outline { background-color: transparent; border: 1px solid #6c757d; color: #6c757d; } .btn.btn-outline:hover { background-color: #6c757d; color: white; } /* Message Display */ .message-display { position: fixed; top: 20px; right: 20px; max-width: 400px; padding: 15px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); z-index: 1001; } .message-display.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .message-display.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } /* Footer */ footer { margin-top: 60px; text-align: center; padding: 30px 20px; color: var(--text-muted-color); border-top: 1px solid var(--card-border-color); background-color: var(--page-bg-color); } footer a { color: var(--md-primary-fg-color); text-decoration: none; } footer a:hover { text-decoration: underline; } .footer-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--card-border-color); } /* Preamble box */ .preamble { text-align: center; padding: 1rem; margin: 1rem 0; background-color: var(--md-code-bg-color); border-radius: 8px; color: var(--text-color); } .footer-actions .btn { font-size: 12px; padding: 6px 12px; opacity: 0.8; transition: opacity 0.2s ease; } .footer-actions .btn:hover { opacity: 1; } /* Responsive Design */ @media (max-width: 768px) { .container { padding: 10px; } header h1 { font-size: 2em; } .input-group { flex-direction: column; } .rep-cards { grid-template-columns: 1fr; } .form-actions { flex-direction: column-reverse; } .modal-content { width: 95%; margin: 10px; } .message-display { left: 10px; right: 10px; max-width: none; } } @media (max-width: 480px) { .rep-card { flex-direction: column; align-items: center; text-align: center; } .rep-photo { margin-bottom: 15px; } .rep-card .rep-actions { flex-direction: column; align-items: center; justify-content: center; width: 100%; } .rep-card .rep-actions .btn { font-size: 14px; padding: 12px 20px; width: 100%; margin: 4px 0; text-align: center; justify-content: center; display: flex; align-items: center; } } /* Map Styles */ .map-header { text-align: center; margin-bottom: 20px; } .map-header h2 { color: #2196f3; margin: 0; } .postal-input-section { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; } .postal-input-section .form-group { margin-bottom: 0; } .postal-input-section .input-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .postal-input-section .input-group input { flex: 1; min-width: 200px; } .map-container { background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); overflow: hidden; margin-bottom: 20px; position: relative; } #main-map { height: 400px; width: 100%; z-index: 1; } /* Map message overlay */ .map-message { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; background: rgba(0, 0, 0, 0.8); color: white; padding: 15px 25px; border-radius: 8px; font-size: 14px; text-align: center; max-width: 300px; } /* Office marker styles */ .office-marker { background: none; border: none; } .office-marker .marker-content { background: white; border: 3px solid #2196f3; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); transition: all 0.2s ease; } .office-marker.federal .marker-content { border-color: #d32f2f; background: #ffebee; } .office-marker.provincial .marker-content { border-color: #1976d2; background: #e3f2fd; } .office-marker.municipal .marker-content { border-color: #388e3c; background: #e8f5e8; } .office-marker:hover .marker-content { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } /* Office popup styles */ .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .office-popup-content { font-family: inherit; max-width: 280px; } .office-popup-content .rep-header { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #eee; margin-bottom: 12px; } .office-popup-content .rep-header.federal { border-bottom-color: #d32f2f; } .office-popup-content .rep-header.provincial { border-bottom-color: #1976d2; } .office-popup-content .rep-header.municipal { border-bottom-color: #388e3c; } .office-popup-content .rep-photo-small { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid #ddd; } .office-popup-content .rep-info h4 { margin: 0 0 4px 0; color: #333; font-size: 16px; font-weight: 600; } .office-popup-content .rep-level { margin: 0 0 2px 0; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; } .office-popup-content .rep-header.federal .rep-level { color: #d32f2f; } .office-popup-content .rep-header.provincial .rep-level { color: #1976d2; } .office-popup-content .rep-header.municipal .rep-level { color: #388e3c; } .office-popup-content .rep-district { margin: 0; font-size: 13px; color: #666; } .office-popup-content .office-details h5 { margin: 0 0 8px 0; color: #333; font-size: 14px; font-weight: 600; } .office-popup-content .office-details p { margin: 0 0 6px 0; font-size: 13px; line-height: 1.4; } .office-popup-content .office-details p:last-child { margin-bottom: 0; } .office-popup-content .office-details a { color: #2196f3; text-decoration: none; } .office-popup-content .office-details a:hover { text-decoration: underline; } .office-popup-content .office-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; } .office-popup-content .btn-small { padding: 6px 12px; font-size: 12px; font-weight: 500; } .office-popup-content .shared-location-note { margin-top: 4px; } .office-popup-content .shared-location-note small { color: #666; font-style: italic; } /* Visit office buttons */ .visit-office { display: inline-flex; flex-direction: column; align-items: center; padding: 8px 12px; margin: 3px; font-size: 13px; line-height: 1.3; min-width: 120px; max-width: 180px; width: 180px; text-align: center; border: 1px solid #2196f3; border-radius: 6px; background: white; color: #2196f3; transition: all 0.2s ease; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; white-space: normal; } .visit-office:hover { background: #2196f3; color: white; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2); } .visit-office .office-location { display: block; margin-top: 2px; font-size: 11px; opacity: 0.8; font-weight: normal; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; line-height: 1.2; white-space: normal; width: 100%; max-width: 100%; overflow: hidden; } .btn-sm { padding: 6px 12px; font-size: 12px; line-height: 1.4; } /* Responsive map styles */ @media (max-width: 768px) { .map-header { flex-direction: column; align-items: stretch; text-align: center; } .map-controls { justify-content: center; } #main-map { height: 300px; } .office-popup-content { max-width: 250px; } .office-popup-content .rep-header { flex-direction: column; text-align: center; gap: 8px; } } @media (max-width: 480px) { #main-map { height: 250px; } .map-controls { flex-direction: column; } .office-popup-content { max-width: 220px; } .visit-office { max-width: calc(100vw - 40px); width: auto; min-width: 140px; text-align: center; justify-content: center; align-items: center; flex-shrink: 1; } .visit-office .office-location { text-align: center; width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } } /* =================================== CAMPAIGNS GRID STYLES =================================== */ #campaigns-section { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--card-border-color); } .campaigns-section-header { text-align: center; margin-bottom: 40px; opacity: 0; animation: fadeIn 0.8s ease forwards; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .campaigns-section-header h2 { color: var(--md-primary-fg-color); font-size: 2em; margin-bottom: 10px; } .campaigns-section-header p { color: var(--text-muted-color); font-size: 1.1em; } #campaigns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin: 0 auto; } .campaign-card { background: var(--card-bg-color); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px var(--shadow-color); transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column; height: 100%; outline: none; opacity: 0; transform: translateY(30px); animation: campaignFadeInUp 0.6s ease forwards; } @keyframes campaignFadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Staggered animation delays for campaign cards */ .campaign-card:nth-child(1) { animation-delay: 0.1s; } .campaign-card:nth-child(2) { animation-delay: 0.2s; } .campaign-card:nth-child(3) { animation-delay: 0.3s; } .campaign-card:nth-child(4) { animation-delay: 0.4s; } .campaign-card:nth-child(5) { animation-delay: 0.5s; } .campaign-card:nth-child(6) { animation-delay: 0.6s; } .campaign-card:nth-child(7) { animation-delay: 0.7s; } .campaign-card:nth-child(8) { animation-delay: 0.8s; } .campaign-card:nth-child(9) { animation-delay: 0.9s; } .campaign-card:nth-child(10) { animation-delay: 1.0s; } .campaign-card:nth-child(11) { animation-delay: 1.1s; } .campaign-card:nth-child(12) { animation-delay: 1.2s; } /* For campaigns beyond 12, they'll still animate but without additional delay */ .campaign-card:hover, .campaign-card:focus { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(33, 150, 243, 0.2); } .campaign-card:focus { outline: 2px solid var(--md-primary-fg-color); outline-offset: 2px; } .campaign-card-image { width: 100%; height: 200px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px; } .campaign-card-image::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: inherit; transform: scale(1.1); animation: imageZoomIn 0.8s ease forwards; animation-delay: inherit; z-index: 0; } @keyframes imageZoomIn { from { transform: scale(1.2); } to { transform: scale(1); } } .campaign-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%); transition: background 0.3s ease; z-index: 1; } .campaign-card:hover .campaign-card-overlay { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%); } .campaign-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; } .campaign-card-title { color: #ffffff; font-size: 1.5em; margin: 0; font-weight: 700; line-height: 1.3; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3); position: relative; z-index: 2; width: 100%; transition: transform 0.3s ease, text-shadow 0.3s ease; } .campaign-card:hover .campaign-card-title { transform: translateY(-2px); text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4); } .campaign-card-description { color: var(--text-muted-color); font-size: 0.95em; line-height: 1.6; margin-bottom: 16px; margin-top: 0; flex: 1; } .campaign-card-levels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .level-badge { background: var(--md-code-bg-color); color: var(--md-primary-fg-color); padding: 4px 10px; border-radius: 12px; font-size: 0.8em; font-weight: 500; } .campaign-card-stats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; } @media (min-width: 768px) { .campaign-card-stats { flex-direction: row; gap: 12px; } .campaign-card-stat { flex: 1; margin-bottom: 0; } } .campaign-card-stat { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--md-code-bg-color); border-radius: 8px; } .stat-icon { font-size: 1.2em; } .stat-value { font-size: 1.3em; font-weight: 700; color: var(--md-primary-fg-color); } .stat-label { font-size: 0.85em; color: var(--text-muted-color); } /* Verified response badge styling */ .campaign-card-stat.verified-response { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); border: 1px solid #81c784; margin: 12px 0; width: 100%; } .campaign-card-stat.verified-response .stat-value { color: #2e7d32; } .campaign-card-stat.verified-response .stat-label { color: #1b5e20; font-weight: 500; } .campaign-card-social-share { display: flex; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: 8px; flex-wrap: wrap; } .share-label { font-size: 0.85em; color: var(--text-muted-color); font-weight: 500; margin-right: 4px; } .share-btn { width: 32px; height: 32px; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; background: var(--md-code-bg-color); color: var(--text-muted-color); padding: 6px; } .share-btn svg { width: 18px; height: 18px; } .share-btn:hover { transform: scale(1.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .share-btn:focus { outline: 2px solid var(--md-primary-fg-color); outline-offset: 2px; } .share-twitter:hover { background: #000000; color: white; } .share-facebook:hover { background: #1877f2; color: white; } .share-linkedin:hover { background: #0077b5; color: white; } .share-reddit:hover { background: #ff4500; color: white; } .share-email:hover { background: #2196f3; color: white; } .share-copy:hover { background: #34a853; color: white; } .share-feedback { position: fixed; bottom: 20px; right: 20px; background: #34a853; color: white; padding: 12px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); font-size: 0.9em; font-weight: 500; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; z-index: 10000; pointer-events: none; } .share-feedback.show { opacity: 1; transform: translateY(0); } .share-feedback.error { background: #dc3545; } .campaign-card-action { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--card-border-color); } .btn-link { color: var(--md-primary-fg-color); font-weight: 600; font-size: 0.95em; text-decoration: none; transition: color 0.2s ease; } .campaign-card:hover .btn-link { color: var(--md-primary-fg-color--dark); } .campaigns-loading, .campaigns-error, .campaigns-empty { text-align: center; padding: 60px 20px; color: var(--text-muted-color); opacity: 0; animation: fadeIn 0.5s ease forwards; } .campaigns-loading .spinner { width: 50px; height: 50px; border: 4px solid var(--card-border-color); border-top: 4px solid var(--md-primary-fg-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; } .campaigns-error { color: #d32f2f; } .campaigns-empty { background: var(--md-code-bg-color); border-radius: 8px; padding: 40px; } /* Responsive campaign grid styles */ @media (max-width: 1024px) { #campaigns-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; } } @media (max-width: 768px) { #campaigns-section { margin-top: 40px; padding-top: 30px; } .campaigns-section-header h2 { font-size: 1.75em; } #campaigns-grid { grid-template-columns: 1fr; gap: 20px; } .campaign-card-image { height: 180px; } } @media (max-width: 480px) { .campaigns-section-header h2 { font-size: 1.5em; } .campaign-card-title { font-size: 1.2em; } .campaign-card-image { height: 160px; } .campaign-card-content { padding: 16px; } } /* QR Code Modal Styles */ .qrcode-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.7); animation: fadeIn 0.3s ease-in-out; } .qrcode-modal.show { display: flex; justify-content: center; align-items: center; } .qrcode-modal-content { background-color: #fefefe; margin: auto; padding: 2rem; border-radius: 12px; max-width: 500px; width: 90%; position: relative; animation: slideDown 0.3s ease-in-out; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); } .qrcode-close { color: #aaa; position: absolute; right: 1.5rem; top: 1rem; font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.2s; } .qrcode-close:hover, .qrcode-close:focus { color: #000; } .qrcode-modal-content h2 { margin-top: 0; margin-bottom: 1.5rem; color: #2c3e50; text-align: center; font-size: 1.5rem; } .qrcode-container { display: flex; justify-content: center; align-items: center; padding: 1.5rem; background: #f8f9fa; border-radius: 8px; margin-bottom: 1rem; } .qrcode-container img { max-width: 100%; height: auto; border-radius: 4px; } .qrcode-instructions { text-align: center; color: #6c757d; margin-bottom: 1.5rem; font-size: 0.95rem; } .qrcode-modal-content .btn { width: 100%; justify-content: center; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @media (max-width: 768px) { .qrcode-modal-content { padding: 1.5rem; max-width: 95%; } .qrcode-modal-content h2 { font-size: 1.25rem; } } /* Expandable Social Share Menu Styles */ .share-buttons-header { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; align-items: flex-start; } /* Primary Share Buttons */ .share-btn-primary { background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3); color: white; padding: 0.75rem 1.25rem; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; } .share-btn-primary:hover { background: rgba(255, 255, 255, 0.35); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .share-btn-primary svg { width: 20px; height: 20px; fill: white; } .share-btn-primary.copied { background: rgba(40, 167, 69, 0.9); border-color: rgba(40, 167, 69, 1); } /* Expandable Social Menu Container */ .share-socials-container { position: relative; display: inline-block; } .share-socials-menu { position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%); background: white; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); padding: 0.75rem; display: none; flex-wrap: wrap; gap: 0.5rem; z-index: 1000; min-width: 280px; max-width: 320px; opacity: 0; transform: translateX(-50%) translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; } .share-socials-menu.show { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); } /* Chevron icon rotation */ .share-btn-primary .chevron-icon { width: 16px; height: 16px; fill: white; transition: transform 0.3s ease; } .share-btn-primary.active .chevron-icon { transform: rotate(180deg); } /* Share icon */ .share-btn-primary .share-icon { width: 20px; height: 20px; fill: white; } /* Social buttons inside menu */ .share-socials-menu button { border: none; border-radius: 8px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; padding: 0; color: white; } .share-socials-menu button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); filter: brightness(1.1); } .share-socials-menu button svg { width: 22px; height: 22px; fill: white; } /* Platform-specific colors */ #share-facebook { background: #1877f2; } #share-twitter { background: #000000; } #share-linkedin { background: #0077b5; } #share-whatsapp { background: #25d366; } #share-bluesky { background: #1185fe; } #share-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); } #share-reddit { background: #ff4500; } #share-threads { background: #000000; } #share-telegram { background: #0088cc; } #share-mastodon { background: #6364ff; } #share-sms { background: #34c759; } #share-slack { background: #4a154b; } #share-discord { background: #5865f2; } #share-print { background: #6c757d; } #share-email { background: #ea4335; } /* Highlighted Campaign Styles */ .highlighted-campaign-container { background: rgba(255, 255, 255, 0.95); padding: 0; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); margin-bottom: 0; max-width: 700px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; text-align: center; transform: translateY(30px); transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s, opacity 1.5s ease-out 0.5s; border: 1px solid rgba(255, 255, 255, 0.3); opacity: 0; overflow: hidden; } .highlighted-campaign-container.visible { transform: translateY(0); opacity: 1; } .highlighted-campaign-header { position: relative; padding: 50px 30px; border-radius: 12px 12px 0 0; min-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .highlighted-campaign-header .highlighted-campaign-badge { background: rgba(255, 215, 0, 0.95); margin-bottom: 15px; backdrop-filter: blur(8px); } .highlighted-campaign-header h2 { color: #ffffff !important; text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8); margin: 0; font-size: 2.2rem; font-weight: bold; background: rgba(0, 0, 0, 0.75); padding: 15px 25px; border-radius: 8px; backdrop-filter: blur(10px); display: inline-block; line-height: 1.3; } .highlighted-campaign-content { padding: 35px 30px; } .highlighted-campaign-badge { display: inline-block; background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); color: #333; padding: 8px 20px; border-radius: 25px; font-weight: bold; font-size: 0.9rem; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3); } .highlighted-campaign-container h2 { color: var(--text-color); margin: 0 0 15px 0; font-size: 2rem; } .highlighted-campaign-container .campaign-description { color: var(--text-muted-color); font-size: 1.1rem; line-height: 1.6; margin-bottom: 25px; } .campaign-stats-inline { display: flex; justify-content: center; gap: 25px; margin: 30px 0; flex-wrap: wrap; } .campaign-stats-inline .stat { display: flex; flex-direction: column; align-items: center; font-size: 0.95rem; color: #555; gap: 5px; } .campaign-stats-inline .stat .stat-icon { font-size: 1.8rem; margin-bottom: 5px; } .campaign-stats-inline .stat strong { color: #2196f3; font-size: 1.5rem; display: block; font-weight: bold; } .campaign-cta { margin: 30px 0 20px 0; } .btn-large { padding: 15px 40px; font-size: 1.1rem; font-weight: bold; } .or-divider { position: relative; text-align: center; margin: 25px 0; } .or-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #ddd; z-index: 0; } .or-divider span { background: white; padding: 0 20px; position: relative; z-index: 1; color: #999; font-size: 0.9rem; } /* Loading and fade-in animations */ #postal-input-section { transition: opacity 0.4s ease-in-out; } /* Highlighted Campaign Section Styles (inside blue background) */ .highlighted-campaign-section { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.8s ease-in 0.2s, margin 2s cubic-bezier(0.4, 0, 0.2, 1), padding 2s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 0; padding-top: 0; } .highlighted-campaign-section > div { overflow: hidden; } .highlighted-campaign-section.show { grid-template-rows: 1fr; opacity: 1; margin-top: 40px; padding-top: 30px; border-top: 2px solid rgba(255, 255, 255, 0.2); } .fade-in-smooth { animation: fadeInSmooth 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; } @keyframes fadeInSmooth { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { .highlighted-campaign-container { max-width: 100%; } .highlighted-campaign-header { padding: 40px 20px; min-height: 180px; } .highlighted-campaign-header h2 { font-size: 1.6rem; } .highlighted-campaign-content { padding: 25px 20px; } .highlighted-campaign-container h2 { font-size: 1.5rem; } .campaign-stats-inline { gap: 20px; } .btn-large { padding: 12px 30px; font-size: 1rem; } } /* ========================================== Theme Toggle - Matching Free Alberta Landing ========================================== */ .theme-toggle { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--md-code-bg-color); color: var(--md-typeset-color); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px var(--shadow-color); transition: transform 0.2s ease, background-color 0.3s ease; z-index: 1000; } .theme-toggle:hover { transform: scale(1.1); } .theme-toggle svg { width: 24px; height: 24px; } .sun-icon { display: none; } .moon-icon { display: block; } [data-theme="dark"] .sun-icon { display: block; } [data-theme="dark"] .moon-icon { display: none; } /* ========================================== Dark Mode Overrides ========================================== */ /* Cards and containers */ [data-theme="dark"] .rep-card, [data-theme="dark"] .rep-category, [data-theme="dark"] .location-info, [data-theme="dark"] .modal-content, [data-theme="dark"] .inline-email-composer { background: var(--card-bg-color); border-color: var(--card-border-color); } /* Postal form in header - dark blue to match header */ [data-theme="dark"] #postal-form { background: rgba(10, 60, 100, 0.85); border-color: rgba(33, 150, 243, 0.4); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } [data-theme="dark"] #postal-form .form-group label { color: rgba(255, 255, 255, 0.9); } [data-theme="dark"] #postal-form .form-group input { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: white; } [data-theme="dark"] #postal-form .form-group input::placeholder { color: rgba(255, 255, 255, 0.5); } [data-theme="dark"] #postal-form .form-group input:focus { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.15); } /* Postal input section wrapper - dark blue to match header */ [data-theme="dark"] .postal-input-section { background: rgba(10, 60, 100, 0.85); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } [data-theme="dark"] .rep-card { background: #252525; } /* Form inputs */ [data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea, [data-theme="dark"] .form-group select { background-color: var(--card-bg-color); color: var(--text-color); border-color: var(--card-border-color); } [data-theme="dark"] .form-group input:focus, [data-theme="dark"] .form-group textarea:focus { border-color: var(--md-primary-fg-color); box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2); } /* Text colors */ [data-theme="dark"] .form-group label { color: var(--text-color); } [data-theme="dark"] .location-info h3, [data-theme="dark"] .rep-category h3, [data-theme="dark"] .rep-card h4, [data-theme="dark"] .modal-header h3, [data-theme="dark"] .inline-email-composer .composer-header h3 { color: var(--md-primary-fg-color--light); } [data-theme="dark"] .rep-card .rep-info p { color: var(--text-muted-color); } [data-theme="dark"] .rep-card .rep-info strong { color: var(--text-color); } /* General text overrides for dark mode */ [data-theme="dark"] p { color: var(--text-color); } [data-theme="dark"] strong { color: var(--text-color); } [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: var(--text-color); } [data-theme="dark"] .text-muted { color: var(--text-muted-color); } /* Modal */ [data-theme="dark"] .modal { background-color: rgba(0, 0, 0, 0.7); } [data-theme="dark"] .modal-header { border-bottom-color: var(--card-border-color); } /* Email preview */ [data-theme="dark"] .inline-email-composer .email-preview-details { background-color: #252525; border-color: var(--card-border-color); } [data-theme="dark"] .inline-email-composer .email-preview-content { background-color: var(--card-bg-color); border-color: var(--card-border-color); color: var(--text-color); } /* Buttons */ [data-theme="dark"] .btn-secondary { background-color: var(--card-bg-color); border-color: var(--md-primary-fg-color); color: var(--md-primary-fg-color); } [data-theme="dark"] .btn-secondary:hover { background-color: var(--md-primary-fg-color); color: white; } /* Photo fallback */ [data-theme="dark"] .rep-photo-fallback { background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-primary-fg-color--light)); } /* Category borders */ [data-theme="dark"] .rep-category h3 { border-bottom-color: var(--card-border-color); } /* Highlighted campaign */ [data-theme="dark"] .highlighted-campaign-container { background: rgba(30, 30, 30, 0.95); } [data-theme="dark"] .highlighted-campaign-content { background: var(--card-bg-color); } [data-theme="dark"] .highlighted-campaign-description { color: var(--text-color); } /* Campaign cards */ [data-theme="dark"] .campaign-card { background: var(--card-bg-color); } [data-theme="dark"] .campaign-card-stat, [data-theme="dark"] .level-badge { background: #252525; } [data-theme="dark"] .campaigns-empty { background: var(--card-bg-color); } /* Loading spinner */ [data-theme="dark"] .spinner { border-color: var(--card-border-color); border-top-color: var(--md-primary-fg-color); } /* Error and success messages */ [data-theme="dark"] .error-message { background-color: rgba(248, 215, 218, 0.1); border-color: rgba(245, 198, 203, 0.3); } [data-theme="dark"] .success-message { background-color: rgba(212, 237, 218, 0.1); border-color: rgba(195, 230, 203, 0.3); } @media (max-width: 768px) { .theme-toggle { bottom: 1rem; right: 1rem; width: 44px; height: 44px; } }