Spaces:
Sleeping
Sleeping
| :root { | |
| color-scheme: light; | |
| font-family: | |
| Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | |
| color: #142033; | |
| background: | |
| radial-gradient(circle at top, rgba(84, 139, 255, 0.14), transparent 28%), | |
| linear-gradient(180deg, #f7f9ff 0%, #eef4ff 45%, #eaf0fb 100%); | |
| line-height: 1.5; | |
| font-weight: 400; | |
| } | |
| * { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body, | |
| #root { | |
| margin: 0; | |
| min-height: 100%; | |
| } | |
| body { | |
| min-height: 100vh; | |
| } | |
| button { | |
| font: inherit; | |
| } | |
| .app-shell { | |
| min-height: 100vh; | |
| display: grid; | |
| place-items: center; | |
| padding: 24px; | |
| } | |
| .hero-card { | |
| width: min(960px, 100%); | |
| border: 1px solid rgba(98, 128, 198, 0.14); | |
| background: rgba(255, 255, 255, 0.82); | |
| box-shadow: 0 28px 80px rgba(61, 89, 145, 0.12); | |
| backdrop-filter: blur(18px); | |
| border-radius: 28px; | |
| padding: 28px; | |
| } | |
| .landing-card { | |
| display: grid; | |
| gap: 18px; | |
| } | |
| .landing-grid { | |
| display: grid; | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 14px; | |
| } | |
| .landing-feature { | |
| padding: 18px; | |
| border-radius: 20px; | |
| background: rgba(91, 123, 208, 0.06); | |
| border: 1px solid rgba(91, 123, 208, 0.1); | |
| } | |
| .landing-feature strong { | |
| display: block; | |
| margin-bottom: 8px; | |
| color: #16213a; | |
| } | |
| .landing-feature p { | |
| margin: 0; | |
| color: #5f6f8b; | |
| } | |
| .landing-actions { | |
| display: flex; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| } | |
| .top-row { | |
| display: flex; | |
| justify-content: space-between; | |
| gap: 20px; | |
| align-items: flex-start; | |
| } | |
| .badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 12px; | |
| border-radius: 999px; | |
| background: rgba(93, 131, 242, 0.12); | |
| color: #3556a8; | |
| font-size: 0.82rem; | |
| letter-spacing: 0.04em; | |
| text-transform: uppercase; | |
| } | |
| h1 { | |
| margin: 14px 0 10px; | |
| font-size: clamp(2rem, 4vw, 3.2rem); | |
| line-height: 1.05; | |
| } | |
| .lead { | |
| margin: 0; | |
| max-width: 62ch; | |
| color: #5f6f8b; | |
| } | |
| .progress-chip { | |
| min-width: 110px; | |
| padding: 14px 16px; | |
| border-radius: 18px; | |
| background: rgba(91, 123, 208, 0.08); | |
| border: 1px solid rgba(91, 123, 208, 0.1); | |
| text-align: center; | |
| } | |
| .progress-chip span, | |
| .panel-label, | |
| .footer-note, | |
| .score-meta, | |
| .score-label, | |
| .helper-text, | |
| .disclaimer { | |
| color: #63728b; | |
| } | |
| .progress-chip strong { | |
| display: block; | |
| font-size: 1.35rem; | |
| color: #142033; | |
| } | |
| .progress-bar { | |
| margin: 24px 0; | |
| height: 10px; | |
| border-radius: 999px; | |
| background: rgba(91, 123, 208, 0.12); | |
| overflow: hidden; | |
| } | |
| .progress-fill { | |
| height: 100%; | |
| border-radius: inherit; | |
| background: linear-gradient(90deg, #6ea8ff, #8b7dff, #70e0c8); | |
| } | |
| .question-card { | |
| padding: 24px; | |
| border-radius: 24px; | |
| background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.92)); | |
| border: 1px solid rgba(91, 123, 208, 0.12); | |
| } | |
| .question-toolbar { | |
| display: flex; | |
| justify-content: flex-end; | |
| gap: 10px; | |
| margin-bottom: 16px; | |
| flex-wrap: wrap; | |
| } | |
| .chat-top { | |
| align-items: flex-start; | |
| } | |
| .chat-actions { | |
| display: flex; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| justify-content: flex-end; | |
| } | |
| h2 { | |
| margin: 0 0 20px; | |
| font-size: clamp(1.2rem, 2.2vw, 1.7rem); | |
| color: #16213a; | |
| } | |
| .options { | |
| display: grid; | |
| gap: 12px; | |
| } | |
| .option-button { | |
| width: 100%; | |
| display: grid; | |
| grid-template-columns: 40px 1fr; | |
| gap: 14px; | |
| align-items: center; | |
| padding: 16px 18px; | |
| border-radius: 18px; | |
| border: 1px solid rgba(91, 123, 208, 0.14); | |
| background: rgba(255, 255, 255, 0.9); | |
| color: #183055; | |
| text-align: left; | |
| cursor: pointer; | |
| transition: | |
| transform 0.18s ease, | |
| border-color 0.18s ease, | |
| background 0.18s ease; | |
| } | |
| .option-button:hover { | |
| transform: translateY(-1px); | |
| border-color: rgba(126, 170, 255, 0.42); | |
| background: rgba(236, 243, 255, 0.98); | |
| } | |
| .option-button.selected { | |
| border-color: rgba(110, 168, 255, 0.85); | |
| background: rgba(221, 235, 255, 0.98); | |
| } | |
| .option-index { | |
| width: 40px; | |
| height: 40px; | |
| display: grid; | |
| place-items: center; | |
| border-radius: 999px; | |
| background: rgba(93, 131, 242, 0.12); | |
| color: #3556a8; | |
| font-weight: 700; | |
| } | |
| .option-text { | |
| color: #183055; | |
| } | |
| .nav-row, | |
| .result-actions { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 16px; | |
| margin-top: 22px; | |
| } | |
| .helper-text { | |
| text-align: center; | |
| flex: 1; | |
| } | |
| .primary-button, | |
| .secondary-button, | |
| .ghost-button { | |
| border: 0; | |
| padding: 14px 18px; | |
| border-radius: 14px; | |
| cursor: pointer; | |
| transition: | |
| transform 0.18s ease, | |
| opacity 0.18s ease; | |
| } | |
| .primary-button { | |
| color: #ffffff; | |
| background: linear-gradient(135deg, #5d83f2, #7b8ef6 55%, #50c7b0); | |
| font-weight: 700; | |
| min-width: 120px; | |
| } | |
| .secondary-button { | |
| color: #27406f; | |
| background: rgba(91, 123, 208, 0.08); | |
| border: 1px solid rgba(91, 123, 208, 0.12); | |
| min-width: 120px; | |
| } | |
| .ghost-button { | |
| color: #4e658e; | |
| background: transparent; | |
| border: 1px solid rgba(91, 123, 208, 0.12); | |
| min-width: 120px; | |
| } | |
| .primary-button:hover, | |
| .secondary-button:hover { | |
| transform: translateY(-1px); | |
| } | |
| .primary-button:disabled, | |
| .secondary-button:disabled, | |
| .ghost-button:disabled { | |
| cursor: not-allowed; | |
| opacity: 0.45; | |
| transform: none; | |
| } | |
| .footer-note { | |
| margin-top: 18px; | |
| font-size: 0.94rem; | |
| } | |
| .results-card h1 { | |
| max-width: 14ch; | |
| } | |
| .result-grid { | |
| margin-top: 24px; | |
| display: grid; | |
| grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 16px; | |
| } | |
| .score-card { | |
| padding: 20px; | |
| border-radius: 22px; | |
| border: 1px solid rgba(91, 123, 208, 0.12); | |
| background: rgba(255, 255, 255, 0.92); | |
| } | |
| .score-card p { | |
| margin: 10px 0 0; | |
| color: #5f6f8b; | |
| } | |
| .mini-bar { | |
| margin-top: 12px; | |
| height: 10px; | |
| border-radius: 999px; | |
| background: rgba(91, 123, 208, 0.1); | |
| overflow: hidden; | |
| } | |
| .mini-bar span { | |
| display: block; | |
| height: 100%; | |
| border-radius: inherit; | |
| background: linear-gradient(90deg, #5d83f2, #50c7b0); | |
| } | |
| .score-label { | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| font-size: 0.78rem; | |
| } | |
| .score-value { | |
| margin-top: 8px; | |
| font-size: 2.5rem; | |
| font-weight: 800; | |
| } | |
| .highlight-panel { | |
| margin-top: 18px; | |
| padding: 18px 20px; | |
| border-radius: 20px; | |
| background: rgba(93, 131, 242, 0.08); | |
| border: 1px solid rgba(93, 131, 242, 0.12); | |
| } | |
| .highlight-panel strong { | |
| display: block; | |
| margin-top: 6px; | |
| font-size: 1.08rem; | |
| } | |
| .result-dashboard { | |
| margin-top: 18px; | |
| display: grid; | |
| gap: 14px; | |
| } | |
| .warning-banner { | |
| padding: 14px 16px; | |
| border-radius: 16px; | |
| background: rgba(255, 205, 96, 0.16); | |
| border: 1px solid rgba(255, 205, 96, 0.28); | |
| color: #6f4c00; | |
| } | |
| .risk-high { | |
| background: rgba(255, 120, 120, 0.14); | |
| border-color: rgba(255, 120, 120, 0.28); | |
| color: #8c1e1e; | |
| } | |
| .risk-moderate { | |
| background: rgba(255, 180, 80, 0.14); | |
| border-color: rgba(255, 180, 80, 0.28); | |
| color: #7b4a00; | |
| } | |
| .chat-card { | |
| width: min(960px, 100%); | |
| padding: 0 ; /* Reset padding để header và input sát viền */ | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| height: 680px; | |
| } | |
| .questionnaire-card { | |
| padding: 0 ; | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| height: 680px; | |
| } | |
| /* Header dạng Messenger/Zalo */ | |
| .messenger-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 16px 24px; | |
| background: rgba(255, 255, 255, 0.95); | |
| border-bottom: 1px solid rgba(91, 123, 208, 0.12); | |
| z-index: 10; | |
| } | |
| .messenger-info { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .messenger-avatar { | |
| width: 44px; | |
| height: 44px; | |
| border-radius: 50%; | |
| display: grid; | |
| place-items: center; | |
| color: #fff; | |
| font-weight: 700; | |
| font-size: 1.15rem; | |
| box-shadow: 0 4px 12px rgba(91, 123, 208, 0.2); | |
| } | |
| .bg-gemini { | |
| background: linear-gradient(135deg, #7f56da, #3f7bf6); | |
| } | |
| .bg-dass { | |
| background: linear-gradient(135deg, #00b4db, #0083b0); | |
| } | |
| .messenger-info h2 { | |
| margin: 0; | |
| font-size: 1.1rem; | |
| font-weight: 700; | |
| color: #1e293b; | |
| line-height: 1.2; | |
| } | |
| .messenger-status { | |
| margin: 4px 0 0; | |
| font-size: 0.8rem; | |
| color: #64748b; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| } | |
| .status-dot { | |
| width: 8px; | |
| height: 8px; | |
| background-color: #22c55e; | |
| border-radius: 50%; | |
| display: inline-block; | |
| box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); | |
| } | |
| .messenger-actions { | |
| display: flex; | |
| gap: 8px; | |
| } | |
| .progress-info { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: flex-end; | |
| gap: 6px; | |
| min-width: 140px; | |
| } | |
| .progress-info span { | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| color: #475569; | |
| } | |
| .progress-bar-mini { | |
| width: 100%; | |
| height: 6px; | |
| border-radius: 99px; | |
| background: rgba(91, 123, 208, 0.12); | |
| overflow: hidden; | |
| } | |
| .progress-fill-mini { | |
| height: 100%; | |
| border-radius: inherit; | |
| background: linear-gradient(90deg, #00b4db, #7f56da); | |
| transition: width 0.3s ease; | |
| } | |
| .action-icon-btn { | |
| border: 0; | |
| background: rgba(91, 123, 208, 0.06); | |
| border: 1px solid rgba(91, 123, 208, 0.1); | |
| color: #3b5284; | |
| padding: 8px 14px; | |
| border-radius: 12px; | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .action-icon-btn:hover { | |
| background: rgba(91, 123, 208, 0.12); | |
| transform: translateY(-1px); | |
| } | |
| .action-icon-btn.secondary { | |
| background: transparent; | |
| color: #64748b; | |
| border-color: transparent; | |
| } | |
| .action-icon-btn.secondary:hover { | |
| background: rgba(91, 123, 208, 0.05); | |
| } | |
| /* Khung chat cố định */ | |
| .chat-thread { | |
| flex: 1; | |
| padding: 24px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| overflow-y: auto; | |
| background: #f8fafc; | |
| } | |
| /* Custom Scrollbar cho Chat */ | |
| .chat-thread::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .chat-thread::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .chat-thread::-webkit-scrollbar-thumb { | |
| background: rgba(148, 163, 184, 0.3); | |
| border-radius: 99px; | |
| } | |
| .chat-thread::-webkit-scrollbar-thumb:hover { | |
| background: rgba(148, 163, 184, 0.5); | |
| } | |
| /* Cấu trúc tin nhắn */ | |
| .chat-message { | |
| display: flex; | |
| align-items: flex-end; | |
| gap: 8px; | |
| max-width: 75%; | |
| animation: messageSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; | |
| } | |
| @keyframes messageSlideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(12px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .chat-message.assistant { | |
| align-self: flex-start; | |
| } | |
| .chat-message.user { | |
| align-self: flex-end; | |
| flex-direction: row-reverse; | |
| max-width: 70%; | |
| } | |
| .bubble-avatar { | |
| width: 28px; | |
| height: 28px; | |
| border-radius: 50%; | |
| display: grid; | |
| place-items: center; | |
| color: white; | |
| font-weight: 700; | |
| font-size: 0.75rem; | |
| flex-shrink: 0; | |
| margin-bottom: 2px; | |
| } | |
| /* Bong bóng chat tinh tế */ | |
| .chat-bubble { | |
| padding: 12px 16px; | |
| border-radius: 18px; | |
| font-size: 0.95rem; | |
| line-height: 1.5; | |
| white-space: pre-wrap; | |
| word-break: break-word; | |
| box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); | |
| } | |
| .chat-message.assistant .chat-bubble { | |
| background: #ffffff; | |
| color: #0f172a; | |
| border: 1px solid #e2e8f0; | |
| border-bottom-left-radius: 4px; | |
| } | |
| .chat-message.user .chat-bubble { | |
| background: linear-gradient(135deg, #0084ff, #00a2ff); /* Phong cách Messenger/Zalo */ | |
| color: #ffffff; | |
| border-bottom-right-radius: 4px; | |
| } | |
| /* Thanh nhập tin nhắn dạng viên thuốc */ | |
| .chat-input-area { | |
| padding: 16px 24px; | |
| background: #ffffff; | |
| border-top: 1px solid rgba(91, 123, 208, 0.12); | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .chat-input-area input { | |
| flex: 1; | |
| height: 48px; | |
| border-radius: 24px; | |
| border: 1px solid #e2e8f0; | |
| background: #f1f5f9; | |
| color: #0f172a; | |
| padding: 0 20px; | |
| font-size: 0.95rem; | |
| font-family: inherit; | |
| transition: all 0.2s ease; | |
| } | |
| .chat-input-area input:focus { | |
| outline: none; | |
| border-color: #0084ff; | |
| background: #ffffff; | |
| box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15); | |
| } | |
| .chat-input-area input::placeholder { | |
| color: #94a3b8; | |
| } | |
| /* Nút gửi Icon máy bay */ | |
| .send-icon-btn { | |
| width: 44px; | |
| height: 44px; | |
| border-radius: 50%; | |
| border: 0; | |
| background: #0084ff; | |
| color: white; | |
| display: grid; | |
| place-items: center; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| flex-shrink: 0; | |
| } | |
| .send-icon-btn:hover { | |
| background: #0074e0; | |
| transform: scale(1.05); | |
| } | |
| .send-icon-btn:active { | |
| transform: scale(0.95); | |
| } | |
| .send-icon-btn:disabled { | |
| background: #cbd5e1; | |
| color: #94a3b8; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| .send-icon-btn svg { | |
| margin-left: 2px; /* Lệch tâm nhẹ để cân bằng thị giác */ | |
| } | |
| .cancel-pill-btn { | |
| border: 0; | |
| background: transparent; | |
| color: #64748b; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| cursor: pointer; | |
| padding: 0 8px; | |
| transition: color 0.2s ease; | |
| } | |
| .cancel-pill-btn:hover { | |
| color: #0f172a; | |
| } | |
| /* Các nút trả lời nhanh (Quick Replies) */ | |
| .quick-replies { | |
| display: flex; | |
| gap: 8px; | |
| padding: 12px 24px; | |
| background: #f8fafc; | |
| overflow-x: auto; | |
| border-top: 1px solid rgba(91, 123, 208, 0.08); | |
| flex-wrap: wrap; | |
| } | |
| .quick-replies::-webkit-scrollbar { | |
| height: 4px; | |
| } | |
| .quick-replies::-webkit-scrollbar-thumb { | |
| background: rgba(148, 163, 184, 0.2); | |
| border-radius: 99px; | |
| } | |
| .quick-reply-btn { | |
| border: 1px solid #0084ff; | |
| background: #ffffff; | |
| color: #0084ff; | |
| padding: 8px 16px; | |
| border-radius: 18px; | |
| font-size: 0.88rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| white-space: nowrap; | |
| transition: all 0.2s ease; | |
| } | |
| .quick-reply-btn:hover:not(:disabled) { | |
| background: #0084ff; | |
| color: #ffffff; | |
| transform: translateY(-1px); | |
| } | |
| .quick-reply-btn:disabled { | |
| border-color: #cbd5e1; | |
| color: #94a3b8; | |
| cursor: not-allowed; | |
| } | |
| /* Hiệu ứng gõ chữ (Typing Animation) */ | |
| .typing { | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| height: 20px; | |
| padding: 12px 14px ; | |
| } | |
| .typing span { | |
| width: 6px; | |
| height: 6px; | |
| background-color: #94a3b8; | |
| border-radius: 50%; | |
| display: inline-block; | |
| animation: typing-bounce 1.4s infinite ease-in-out both; | |
| } | |
| .typing span:nth-child(1) { | |
| animation-delay: -0.32s; | |
| } | |
| .typing span:nth-child(2) { | |
| animation-delay: -0.16s; | |
| } | |
| @keyframes typing-bounce { | |
| 0%, 80%, 100% { | |
| transform: scale(0); | |
| } 40% { | |
| transform: scale(1.0); | |
| } | |
| } | |
| @media (max-width: 800px) { | |
| .chat-card, | |
| .questionnaire-card { | |
| height: calc(100vh - 48px); | |
| border-radius: 16px; | |
| } | |
| .messenger-header { | |
| padding: 12px 16px; | |
| } | |
| .progress-info { | |
| min-width: auto; | |
| } | |
| .chat-thread { | |
| padding: 16px; | |
| } | |
| .chat-message { | |
| max-width: 85%; | |
| } | |
| .chat-input-area { | |
| padding: 12px 16px; | |
| } | |
| .result-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .top-row, | |
| .nav-row, | |
| .result-actions { | |
| flex-direction: column; | |
| align-items: stretch; | |
| gap: 12px; | |
| } | |
| } | |
| /* Modal Backdrop with Glassmorphism */ | |
| .modal-backdrop { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100vw; | |
| height: 100vh; | |
| background: rgba(15, 23, 42, 0.4); | |
| backdrop-filter: blur(12px); | |
| -webkit-backdrop-filter: blur(12px); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| animation: fadeIn 0.25s ease-out forwards; | |
| } | |
| /* Modal Box */ | |
| .modal-container { | |
| width: min(680px, 92%); | |
| max-height: 85vh; | |
| background: rgba(255, 255, 255, 0.95); | |
| border: 1px solid rgba(91, 123, 208, 0.16); | |
| border-radius: 24px; | |
| box-shadow: 0 30px 100px rgba(15, 23, 42, 0.2); | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; | |
| } | |
| /* Header */ | |
| .modal-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 20px 24px; | |
| border-bottom: 1px solid rgba(91, 123, 208, 0.12); | |
| background: rgba(255, 255, 255, 0.8); | |
| } | |
| .modal-header h2 { | |
| margin: 0; | |
| font-size: 1.25rem; | |
| font-weight: 800; | |
| color: #1e293b; | |
| letter-spacing: -0.02em; | |
| } | |
| .modal-close-btn { | |
| background: none; | |
| border: none; | |
| font-size: 1.5rem; | |
| color: #64748b; | |
| cursor: pointer; | |
| padding: 4px 8px; | |
| border-radius: 8px; | |
| transition: all 0.2s ease; | |
| line-height: 1; | |
| } | |
| .modal-close-btn:hover { | |
| background: rgba(91, 123, 208, 0.08); | |
| color: #0f172a; | |
| } | |
| /* Body Content */ | |
| .modal-body { | |
| padding: 24px; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| /* Scrollbar styling for modal body */ | |
| .modal-body::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .modal-body::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .modal-body::-webkit-scrollbar-thumb { | |
| background: rgba(148, 163, 184, 0.3); | |
| border-radius: 99px; | |
| } | |
| .modal-intro { | |
| margin: 0; | |
| font-size: 0.95rem; | |
| color: #475569; | |
| line-height: 1.6; | |
| } | |
| /* Privacy sections */ | |
| .privacy-section { | |
| background: rgba(91, 123, 208, 0.04); | |
| border: 1px solid rgba(91, 123, 208, 0.08); | |
| border-radius: 16px; | |
| padding: 18px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| transition: transform 0.2s ease; | |
| } | |
| .privacy-section:hover { | |
| transform: translateY(-1px); | |
| border-color: rgba(91, 123, 208, 0.14); | |
| background: rgba(91, 123, 208, 0.06); | |
| } | |
| .privacy-section-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| font-weight: 700; | |
| color: #0f172a; | |
| font-size: 1rem; | |
| } | |
| .privacy-icon { | |
| font-size: 1.2rem; | |
| } | |
| .privacy-list { | |
| margin: 0; | |
| padding-left: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| font-size: 0.9rem; | |
| color: #334155; | |
| line-height: 1.5; | |
| } | |
| .privacy-list li strong { | |
| color: #0f172a; | |
| } | |
| /* Checkbox Opt-in */ | |
| .consent-checkbox-wrapper { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| padding: 14px 16px; | |
| background: rgba(34, 197, 94, 0.05); | |
| border: 1px solid rgba(34, 197, 94, 0.12); | |
| border-radius: 14px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| user-select: none; | |
| } | |
| .consent-checkbox-wrapper:hover { | |
| background: rgba(34, 197, 94, 0.08); | |
| border-color: rgba(34, 197, 94, 0.2); | |
| } | |
| .consent-checkbox-wrapper input[type="checkbox"] { | |
| width: 18px; | |
| height: 18px; | |
| margin: 2px 0 0 0; | |
| cursor: pointer; | |
| accent-color: #22c55e; | |
| } | |
| .consent-checkbox-wrapper span { | |
| font-size: 0.9rem; | |
| color: #1e293b; | |
| line-height: 1.4; | |
| font-weight: 500; | |
| } | |
| /* Footer Actions */ | |
| .modal-actions { | |
| display: flex; | |
| justify-content: flex-end; | |
| gap: 12px; | |
| padding: 16px 24px 20px; | |
| border-top: 1px solid rgba(91, 123, 208, 0.12); | |
| background: rgba(255, 255, 255, 0.8); | |
| } | |
| /* Keyframes for animations */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| @keyframes slideUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(24px) scale(0.98); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0) scale(1); | |
| } | |
| } | |
| /* Mobile responsive fixes */ | |
| @media (max-width: 600px) { | |
| .modal-container { | |
| width: 100%; | |
| height: 100vh; | |
| max-height: 100vh; | |
| border-radius: 0; | |
| } | |
| .modal-actions { | |
| padding: 16px; | |
| flex-direction: column-reverse; | |
| } | |
| .modal-actions button { | |
| width: 100%; | |
| } | |
| .modal-body { | |
| padding: 16px; | |
| } | |
| } | |
| /* --- THEME TOGGLE BUTTON --- */ | |
| .theme-toggle-btn { | |
| position: fixed; | |
| top: 20px; | |
| right: 20px; | |
| width: 44px; | |
| height: 44px; | |
| border-radius: 50%; | |
| border: 1px solid rgba(91, 123, 208, 0.16); | |
| background: rgba(255, 255, 255, 0.8); | |
| backdrop-filter: blur(8px); | |
| -webkit-backdrop-filter: blur(8px); | |
| color: #1e293b; | |
| display: grid; | |
| place-items: center; | |
| cursor: pointer; | |
| box-shadow: 0 4px 12px rgba(61, 89, 145, 0.1); | |
| z-index: 100; | |
| transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .theme-toggle-btn:hover { | |
| transform: scale(1.05) rotate(15deg); | |
| background: rgba(255, 255, 255, 0.95); | |
| border-color: rgba(91, 123, 208, 0.3); | |
| box-shadow: 0 6px 16px rgba(61, 89, 145, 0.15); | |
| } | |
| /* --- DARK MODE OVERRIDES --- */ | |
| :root[data-theme="dark"] { | |
| color-scheme: dark; | |
| color: #f1f5f9; | |
| background: | |
| radial-gradient(circle at top, rgba(99, 102, 241, 0.15), transparent 45%), | |
| linear-gradient(180deg, #0b0f19 0%, #111827 100%); | |
| } | |
| /* Dark mode theme toggle styling */ | |
| :root[data-theme="dark"] .theme-toggle-btn { | |
| background: rgba(30, 41, 59, 0.8); | |
| border-color: rgba(99, 102, 241, 0.25); | |
| color: #f8fafc; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); | |
| } | |
| :root[data-theme="dark"] .theme-toggle-btn:hover { | |
| background: rgba(30, 41, 59, 0.95); | |
| border-color: rgba(99, 102, 241, 0.45); | |
| box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); | |
| } | |
| /* Cards & containers */ | |
| :root[data-theme="dark"] .hero-card { | |
| border-color: rgba(99, 102, 241, 0.16); | |
| background: rgba(17, 24, 39, 0.85); | |
| box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45); | |
| } | |
| :root[data-theme="dark"] .landing-feature { | |
| background: rgba(99, 102, 241, 0.08); | |
| border-color: rgba(99, 102, 241, 0.15); | |
| } | |
| :root[data-theme="dark"] .landing-feature strong { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .landing-feature p { | |
| color: #94a3b8; | |
| } | |
| :root[data-theme="dark"] h1, | |
| :root[data-theme="dark"] h2 { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .lead, | |
| :root[data-theme="dark"] .progress-chip span, | |
| :root[data-theme="dark"] .panel-label, | |
| :root[data-theme="dark"] .footer-note, | |
| :root[data-theme="dark"] .score-meta, | |
| :root[data-theme="dark"] .score-label, | |
| :root[data-theme="dark"] .helper-text, | |
| :root[data-theme="dark"] .disclaimer { | |
| color: #94a3b8; | |
| } | |
| :root[data-theme="dark"] .progress-chip { | |
| background: rgba(99, 102, 241, 0.1); | |
| border-color: rgba(99, 102, 241, 0.15); | |
| } | |
| :root[data-theme="dark"] .progress-chip strong { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .progress-bar { | |
| background: rgba(99, 102, 241, 0.18); | |
| } | |
| :root[data-theme="dark"] .question-card { | |
| background: linear-gradient(180deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.95)); | |
| border-color: rgba(99, 102, 241, 0.18); | |
| } | |
| /* Options */ | |
| :root[data-theme="dark"] .option-button { | |
| border-color: rgba(99, 102, 241, 0.18); | |
| background: rgba(31, 41, 55, 0.5); | |
| color: #e2e8f0; | |
| } | |
| :root[data-theme="dark"] .option-button:hover { | |
| border-color: rgba(129, 140, 248, 0.5); | |
| background: rgba(49, 46, 129, 0.3); | |
| } | |
| :root[data-theme="dark"] .option-button.selected { | |
| border-color: rgba(99, 102, 241, 0.85); | |
| background: rgba(49, 46, 129, 0.55); | |
| } | |
| :root[data-theme="dark"] .option-index { | |
| background: rgba(99, 102, 241, 0.2); | |
| color: #a5b4fc; | |
| } | |
| :root[data-theme="dark"] .option-text { | |
| color: #f1f5f9; | |
| } | |
| /* Buttons */ | |
| :root[data-theme="dark"] .secondary-button { | |
| color: #e2e8f0; | |
| background: rgba(99, 102, 241, 0.15); | |
| border-color: rgba(99, 102, 241, 0.25); | |
| } | |
| :root[data-theme="dark"] .ghost-button { | |
| color: #cbd5e1; | |
| border-color: rgba(99, 102, 241, 0.2); | |
| } | |
| /* Results */ | |
| :root[data-theme="dark"] .score-card { | |
| border-color: rgba(99, 102, 241, 0.18); | |
| background: rgba(31, 41, 55, 0.6); | |
| } | |
| :root[data-theme="dark"] .score-card p { | |
| color: #94a3b8; | |
| } | |
| :root[data-theme="dark"] .mini-bar { | |
| background: rgba(99, 102, 241, 0.15); | |
| } | |
| :root[data-theme="dark"] .score-value { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .highlight-panel { | |
| background: rgba(99, 102, 241, 0.12); | |
| border-color: rgba(99, 102, 241, 0.2); | |
| } | |
| /* Messenger components */ | |
| :root[data-theme="dark"] .messenger-header { | |
| background: rgba(17, 24, 39, 0.95); | |
| border-bottom-color: rgba(99, 102, 241, 0.18); | |
| } | |
| :root[data-theme="dark"] .messenger-info h2 { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .messenger-status { | |
| color: #94a3b8; | |
| } | |
| :root[data-theme="dark"] .progress-info span { | |
| color: #cbd5e1; | |
| } | |
| :root[data-theme="dark"] .progress-bar-mini { | |
| background: rgba(99, 102, 241, 0.18); | |
| } | |
| :root[data-theme="dark"] .action-icon-btn { | |
| background: rgba(99, 102, 241, 0.12); | |
| border-color: rgba(99, 102, 241, 0.2); | |
| color: #cbd5e1; | |
| } | |
| :root[data-theme="dark"] .action-icon-btn:hover { | |
| background: rgba(99, 102, 241, 0.2); | |
| } | |
| :root[data-theme="dark"] .action-icon-btn.secondary { | |
| color: #94a3b8; | |
| } | |
| :root[data-theme="dark"] .action-icon-btn.secondary:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| } | |
| :root[data-theme="dark"] .chat-thread { | |
| background: #0f172a; | |
| } | |
| /* Chat bubble styling */ | |
| :root[data-theme="dark"] .chat-message.assistant .chat-bubble { | |
| background: #1e293b; | |
| color: #f1f5f9; | |
| border-color: #334155; | |
| } | |
| :root[data-theme="dark"] .chat-input-area { | |
| background: #111827; | |
| border-top-color: rgba(99, 102, 241, 0.18); | |
| } | |
| :root[data-theme="dark"] .chat-input-area input { | |
| border-color: #334155; | |
| background: #1f2937; | |
| color: #f1f5f9; | |
| } | |
| :root[data-theme="dark"] .chat-input-area input:focus { | |
| border-color: #6366f1; | |
| background: #1f2937; | |
| box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); | |
| } | |
| :root[data-theme="dark"] .chat-input-area input::placeholder { | |
| color: #6b7280; | |
| } | |
| :root[data-theme="dark"] .cancel-pill-btn { | |
| color: #94a3b8; | |
| } | |
| :root[data-theme="dark"] .cancel-pill-btn:hover { | |
| color: #f1f5f9; | |
| } | |
| :root[data-theme="dark"] .quick-replies { | |
| background: #0f172a; | |
| border-top-color: rgba(99, 102, 241, 0.12); | |
| } | |
| :root[data-theme="dark"] .quick-reply-btn { | |
| border-color: #6366f1; | |
| background: #1e293b; | |
| color: #a5b4fc; | |
| } | |
| :root[data-theme="dark"] .quick-reply-btn:hover:not(:disabled) { | |
| background: #6366f1; | |
| color: #ffffff; | |
| } | |
| :root[data-theme="dark"] .quick-reply-btn:disabled { | |
| border-color: #4b5563; | |
| color: #6b7280; | |
| } | |
| /* Modal */ | |
| :root[data-theme="dark"] .modal-backdrop { | |
| background: rgba(0, 0, 0, 0.6); | |
| } | |
| :root[data-theme="dark"] .modal-container { | |
| background: rgba(17, 24, 39, 0.98); | |
| border-color: rgba(99, 102, 241, 0.22); | |
| box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6); | |
| } | |
| :root[data-theme="dark"] .modal-header { | |
| border-bottom-color: rgba(99, 102, 241, 0.18); | |
| background: rgba(17, 24, 39, 0.9); | |
| } | |
| :root[data-theme="dark"] .modal-header h2 { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .modal-close-btn { | |
| color: #94a3b8; | |
| } | |
| :root[data-theme="dark"] .modal-close-btn:hover { | |
| background: rgba(99, 102, 241, 0.15); | |
| color: #f1f5f9; | |
| } | |
| :root[data-theme="dark"] .modal-intro { | |
| color: #cbd5e1; | |
| } | |
| :root[data-theme="dark"] .privacy-section { | |
| background: rgba(99, 102, 241, 0.05); | |
| border-color: rgba(99, 102, 241, 0.12); | |
| } | |
| :root[data-theme="dark"] .privacy-section:hover { | |
| border-color: rgba(99, 102, 241, 0.2); | |
| background: rgba(99, 102, 241, 0.08); | |
| } | |
| :root[data-theme="dark"] .privacy-section-title { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .privacy-list { | |
| color: #cbd5e1; | |
| } | |
| :root[data-theme="dark"] .privacy-list li strong { | |
| color: #f8fafc; | |
| } | |
| :root[data-theme="dark"] .consent-checkbox-wrapper { | |
| background: rgba(34, 197, 94, 0.08); | |
| border-color: rgba(34, 197, 94, 0.2); | |
| } | |
| :root[data-theme="dark"] .consent-checkbox-wrapper:hover { | |
| background: rgba(34, 197, 94, 0.12); | |
| border-color: rgba(34, 197, 94, 0.3); | |
| } | |
| :root[data-theme="dark"] .consent-checkbox-wrapper span { | |
| color: #cbd5e1; | |
| } | |
| :root[data-theme="dark"] .modal-actions { | |
| border-top-color: rgba(99, 102, 241, 0.18); | |
| background: rgba(17, 24, 39, 0.9); | |
| } | |
| /* Warnings */ | |
| :root[data-theme="dark"] .warning-banner { | |
| background: rgba(245, 158, 11, 0.15); | |
| border-color: rgba(245, 158, 11, 0.3); | |
| color: #fef08a; | |
| } | |
| :root[data-theme="dark"] .risk-high { | |
| background: rgba(239, 68, 68, 0.15); | |
| border-color: rgba(239, 68, 68, 0.3); | |
| color: #fca5a5; | |
| } | |
| :root[data-theme="dark"] .risk-moderate { | |
| background: rgba(245, 158, 11, 0.15); | |
| border-color: rgba(245, 158, 11, 0.3); | |
| color: #fde047; | |
| } | |
| /* Mobile responsive adjustments */ | |
| @media (max-width: 800px) { | |
| .theme-toggle-btn { | |
| top: 12px; | |
| right: 12px; | |
| width: 38px; | |
| height: 38px; | |
| } | |
| } | |