/* ══════════════════════════════════════════════════════════════ ChatNCT — Premium Design System v3.0 Inspired by Google Material Design 3 & modern SaaS products ══════════════════════════════════════════════════════════════ */ /* ── Google Fonts ──────────────────────────────────────────── */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap'); /* ── CSS Variables — Dark Mode (Default) ────────────────────── */ /* Classic ChatNCT purple palette on Premium UI v3.0 structure */ :root, [data-theme="dark"] { /* Core surfaces */ --bg-primary: #1a173a; --bg-secondary: #1c1a4a; --bg-elevated: #221f52; --bg-surface: rgba(28, 26, 74, 0.85); --bg-surface-hover: rgba(35, 32, 88, 0.9); /* Card & panel backgrounds */ --card-bg: rgba(28, 26, 74, 0.95); --card-border: rgba(124, 102, 227, 0.15); --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3); --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(124, 102, 227, 0.2); /* Input fields */ --input-bg: rgba(62, 58, 131, 0.8); --input-border: rgba(124, 102, 227, 0.4); --input-focus-border: #7c66e3; --input-focus-ring: rgba(124, 102, 227, 0.15); /* Typography */ --text-primary: #ffffff; --text-secondary: #b0a9ff; --text-tertiary: #ddd8fd; --text-inverse: #1a173a; /* Accent colors */ --accent: #7c66e3; --accent-hover: #5c4eb3; --accent-muted: rgba(124, 102, 227, 0.15); --accent-subtle: rgba(124, 102, 227, 0.08); --accent-gradient: linear-gradient(135deg, #7c66e3 0%, #5c4eb3 50%, #4c429c 100%); /* Semantic colors */ --success: #34d399; --success-muted: rgba(52, 211, 153, 0.12); --error: #f87171; --error-muted: rgba(248, 113, 113, 0.12); --warning: #fbbf24; /* Sidebar */ --sidebar-bg: linear-gradient(180deg, rgba(26, 23, 58, 0.98), rgba(28, 26, 74, 0.98)); --sidebar-border: rgba(124, 102, 227, 0.2); /* Navbar */ --navbar-bg: rgba(26, 23, 58, 0.85); /* Chat */ --message-user: #4f46e5; --message-bot-text: #d1d1e0; /* Scrollbar */ --scrollbar-thumb: rgba(124, 102, 227, 0.35); --scrollbar-thumb-hover: rgba(124, 102, 227, 0.55); /* Misc */ --divider: rgba(124, 102, 227, 0.25); --overlay: rgba(0, 0, 0, 0.5); --glow-color: rgba(124, 102, 227, 0.45); --glow-color-secondary: rgba(76, 66, 156, 0.55); /* ── Image Sizes (Keep from original) ─────── */ --img-logo-header: 50px; --img-logo-header-mobile: 40px; --img-logo-sidebar: 30px; --img-robot-navbar: 50px; --img-robot-dashboard: 170px; --img-robot-dashboard-mob: 130px; --img-robot-login: 450px; --img-action-card: 45px; --img-action-card-mob: 35px; } /* ── CSS Variables — Light Mode ─────────────────────────────── */ [data-theme="light"] { --bg-primary: #f0eeff; --bg-secondary: #e8e4ff; --bg-elevated: #ffffff; --bg-surface: rgba(255, 255, 255, 0.9); --bg-surface-hover: rgba(243, 240, 255, 0.95); --card-bg: rgba(255, 255, 255, 0.97); --card-border: rgba(124, 102, 227, 0.15); --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04); --card-hover-shadow: 0 8px 32px rgba(124, 102, 227, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06); --input-bg: rgba(230, 225, 255, 0.85); --input-border: rgba(124, 102, 227, 0.3); --input-focus-border: #7c66e3; --input-focus-ring: rgba(124, 102, 227, 0.12); --text-primary: #1a173a; --text-secondary: #5c4eb3; --text-tertiary: #7c66e3; --text-inverse: #ffffff; --accent: #7c66e3; --accent-hover: #5c4eb3; --accent-muted: rgba(124, 102, 227, 0.1); --accent-subtle: rgba(124, 102, 227, 0.06); --accent-gradient: linear-gradient(135deg, #7c66e3 0%, #5c4eb3 50%, #4c429c 100%); --success: #10b981; --success-muted: rgba(16, 185, 129, 0.08); --error: #ef4444; --error-muted: rgba(239, 68, 68, 0.08); --warning: #f59e0b; --sidebar-bg: linear-gradient(180deg, rgba(245, 242, 255, 0.99), rgba(235, 230, 255, 0.99)); --sidebar-border: rgba(124, 102, 227, 0.15); --navbar-bg: rgba(245, 242, 255, 0.9); --message-user: #6366f1; --message-bot-text: #374151; --scrollbar-thumb: rgba(124, 102, 227, 0.2); --scrollbar-thumb-hover: rgba(124, 102, 227, 0.35); --divider: rgba(124, 102, 227, 0.2); --overlay: rgba(0, 0, 0, 0.3); --glow-color: rgba(124, 102, 227, 0.22); --glow-color-secondary: rgba(76, 66, 156, 0.28); } /* ── Reset ──────────────────────────────────────────────────── */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } /* ── Global Theme Transition ────────────────────────────────── */ html { transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1); } body, .sidebar, .navbar, .card-bg, .panel-card, .qr-card, .login-card, input, textarea, select, button { transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1); } body { height: 100vh; height: 100dvh; background: var(--bg-primary); color: var(--text-primary); width: 100%; overflow: hidden; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; } /* ── Animated Background — Refined ─────────────────────────── */ .animated-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none; } .particle { position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%); animation: particleFloat 25s infinite ease-in-out; opacity: 0.65; } .particle:nth-child(1) { width: 300px; height: 300px; top: 10%; left: 5%; animation-delay: 0s; } .particle:nth-child(2) { width: 200px; height: 200px; top: 60%; left: 75%; animation-delay: -5s; } .particle:nth-child(3) { width: 150px; height: 150px; top: 70%; left: 15%; animation-delay: -10s; } .particle:nth-child(4) { width: 250px; height: 250px; top: 30%; left: 80%; animation-delay: -3s; } .particle:nth-child(5) { width: 180px; height: 180px; top: 15%; left: 45%; animation-delay: -7s; } .particle:nth-child(6) { width: 220px; height: 220px; top: 75%; left: 60%; animation-delay: -12s; } .particle:nth-child(7) { width: 120px; height: 120px; top: 85%; left: 25%; animation-delay: -5s; } .particle:nth-child(8) { width: 200px; height: 200px; top: 5%; left: 70%; animation-delay: -4s; } .particle:nth-child(9) { width: 100px; height: 100px; top: 45%; left: 50%; animation-delay: -15s; } .particle:nth-child(10) { width: 160px; height: 160px; top: 50%; left: 30%; animation-delay: -9s; } @keyframes particleFloat { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.45; } 25% { transform: translate(120px, -100px) scale(1.2) rotate(45deg); opacity: 0.75; } 50% { transform: translate(-100px, 140px) scale(0.85) rotate(90deg); opacity: 0.5; } 75% { transform: translate(90px, 80px) scale(1.1) rotate(135deg); opacity: 0.7; } } .glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: orbPulse 16s infinite ease-in-out; } .glow-orb:nth-child(1) { width: 400px; height: 400px; background: var(--glow-color); top: 20%; left: 15%; } .glow-orb:nth-child(2) { width: 300px; height: 300px; background: var(--glow-color-secondary, var(--glow-color)); bottom: 15%; right: 20%; animation-delay: -8s; } @keyframes orbPulse { 0%, 100% { opacity: 0.45; transform: scale(1) translate(0, 0); } 50% { opacity: 0.75; transform: scale(1.25) translate(60px, -40px); } } /* ── Sidebar ────────────────────────────────────────────────── */ .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--overlay); backdrop-filter: blur(4px); z-index: 9998; opacity: 0; visibility: hidden; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); } .sidebar-overlay.active { opacity: 1; visibility: visible; } .sidebar { position: fixed; top: 0; left: -320px; width: 320px; height: 100%; background: var(--sidebar-bg); backdrop-filter: blur(24px) saturate(180%); z-index: 9999; transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: 4px 0 32px rgba(0, 0, 0, 0.2); border-right: 1px solid var(--sidebar-border); } .sidebar.active { left: 0; } .sidebar-header { padding: 24px 20px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; } .sidebar-logo, .header-logo { cursor: pointer; transition: opacity 0.2s ease, transform 0.2s ease; } .sidebar-logo:hover, .header-logo:hover { opacity: 0.85; transform: scale(1.02); } .sidebar-logo img { height: auto; width: 180px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(124, 102, 227, 0.45)); } .sidebar-close { background: var(--accent-muted); border: 1px solid transparent; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); color: var(--text-secondary); font-size: 15px; } .sidebar-close:hover { background: var(--accent); color: white; transform: rotate(90deg); } .sidebar-menu { flex: 1; padding: 12px 0; overflow-y: auto; } .sidebar-menu::-webkit-scrollbar { width: 4px; } .sidebar-menu::-webkit-scrollbar-track { background: transparent; } .sidebar-menu::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; } .menu-item { padding: 12px 20px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; border-left: 3px solid transparent; margin: 2px 8px; border-radius: 10px; border-left: none; } .menu-item:hover { background: var(--accent-muted); color: var(--text-primary); } .menu-item.active { background: var(--accent-muted); color: var(--accent); font-weight: 600; } .menu-item i { width: 22px; font-size: 16px; color: var(--text-tertiary); transition: color 0.2s ease; } .menu-item:hover i, .menu-item.active i { color: var(--accent); } .menu-divider { height: 1px; background: var(--divider); margin: 8px 20px; } .sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 10px; } .user-info-brief { display: flex; align-items: center; gap: 12px; padding: 4px 0; } .user-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: white; letter-spacing: -0.02em; } .user-name { color: var(--text-primary); font-size: 14px; font-weight: 600; } .sidebar-login { text-decoration: none; color: var(--text-secondary); background: var(--accent-subtle); border: 1px solid var(--divider); padding: 10px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; } .sidebar-login:hover { background: var(--error-muted); border-color: var(--error); color: var(--error); } /* ── Theme Toggle Button ─────────────────────────────────────── */ .theme-toggle-btn { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; cursor: pointer; background: var(--accent-subtle); border: 1px solid var(--divider); color: var(--text-secondary); font-size: 13px; font-weight: 500; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; font-family: 'Inter', sans-serif; } .theme-toggle-btn:hover { background: var(--accent-muted); color: var(--text-primary); } .theme-toggle-btn .toggle-label { display: flex; align-items: center; gap: 8px; } .theme-toggle-btn .toggle-track { width: 40px; height: 22px; border-radius: 11px; background: var(--accent-muted); position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--divider); flex-shrink: 0; } .theme-toggle-btn .toggle-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); } [data-theme="light"] .theme-toggle-btn .toggle-thumb { left: 20px; background: #f59e0b; } [data-theme="light"] .theme-toggle-btn .toggle-track { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); } /* ── Navbar ─────────────────────────────────────────────────── */ .navbar { position: fixed; top: 0; left: 0; width: 100%; height: 72px; background: var(--navbar-bg); backdrop-filter: blur(20px) saturate(180%); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; z-index: 1000; border-bottom: 1px solid var(--divider); } .navbar-left { display: flex; align-items: center; gap: 16px; } .navbar-left .chat-robot-icon { width: var(--img-robot-navbar); height: var(--img-robot-navbar); animation: subtleFloat 4s infinite ease-in-out; } .navbar-left .chat-robot-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(124, 102, 227, 0.45)); } .navbar-left .chat-status { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 500; } .navbar-left .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: statusPulse 2s infinite ease-in-out; } @keyframes statusPulse { 0%, 100% { box-shadow: 0 0 4px var(--success); } 50% { box-shadow: 0 0 12px var(--success); } } .header-logo img { height: var(--img-logo-header) !important; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(124, 102, 227, 0.45)); } .menu-toggle { width: 44px; height: 44px; background: var(--accent-muted); border: 1px solid var(--divider); border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); } .menu-toggle:hover { background: var(--accent); border-color: var(--accent); } .menu-toggle:hover span { background: white; } .menu-toggle span { width: 20px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } .menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); } .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); } /* ── Animations ─────────────────────────────────────────────── */ @keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } } @keyframes subtleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } @keyframes floatRobot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } } @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } /* ── Notification ───────────────────────────────────────────── */ .notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 12px 24px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); z-index: 10001; animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); max-width: 90vw; backdrop-filter: blur(10px); } /* ── Responsive ─────────────────────────────────────────────── */ @media (max-width: 768px) { .sidebar { width: 300px; left: -300px; } .navbar { padding: 0 16px; height: 64px; } .menu-toggle { width: 40px; height: 40px; } .header-logo img { height: var(--img-logo-header-mobile) !important; } } @media (max-width: 480px) { .sidebar { width: 280px; left: -280px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } /* ── Utility: Smooth scrollbar ─────────────────────────────── */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 6px; } ::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }