/* ======================================== ASSISTENTE INSIGHT 360 — Style System ======================================== */ @import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&display=swap'); :root { /* Brand palette */ --bg-deep: #0a0614; --bg-surface: #110820; --bg-elevated: #1a0e2e; --bg-glass: rgba(255, 255, 255, 0.03); --bg-glass-hover: rgba(255, 255, 255, 0.06); --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16); --text-1: #f5f0ff; --text-2: rgba(245, 240, 255, 0.72); --text-3: rgba(245, 240, 255, 0.48); --text-4: rgba(245, 240, 255, 0.28); --brand-orange: #ff6a3d; --brand-pink: #ff4b7d; --brand-magenta: #d946a0; --grad-brand: linear-gradient(135deg, #ff6a3d 0%, #ff4b7d 50%, #d946a0 100%); --grad-brand-soft: linear-gradient(135deg, rgba(255, 106, 61, 0.15) 0%, rgba(255, 75, 125, 0.15) 50%, rgba(217, 70, 160, 0.15) 100%); --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.4); --shadow-2: 0 8px 32px rgba(0, 0, 0, 0.4); --shadow-glow: 0 0 60px rgba(255, 75, 125, 0.15); --radius-sm: 8px; --radius: 14px; --radius-lg: 20px; --radius-xl: 28px; --easing: cubic-bezier(0.4, 0, 0.2, 1); --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1); } [data-theme="light"] { --bg-deep: #faf7ff; --bg-surface: #ffffff; --bg-elevated: #ffffff; --bg-glass: rgba(0, 0, 0, 0.025); --bg-glass-hover: rgba(0, 0, 0, 0.04); --border: rgba(0, 0, 0, 0.08); --border-strong: rgba(0, 0, 0, 0.14); --text-1: #0a0614; --text-2: rgba(10, 6, 20, 0.7); --text-3: rgba(10, 6, 20, 0.5); --text-4: rgba(10, 6, 20, 0.3); --shadow-2: 0 8px 32px rgba(10, 6, 20, 0.08); --shadow-glow: 0 0 60px rgba(255, 75, 125, 0.1); } /* Reset */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.55; color: var(--text-1); background: var(--bg-deep); min-height: 100dvh; overflow: hidden; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; } /* =========================================== GRADIENT MESH BACKGROUND (atmosphere/depth) =========================================== */ body::before { content: ''; position: fixed; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255, 106, 61, 0.18), transparent 50%), radial-gradient(ellipse 60% 40% at 85% 80%, rgba(217, 70, 160, 0.18), transparent 50%), radial-gradient(ellipse 70% 60% at 60% 50%, rgba(255, 75, 125, 0.10), transparent 60%); pointer-events: none; } [data-theme="light"] body::before { background: radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255, 106, 61, 0.10), transparent 50%), radial-gradient(ellipse 60% 40% at 85% 80%, rgba(217, 70, 160, 0.08), transparent 50%); } /* Grain overlay */ body::after { content: ''; position: fixed; inset: 0; z-index: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3CfeColorMatrix values='0 0 0 0 1, 0 0 0 0 1, 0 0 0 0 1, 0 0 0 .15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: 0.4; pointer-events: none; mix-blend-mode: overlay; } /* ============================ APP LAYOUT ============================ */ .app { position: relative; z-index: 1; display: grid; grid-template-columns: 280px 1fr; height: 100dvh; } /* ============================ SIDEBAR ============================ */ .sidebar { display: flex; flex-direction: column; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-right: 1px solid var(--border); padding: 20px 16px; } .sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border); } .sidebar__logo { width: 38px; height: 38px; flex-shrink: 0; animation: logo-spin 30s linear infinite; } @keyframes logo-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } } .sidebar__title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; } .sidebar__subtitle { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; } .btn-new { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; background: var(--grad-brand); color: #fff; border: 0; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 0.2s var(--easing-spring), box-shadow 0.3s var(--easing); box-shadow: 0 2px 12px rgba(255, 75, 125, 0.25); } .btn-new:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 75, 125, 0.35); } .btn-new:active { transform: translateY(0); } .sidebar__history-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); padding: 16px 8px 8px; } .history { flex: 1; overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; } .history::-webkit-scrollbar { width: 4px; } .history::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; } .history__item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background 0.15s var(--easing); position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .history__item:hover { background: var(--bg-glass-hover); color: var(--text-1); } .history__item.is-active { background: var(--grad-brand-soft); color: var(--text-1); border: 1px solid rgba(255, 75, 125, 0.2); } .history__delete { margin-left: auto; background: none; border: 0; color: var(--text-4); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 4px; opacity: 0; transition: opacity 0.15s, color 0.15s; } .history__item:hover .history__delete { opacity: 1; } .history__delete:hover { color: var(--brand-pink); background: var(--bg-glass); } .sidebar__footer { display: flex; align-items: center; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--border); } .icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); cursor: pointer; transition: all 0.2s var(--easing); } .icon-btn:hover { background: var(--bg-glass-hover); color: var(--text-1); border-color: var(--border-strong); } .icon-btn svg { width: 16px; height: 16px; } .user-pill { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text-2); } .user-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; } /* ============================ CHAT MAIN AREA ============================ */ .chat { display: flex; flex-direction: column; overflow: hidden; } .chat__header { display: flex; align-items: center; gap: 12px; padding: 18px 32px; border-bottom: 1px solid var(--border); } .chat__title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--text-1); flex: 1; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; } .chat__title-mute { color: var(--text-3); font-weight: 500; font-style: italic; } .chat__actions { display: flex; gap: 8px; } .chat__messages { flex: 1; overflow-y: auto; padding: 32px 0; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; scroll-behavior: smooth; } .chat__messages::-webkit-scrollbar { width: 6px; } .chat__messages::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; } /* ============================ WELCOME SCREEN ============================ */ .welcome { max-width: 720px; margin: 4vh auto 0; padding: 40px 32px; text-align: center; opacity: 0; animation: fade-up 0.7s var(--easing) forwards; } @keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .welcome__logo { width: 88px; height: 88px; margin: 0 auto 28px; filter: drop-shadow(0 8px 32px rgba(255, 75, 125, 0.25)); animation: logo-pulse 4s ease-in-out infinite, logo-spin 30s linear infinite; } @keyframes logo-pulse { 0%, 100% { filter: drop-shadow(0 8px 32px rgba(255, 75, 125, 0.25)); } 50% { filter: drop-shadow(0 8px 48px rgba(255, 106, 61, 0.45)); } } .welcome__title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; background: linear-gradient(180deg, var(--text-1) 0%, var(--text-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; } .welcome__title em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; } .welcome__lede { font-size: 17px; color: var(--text-2); max-width: 540px; margin: 0 auto 40px; line-height: 1.5; } .templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; max-width: 580px; margin: 0 auto; } .template { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 16px 16px 14px; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.25s var(--easing); overflow: hidden; font-family: inherit; color: var(--text-1); } .template::before { content: ''; position: absolute; inset: 0; background: var(--grad-brand-soft); opacity: 0; transition: opacity 0.25s var(--easing); pointer-events: none; } .template:hover { border-color: var(--border-strong); transform: translateY(-2px); } .template:hover::before { opacity: 1; } .template__icon { font-size: 22px; margin-bottom: 8px; position: relative; } .template__title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 2px; position: relative; } .template__desc { font-size: 12px; color: var(--text-3); position: relative; } /* ============================ MESSAGES ============================ */ .msg { max-width: 760px; margin: 0 auto; padding: 18px 32px; display: flex; flex-direction: column; gap: 6px; animation: msg-in 0.4s var(--easing); } @keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .msg__role { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px; } .msg__role-dot { width: 6px; height: 6px; border-radius: 50%; } .msg--user .msg__role-dot { background: var(--text-2); } .msg--assistant .msg__role-dot { background: var(--grad-brand); background-image: var(--grad-brand); box-shadow: 0 0 12px rgba(255, 75, 125, 0.5); } .msg__body { font-size: 16px; line-height: 1.6; color: var(--text-1); word-wrap: break-word; } .msg--user .msg__body { background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; } .msg__body p { margin-bottom: 12px; } .msg__body p:last-child { margin-bottom: 0; } .msg__body strong { font-weight: 700; color: var(--text-1); } .msg__body em { font-style: italic; } .msg__body h1, .msg__body h2, .msg__body h3 { font-family: 'Syne', sans-serif; letter-spacing: -0.01em; margin: 16px 0 10px; } .msg__body h2 { font-size: 22px; font-weight: 700; } .msg__body h3 { font-size: 18px; font-weight: 600; } .msg__body ul, .msg__body ol { padding-left: 24px; margin-bottom: 12px; } .msg__body li { margin-bottom: 4px; } .msg__body code { background: var(--bg-glass-hover); padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 13px; } .msg__body pre { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin-bottom: 12px; } .msg__body pre code { background: transparent; padding: 0; } .msg__body hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; } .msg__body blockquote { border-left: 3px solid var(--brand-pink); padding-left: 14px; color: var(--text-2); margin-bottom: 12px; font-style: italic; } .msg__actions { display: flex; gap: 8px; margin-top: 8px; opacity: 0; transition: opacity 0.2s; } .msg:hover .msg__actions { opacity: 1; } .msg__action { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 11px; font-family: 'DM Sans', sans-serif; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text-3); cursor: pointer; transition: all 0.15s; } .msg__action:hover { background: var(--bg-glass-hover); color: var(--text-1); border-color: var(--border-strong); } .msg__action svg { width: 12px; height: 12px; } /* Typing cursor on streaming */ .is-streaming::after { content: '▋'; display: inline-block; margin-left: 2px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; animation: cursor-blink 1s steps(2) infinite; } @keyframes cursor-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } } /* Pipeline status (shown during agentflow before tokens arrive) */ .status-bar { max-width: 760px; margin: 4px auto 0; padding: 0 32px; } .status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--text-2); animation: msg-in 0.3s var(--easing); } .status-spinner { width: 12px; height: 12px; border: 1.5px solid var(--border-strong); border-top-color: var(--brand-pink); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ============================ COMPOSER ============================ */ .composer-wrap { padding: 0 32px 24px; background: linear-gradient(to top, var(--bg-deep) 50%, transparent); } .composer { max-width: 760px; margin: 0 auto; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden; } .composer:focus-within { border-color: rgba(255, 75, 125, 0.4); box-shadow: 0 0 0 4px rgba(255, 75, 125, 0.08), var(--shadow-glow); } .composer__textarea { display: block; width: 100%; min-height: 56px; max-height: 220px; padding: 18px 60px 14px 20px; background: transparent; border: 0; outline: 0; resize: none; color: var(--text-1); font-family: inherit; font-size: 15px; line-height: 1.5; font-weight: 400; } .composer__textarea::placeholder { color: var(--text-4); } .composer__bottom { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px; } .composer__hint { font-size: 11px; color: var(--text-4); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em; } .composer__hint kbd { padding: 2px 5px; background: var(--bg-glass-hover); border: 1px solid var(--border); border-radius: 4px; font-size: 10px; margin: 0 2px; } .btn-send { margin-left: auto; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--grad-brand); border: 0; border-radius: 10px; color: #fff; cursor: pointer; transition: all 0.2s var(--easing-spring); box-shadow: 0 2px 10px rgba(255, 75, 125, 0.3); } .btn-send:hover:not(:disabled) { transform: scale(1.05) rotate(2deg); box-shadow: 0 6px 20px rgba(255, 75, 125, 0.4); } .btn-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; } .btn-send svg { width: 16px; height: 16px; } /* ============================ EMPTY STATE FOR HISTORY ============================ */ .history__empty { font-size: 12px; color: var(--text-4); font-style: italic; padding: 8px 10px; text-align: center; } /* ============================ MOBILE ============================ */ @media (max-width: 768px) { .app { grid-template-columns: 1fr; } .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 100; transform: translateX(-100%); transition: transform 0.3s var(--easing); } .sidebar.is-open { transform: translateX(0); } .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 99; } .sidebar.is-open ~ .sidebar-overlay { display: block; } .chat__header { padding: 14px 16px; } .msg, .composer-wrap, .status-bar { padding-left: 16px; padding-right: 16px; } .welcome { padding: 24px 16px; } } /* ============================ UTILS ============================ */ .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; } .menu-toggle { display: none; } @media (max-width: 768px) { .menu-toggle { display: inline-flex; } }