/* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; background-color: #E3F0E7 !important; /* Mint Page Background */ color: #0F4A46; /* Dark Teal */ line-height: 1.6; min-height: 100vh; font-weight: 500; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Navigation */ .navbar { position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 1000; transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease, border-color 250ms ease; } /* Respect reduced motion preference */ @media (prefers-reduced-motion: reduce) { .navbar { transition: none; } } /* Transparent navbar state (over hero) */ .nav--transparent { background: transparent; box-shadow: none; border-bottom: none; } /* Solid navbar state (after scroll) */ .nav--solid { background: #ffffff; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); border-bottom: 1px solid rgba(0, 0, 0, 0.06); } .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 64px; } .nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: 48px; } .logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; } .logo-icon { flex-shrink: 0; width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); } .logo-text { display: flex; flex-direction: column; line-height: 1.2; } .nav-logo h1 { font-size: 18px; font-weight: 700; margin: 0; white-space: nowrap; line-height: 1; } .nav--transparent .nav-logo h1 { color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); } .nav--solid .nav-logo h1 { color: #0f172a; text-shadow: none; } .nav-logo .subtitle { font-size: 12px; font-weight: 500; margin: 0; line-height: 1; } .nav--transparent .nav-logo .subtitle { color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } .nav--solid .nav-logo .subtitle { color: #6b7280; text-shadow: none; } .nav-links { display: flex; gap: 4px; align-items: center; flex: 1; justify-content: flex-start; } .nav-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; } .nav-link { text-decoration: none; font-weight: 500; font-size: 14px; transition: color 200ms ease, background-color 200ms ease; position: relative; padding: 8px 16px; border-radius: 8px; display: flex; align-items: center; gap: 8px; } .nav--transparent .nav-link { color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } .nav--solid .nav-link { color: #0f172a; text-shadow: none; } .nav--transparent .nav-link:hover, .nav--transparent .nav-link:focus { color: #ffffff; background: rgba(255, 255, 255, 0.1); } .nav--transparent .nav-link.active { color: #ffffff; background: rgba(255, 255, 255, 0.2); } .nav--solid .nav-link:hover, .nav--solid .nav-link:focus { color: #0f172a; background: rgba(0, 0, 0, 0.05); } .nav--solid .nav-link.active { color: #0f172a; background: rgba(0, 0, 0, 0.1); } .nav-link::after { display: none; } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.3s ease; outline: none; position: relative; overflow: hidden; } .btn:focus { box-shadow: 0 0 0 3px rgba(42, 110, 123, 0.3); outline: none; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: #2A6E7B; /* Primary Teal */ color: #FFFFFF; /* Button Text on Teal */ box-shadow: 0 4px 12px rgba(42, 110, 123, 0.3); border-radius: 12px; } .btn-primary:hover:not(:disabled) { background: #255F6A; /* Primary Teal Hover */ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42, 110, 123, 0.4); } .btn-secondary { background: #FFFFFF; /* Card/Surface */ color: #2A6E7B; /* Primary Teal */ border: 2px solid #2A6E7B; /* Primary Teal */ box-shadow: 0 4px 12px rgba(42, 110, 123, 0.1); border-radius: 12px; } .btn-secondary:hover:not(:disabled) { background: #2A6E7B; /* Primary Teal */ color: #FFFFFF; /* Button Text on Teal */ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42, 110, 123, 0.3); } .btn-outline { background: transparent; color: #2A6E7B; /* Primary Teal */ border: 2px solid #2A6E7B; /* Primary Teal */ border-radius: 12px; } .btn-outline:hover:not(:disabled) { background: #2A6E7B; /* Primary Teal */ color: #FFFFFF; /* Button Text on Teal */ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42, 110, 123, 0.3); } .nav--transparent .btn-outline { color: #ffffff; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } .nav--transparent .btn-outline:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #ffffff; border-color: rgba(255, 255, 255, 0.95); transform: translateY(-1px); } .nav--solid .btn-outline { color: #0f172a; border: 2px solid #0f172a; background: transparent; text-shadow: none; } .nav--solid .btn-outline:hover:not(:disabled) { background: #0f172a; color: #ffffff; border-color: #0f172a; transform: translateY(-1px); } .btn-danger { background: #dc2626; color: #ffffff; } .btn-danger:hover:not(:disabled) { background: #b91c1c; transform: translateY(-2px); } /* Form Elements */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #0F4A46; /* Dark Teal */ } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #D9E6DF; /* Border/Divider */ border-radius: 12px; background: #FFFFFF; /* Card/Surface */ color: #0F4A46; /* Dark Teal */ font-size: 16px; font-weight: 500; transition: border-color 0.3s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #2A6E7B; /* Primary Teal */ box-shadow: 0 0 0 3px rgba(42, 110, 123, 0.1); } .form-group textarea { min-height: 100px; resize: vertical; } /* Modal Styles */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; } .modal.show { display: flex; align-items: center; justify-content: center; opacity: 1; } .modal-content { background: #FFFFFF; border-radius: 20px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; border: 1px solid #E5E7EB; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); transform: scale(0.9); transition: transform 0.3s ease; } .modal.show .modal-content { transform: scale(1); } .modal-content.large { max-width: 800px; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid #e5e5e5; } .modal-header h2 { margin: 0; font-size: 20px; color: #0F172A; font-weight: 700; } .modal-close { background: none; border: none; font-size: 24px; color: #6b7280; cursor: pointer; padding: 4px; border-radius: 4px; transition: color 0.3s ease; } .modal-close:hover { color: #1a1a1a; } .modal-body { padding: 24px; } .form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; } /* Drawer Styles */ .drawer { display: none; position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background: #FFFFFF; border-left: 1px solid #E5E7EB; box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1); z-index: 1000; transition: right 0.3s ease; } .drawer.show { display: block; right: 0; } .drawer-content { height: 100%; display: flex; flex-direction: column; } .drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid #e5e5e5; } .drawer-close { background: none; border: none; font-size: 24px; color: #6b7280; cursor: pointer; padding: 4px; border-radius: 4px; transition: color 0.3s ease; } .drawer-close:hover { color: #1a1a1a; } .drawer-body { flex: 1; padding: 24px; overflow-y: auto; } /* Toast Styles */ .toast { position: fixed; top: 20px; right: 20px; background: #22c55e; color: white; padding: 16px 24px; border-radius: 8px; font-weight: 600; z-index: 2000; transform: translateX(400px); transition: transform 0.3s ease; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); } .toast.show { transform: translateX(0); } .toast.error { background: #dc2626; } /* Loading Spinner */ .loading-spinner { width: 40px; height: 40px; border: 3px solid #e5e5e5; border-top: 3px solid #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Tags */ .tag { display: inline-block; padding: 6px 12px; background: #EEF2FF; color: #2A6E7B; border-radius: 20px; font-size: 12px; font-weight: 600; } /* Responsive Design */ @media (max-width: 768px) { .container { padding: 0 16px; } .nav-container { padding: 0 16px; } .nav-links { gap: 20px; } .nav-link { font-size: 14px; } .btn { padding: 10px 20px; font-size: 14px; } .modal-content { margin: 20px; width: calc(100% - 40px); } .drawer { width: 100%; right: -100%; } } /* Focus Indicators */ *:focus-visible { outline: 2px solid #2A6E7B; outline-offset: 2px; } button:focus-visible, .btn:focus-visible { outline: 2px solid #2A6E7B; outline-offset: 2px; } /* Accessibility */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* Modal Styles */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .modal.show { opacity: 1; visibility: visible; } .modal-content { background: white; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); max-width: 400px; width: 90%; max-height: 90vh; overflow-y: auto; transform: scale(0.9); transition: transform 0.3s ease; } .modal.show .modal-content { transform: scale(1); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 24px 0 24px; border-bottom: 1px solid #E5E7EB; margin-bottom: 24px; } .modal-header h2 { font-size: 20px; font-weight: 700; color: #1F2937; margin: 0; } .modal-close { background: none; border: none; font-size: 24px; color: #6B7280; cursor: pointer; padding: 4px; border-radius: 4px; transition: all 0.2s ease; line-height: 1; } .modal-close:hover { background: #F3F4F6; color: #374151; } .modal-body { padding: 0 24px 24px 24px; } .modal-body p { color: #6B7280; margin-bottom: 24px; line-height: 1.6; } .modal-actions { display: flex; flex-direction: column; gap: 12px; } /* User Dropdown Styles */ .user-dropdown { position: relative; display: inline-block; } .user-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #2A6E7B, #255F6A); color: white; border: none; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(42, 110, 123, 0.3); } .user-avatar:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42, 110, 123, 0.4); } .user-avatar:focus { outline: 2px solid #2A6E7B; outline-offset: 2px; } .dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); border: 1px solid #E5E7EB; min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s ease; z-index: 1000; } .dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); } .dropdown-header { padding: 16px 20px; border-bottom: 1px solid #F3F4F6; } .user-info { text-align: center; } .user-name { font-weight: 600; color: #1F2937; font-size: 16px; margin-bottom: 4px; } .user-email { color: #6B7280; font-size: 14px; } .dropdown-divider { height: 1px; background: #F3F4F6; margin: 8px 0; } .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #374151; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s ease; border: none; background: none; width: 100%; text-align: left; cursor: pointer; } .dropdown-item:hover { background: #F9FAFB; color: #1F2937; } .dropdown-item svg { flex-shrink: 0; color: #6B7280; } .dropdown-item:hover svg { color: #2A6E7B; } .logout-btn { color: #DC2626 !important; } .logout-btn:hover { background: #FEF2F2 !important; color: #B91C1C !important; } .logout-btn svg { color: #DC2626 !important; } .logout-btn:hover svg { color: #B91C1C !important; } /* Challenge Detail Modal Styles */ .challenge-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; } .challenge-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); } .challenge-modal-content { position: relative; background: white; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); max-width: 1000px; width: 100%; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; } .challenge-modal-header { background: #2A6E7B; color: white; padding: 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; } .challenge-header-info { display: flex; gap: 16px; flex: 1; } .challenge-logo { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .challenge-logo img { width: 100%; height: 100%; object-fit: contain; } .challenge-title-section { flex: 1; } .challenge-title-section h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px 0; color: white; } .challenge-organizer { font-size: 16px; color: #E0F2FE; margin-bottom: 12px; } .challenge-meta-row { display: flex; gap: 16px; margin-bottom: 12px; font-size: 14px; color: #E0F2FE; } .highlight-badge { background: #FEF3C7; color: #92400E; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 12px; display: inline-block; } .challenge-tags { display: flex; gap: 8px; flex-wrap: wrap; } .challenge-tag { background: #E0F2FE; color: #0369A1; padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 500; } .challenge-header-actions { display: flex; gap: 12px; align-items: center; } .modal-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 4px; border-radius: 4px; transition: background-color 0.2s; } .modal-close:hover { background: rgba(255, 255, 255, 0.1); } .challenge-modal-body { padding: 24px; overflow-y: auto; flex: 1; } .quick-facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; } .fact-tile { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; text-align: center; } .fact-label { font-size: 12px; color: #6B7280; margin-bottom: 8px; font-weight: 500; } .fact-value { font-size: 18px; font-weight: 700; color: #1F2937; } .days-left-pill { background: #FEF3C7; color: #92400E; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; display: inline-block; margin-bottom: 4px; } .deadline-date { font-size: 14px; color: #6B7280; } .challenge-card { background: white; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .card-title { font-size: 18px; font-weight: 600; color: #1F2937; margin: 0 0 16px 0; padding-bottom: 8px; border-bottom: 2px solid #2A6E7B; } .eligibility-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; } .eligibility-pill { background: #D1FAE5; color: #065F46; padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 500; } .eligibility-details { font-size: 14px; color: #6B7280; line-height: 1.6; } .timeline { position: relative; } .timeline-item { display: flex; gap: 16px; margin-bottom: 24px; position: relative; } .timeline-item:not(:last-child)::after { content: ''; position: absolute; left: 20px; top: 40px; bottom: -24px; width: 2px; background: #E2E8F0; } .timeline-date { background: #2A6E7B; color: white; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; min-width: 80px; text-align: center; height: fit-content; } .timeline-content { flex: 1; } .timeline-title { font-size: 16px; font-weight: 600; color: #1F2937; margin-bottom: 8px; } .timeline-description { font-size: 14px; color: #6B7280; line-height: 1.5; margin-bottom: 8px; } .timeline-dates { font-size: 12px; color: #9CA3AF; margin-bottom: 8px; } .timeline-link { color: #2A6E7B; text-decoration: none; font-size: 12px; font-weight: 500; } .timeline-link:hover { text-decoration: underline; } .about-content { font-size: 14px; color: #6B7280; line-height: 1.6; margin-bottom: 20px; } .eligibility-criteria { margin-top: 20px; } .eligibility-criteria h4 { font-size: 14px; font-weight: 600; color: #1F2937; margin-bottom: 8px; } .eligibility-criteria ul { margin: 0 0 16px 0; padding-left: 20px; } .eligibility-criteria li { font-size: 14px; color: #6B7280; margin-bottom: 4px; } .important-dates { display: flex; flex-direction: column; gap: 12px; } .date-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #F8FAFC; border-radius: 8px; } .date-icon { width: 20px; height: 20px; color: #2A6E7B; } .date-label { font-size: 14px; font-weight: 500; color: #1F2937; } .date-value { font-size: 14px; color: #6B7280; margin-left: auto; } .rewards-banner { margin-bottom: 20px; } .rewards-badge { background: #FEF3C7; color: #92400E; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; } .prizes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; } .prize-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; align-items: center; } .prize-info { flex: 1; } .prize-title { font-size: 16px; font-weight: 600; color: #1F2937; margin-bottom: 8px; } .prize-description { font-size: 14px; color: #6B7280; margin-bottom: 8px; } .prize-amount { font-size: 24px; font-weight: 700; color: #1F2937; margin-bottom: 8px; } .prize-perk { background: #D1FAE5; color: #065F46; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; display: inline-block; } .prize-illustration { width: 60px; height: 60px; background: #E0F2FE; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #0369A1; font-size: 24px; } .challenge-modal-footer { background: #F8FAFC; border-top: 1px solid #E2E8F0; padding: 20px 24px; position: sticky; bottom: 0; } .action-buttons { display: flex; gap: 12px; justify-content: center; } /* Mobile Responsive */ @media (max-width: 768px) { .challenge-modal { padding: 10px; } .challenge-modal-content { max-height: 95vh; } .challenge-modal-header { padding: 16px; flex-direction: column; gap: 16px; } .challenge-header-info { flex-direction: column; gap: 12px; } .challenge-title-section h2 { font-size: 20px; } .challenge-modal-body { padding: 16px; } .quick-facts-row { grid-template-columns: repeat(2, 1fr); gap: 12px; } .fact-tile { padding: 12px; } .challenge-card { padding: 16px; } .timeline-item { flex-direction: column; gap: 8px; } .timeline-item:not(:last-child)::after { display: none; } .timeline-date { align-self: flex-start; } .prizes-grid { grid-template-columns: 1fr; } .prize-card { flex-direction: column; text-align: center; gap: 12px; } .action-buttons { flex-direction: column; } } /* Floating Chatbot Styles */ .chatbot-floating-btn { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: linear-gradient(135deg, #2A6E7B, #2A6E7B); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); transition: all 0.3s ease; z-index: 1000; color: white; flex-direction: column; gap: 2px; } .chatbot-floating-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6); } .chatbot-floating-btn.active { background: linear-gradient(135deg, #255F6A, #255F6A); } .chatbot-btn-text { font-size: 10px; font-weight: 600; line-height: 1; } .chatbot-modal { position: fixed; bottom: 20px; right: 20px; width: 380px; height: 500px; background: white; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); z-index: 1001; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95); transition: all 0.3s ease; border: 1px solid #E5E7EB; overflow: hidden; } .chatbot-modal.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } .chatbot-modal.minimized { height: 60px; } .chatbot-modal-content { height: 100%; display: flex; flex-direction: column; } .chatbot-header { background: linear-gradient(135deg, #2A6E7B, #2A6E7B); color: white; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } .chatbot-header-info { display: flex; align-items: center; gap: 12px; } .chatbot-avatar { width: 32px; height: 32px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; } .chatbot-title h3 { font-size: 16px; font-weight: 600; margin: 0; line-height: 1.2; } .chatbot-status { font-size: 12px; opacity: 0.8; display: block; margin-top: 2px; } .chatbot-controls { display: flex; gap: 8px; } .chatbot-minimize-btn, .chatbot-close-btn { background: none; border: none; color: white; cursor: pointer; padding: 4px; border-radius: 4px; transition: background 0.2s ease; display: flex; align-items: center; justify-content: center; } .chatbot-minimize-btn:hover, .chatbot-close-btn:hover { background: rgba(255, 255, 255, 0.1); } .chatbot-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .chatbot-message { display: flex; gap: 8px; max-width: 85%; } .chatbot-message.user-message { align-self: flex-end; flex-direction: row-reverse; } .chatbot-message.bot-message { align-self: flex-start; } .message-avatar { width: 24px; height: 24px; background: #F3F4F6; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #6B7280; } .message-content { background: #F3F4F6; color: #374151; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; word-wrap: break-word; } .user-message .message-content { background: #2A6E7B; color: white; border-bottom-right-radius: 4px; } .bot-message .message-content { border-bottom-left-radius: 4px; } .message-time { font-size: 11px; color: #9CA3AF; margin-top: 4px; text-align: right; } .bot-message .message-time { text-align: left; } .chatbot-typing { padding: 0 16px 16px 16px; } .typing-indicator { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: #F3F4F6; border-radius: 16px; border-bottom-left-radius: 4px; width: fit-content; } .typing-indicator span { width: 6px; height: 6px; background: #9CA3AF; border-radius: 50%; animation: typing 1.4s infinite; } .typing-indicator span:nth-child(2) { animation-delay: 0.2s; } .typing-indicator span:nth-child(3) { animation-delay: 0.4s; } @keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } } .chatbot-footer { border-top: 1px solid #E5E7EB; padding: 16px; flex-shrink: 0; } .chatbot-input-container { display: flex; gap: 8px; margin-bottom: 12px; } .chatbot-input-container input { flex: 1; padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 20px; outline: none; font-size: 14px; background: #F9FAFB; transition: all 0.2s ease; } .chatbot-input-container input:focus { border-color: #2A6E7B; background: white; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .chatbot-send-btn { width: 40px; height: 40px; background: #2A6E7B; color: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; } .chatbot-send-btn:hover:not(:disabled) { background: #2A6E7B; transform: scale(1.05); } .chatbot-send-btn:disabled { background: #D1D5DB; cursor: not-allowed; transform: none; } .chatbot-quick-questions { margin-top: 8px; } .quick-questions-title { font-size: 12px; color: #6B7280; margin-bottom: 8px; font-weight: 500; } .quick-questions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .quick-question-btn { padding: 6px 10px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; color: #475569; font-size: 11px; cursor: pointer; transition: all 0.2s ease; text-align: center; font-weight: 500; } .quick-question-btn:hover { background: #2A6E7B; color: white; border-color: #2A6E7B; } /* Responsive Design */ @media (max-width: 768px) { .chatbot-modal { width: calc(100vw - 40px); height: calc(100vh - 100px); bottom: 10px; right: 10px; left: 10px; top: 10px; border-radius: 12px; } .chatbot-floating-btn { bottom: 15px; right: 15px; width: 56px; height: 56px; } .quick-questions-grid { grid-template-columns: 1fr; } } @media (max-width: 480px) { .chatbot-modal { width: calc(100vw - 20px); height: calc(100vh - 80px); bottom: 10px; right: 10px; left: 10px; top: 10px; } .chatbot-floating-btn { width: 52px; height: 52px; } .chatbot-btn-text { font-size: 9px; } } /* Existing Modal Styles */ @media (max-width: 768px) { .modal-content { width: 95%; margin: 20px; } .dropdown-menu { right: -20px; left: auto; min-width: 200px; } .user-avatar { width: 36px; height: 36px; font-size: 14px; } }