1068 lines
21 KiB
CSS
1068 lines
21 KiB
CSS
/* ==========================================================================
|
|
CSS GLOBAL & VARIÁVEIS (DESIGN SYSTEM PREMIUM)
|
|
========================================================================== */
|
|
:root {
|
|
--bg-primary: #0d0d0d;
|
|
--bg-secondary: #171717;
|
|
--bg-tertiary: #212121;
|
|
--bg-accent: #2f2f2f;
|
|
|
|
--text-primary: #ececec;
|
|
--text-secondary: #b4b4b4;
|
|
--text-muted: #8e8e8e;
|
|
|
|
--brand-green: #10a37f;
|
|
--brand-green-hover: #1a7f64;
|
|
--brand-glow: rgba(16, 163, 127, 0.15);
|
|
|
|
--error: #ef4444;
|
|
--error-bg: rgba(239, 68, 68, 0.1);
|
|
--success: #22c55e;
|
|
|
|
--border-light: rgba(255, 255, 255, 0.08);
|
|
--border-focus: rgba(16, 163, 127, 0.4);
|
|
|
|
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
--font-display: 'Outfit', var(--font-sans);
|
|
|
|
--sidebar-width: 280px;
|
|
--header-height: 56px;
|
|
--max-chat-width: 768px;
|
|
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
|
|
--transition-fast: 0.15s ease;
|
|
--transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
line-height: 1.5;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
TELA DE LOGIN
|
|
========================================================================== */
|
|
.login-body {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #080808;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.login-glow {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 600px;
|
|
height: 600px;
|
|
background: radial-gradient(circle, rgba(16, 163, 127, 0.12) 0%, rgba(0,0,0,0) 70%);
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.login-container {
|
|
width: 100%;
|
|
max-width: 420px;
|
|
padding: 24px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.login-card {
|
|
background: rgba(23, 23, 23, 0.65);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 24px;
|
|
padding: 40px 32px;
|
|
box-shadow: var(--shadow-xl);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
transform: translateY(0);
|
|
transition: transform var(--transition-slow), border-color var(--transition-normal);
|
|
}
|
|
|
|
.login-card:hover {
|
|
border-color: rgba(16, 163, 127, 0.2);
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.logo-orb {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: radial-gradient(135deg, var(--brand-green) 0%, #0c7359 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-shadow: 0 0 20px rgba(16, 163, 127, 0.4);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.logo-inner {
|
|
font-family: var(--font-display);
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
user-select: none;
|
|
}
|
|
|
|
.login-header h1 {
|
|
font-family: var(--font-display);
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.login-header p {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.login-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.input-group label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.input-wrapper input {
|
|
width: 100%;
|
|
background-color: var(--bg-primary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 12px;
|
|
padding: 14px 16px;
|
|
padding-right: 48px;
|
|
color: var(--text-primary);
|
|
font-size: 16px;
|
|
outline: none;
|
|
font-family: var(--font-sans);
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.input-wrapper input:focus {
|
|
border-color: var(--brand-green);
|
|
box-shadow: 0 0 0 2px var(--brand-glow);
|
|
}
|
|
|
|
.toggle-password {
|
|
position: absolute;
|
|
right: 14px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 4px;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.toggle-password:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.toggle-password svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.error-message {
|
|
font-size: 13px;
|
|
color: #f87171;
|
|
background-color: var(--error-bg);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
border-radius: 8px;
|
|
padding: 10px 14px;
|
|
display: none;
|
|
animation: fadeIn var(--transition-fast);
|
|
}
|
|
|
|
.error-message.visible {
|
|
display: block;
|
|
}
|
|
|
|
.btn-submit {
|
|
background-color: var(--brand-green);
|
|
border: none;
|
|
border-radius: 12px;
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
padding: 14px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 8px;
|
|
box-shadow: 0 4px 12px rgba(16, 163, 127, 0.2);
|
|
transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.btn-submit:hover:not(:disabled) {
|
|
background-color: var(--brand-green-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(16, 163, 127, 0.3);
|
|
}
|
|
|
|
.btn-submit:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-submit:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.arrow-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.btn-submit:hover:not(:disabled) .arrow-icon {
|
|
transform: translateX(3px);
|
|
}
|
|
|
|
/* Animações Login */
|
|
.shake {
|
|
animation: shakeAnimation 0.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes shakeAnimation {
|
|
0%, 100% { transform: translateX(0); }
|
|
20%, 60% { transform: translateX(-6px); }
|
|
40%, 80% { transform: translateX(6px); }
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(-4px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ==========================================================================
|
|
INTERFÁCIL PRINCIPAL - LAYOUT
|
|
========================================================================== */
|
|
.app-container {
|
|
display: flex;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
/* Menu Lateral / Sidebar */
|
|
.sidebar {
|
|
width: var(--sidebar-width);
|
|
background-color: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-light);
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
z-index: 10;
|
|
flex-shrink: 0;
|
|
transition: transform var(--transition-slow);
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.btn-new-chat {
|
|
flex: 1;
|
|
background-color: transparent;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: background-color var(--transition-fast), border-color var(--transition-fast);
|
|
}
|
|
|
|
.btn-new-chat:hover {
|
|
background-color: var(--bg-accent);
|
|
border-color: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.btn-new-chat svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.btn-close-sidebar {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 6px;
|
|
border-radius: 6px;
|
|
display: none; /* Apenas no mobile */
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color var(--transition-fast), color var(--transition-fast);
|
|
}
|
|
|
|
.btn-close-sidebar:hover {
|
|
background-color: var(--bg-accent);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-close-sidebar svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Histórico de Chat */
|
|
.chat-history {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.chat-history::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.chat-history::-webkit-scrollbar-thumb {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.chat-history::-webkit-scrollbar-thumb:hover {
|
|
background-color: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.history-group h3 {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.history-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.history-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
color: var(--text-primary);
|
|
font-size: 13.5px;
|
|
gap: 10px;
|
|
text-decoration: none;
|
|
position: relative;
|
|
transition: background-color var(--transition-fast);
|
|
group-hover: opacity 1;
|
|
}
|
|
|
|
.history-item:hover {
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.history-item.active {
|
|
background-color: var(--bg-accent);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.history-item-title {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex: 1;
|
|
}
|
|
|
|
.history-item-actions {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.history-item:hover .history-item-actions {
|
|
display: flex;
|
|
}
|
|
|
|
.btn-history-action {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
border-radius: 4px;
|
|
transition: color var(--transition-fast), background-color var(--transition-fast);
|
|
}
|
|
|
|
.btn-history-action:hover {
|
|
color: var(--text-primary);
|
|
background-color: rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.btn-history-action svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Rodapé Sidebar */
|
|
.sidebar-footer {
|
|
padding: 16px;
|
|
border-top: 1px solid var(--border-light);
|
|
}
|
|
|
|
.user-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 6px;
|
|
border-radius: 12px;
|
|
position: relative;
|
|
}
|
|
|
|
.avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: white;
|
|
user-select: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-avatar {
|
|
background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
|
|
}
|
|
|
|
.bot-avatar {
|
|
background: radial-gradient(135deg, var(--brand-green) 0%, #0a5f49 100%);
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-status {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.btn-logout {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 6px;
|
|
border-radius: 6px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
transition: color var(--transition-fast), background-color var(--transition-fast);
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
color: var(--error);
|
|
background-color: rgba(239, 68, 68, 0.05);
|
|
}
|
|
|
|
.btn-logout svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* Overlay da Sidebar no Mobile */
|
|
.sidebar-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
z-index: 9;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity var(--transition-normal);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
ÁREA DE CONVERSA PRINCIPAL
|
|
========================================================================== */
|
|
.chat-area {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
background-color: var(--bg-primary);
|
|
position: relative;
|
|
}
|
|
|
|
/* Header */
|
|
.chat-header {
|
|
height: var(--header-height);
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid var(--border-light);
|
|
background-color: rgba(13, 13, 13, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 8;
|
|
}
|
|
|
|
.btn-menu {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color var(--transition-fast), background-color var(--transition-fast);
|
|
}
|
|
|
|
.btn-menu:hover {
|
|
color: var(--text-primary);
|
|
background-color: var(--bg-secondary);
|
|
}
|
|
|
|
.btn-menu svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.model-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
transition: background-color var(--transition-fast), color var(--transition-fast);
|
|
}
|
|
|
|
.model-badge:hover {
|
|
background-color: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.model-badge svg.chevron {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.btn-new-chat-mobile {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
display: none; /* Apenas no mobile */
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color var(--transition-fast), background-color var(--transition-fast);
|
|
}
|
|
|
|
.btn-new-chat-mobile:hover {
|
|
color: var(--text-primary);
|
|
background-color: var(--bg-secondary);
|
|
}
|
|
|
|
.btn-new-chat-mobile svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Container de Mensagens */
|
|
.messages-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 24px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar-thumb {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar-thumb:hover {
|
|
background-color: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
/* Tela de Boas-Vindas */
|
|
.welcome-container {
|
|
max-width: 580px;
|
|
margin: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
gap: 24px;
|
|
padding: 40px 16px;
|
|
}
|
|
|
|
.welcome-logo {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.welcome-logo .logo-outer {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: radial-gradient(135deg, var(--brand-green) 0%, #0a5f49 100%);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-shadow: 0 0 16px var(--brand-glow);
|
|
}
|
|
|
|
.welcome-logo .logo-inner {
|
|
font-family: var(--font-display);
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: white;
|
|
}
|
|
|
|
.welcome-container h2 {
|
|
font-family: var(--font-display);
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.suggestions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
width: 100%;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.suggestion-card {
|
|
background-color: var(--bg-secondary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 12px;
|
|
padding: 14px 16px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
|
|
}
|
|
|
|
.suggestion-card:hover {
|
|
background-color: var(--bg-tertiary);
|
|
border-color: rgba(255, 255, 255, 0.12);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.suggestion-card h4 {
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.suggestion-card p {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Lista de Conversa */
|
|
.conversation-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
max-width: var(--max-chat-width);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.message-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 24px 0;
|
|
border-bottom: 1px solid var(--border-light);
|
|
animation: fadeInUp var(--transition-normal);
|
|
}
|
|
|
|
.message-row.user {
|
|
/* Alinhamento sutil para o usuário se destacar */
|
|
}
|
|
|
|
.message-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.message-content {
|
|
flex: 1;
|
|
overflow-x: auto;
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.message-content p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.message-content p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.message-content h1, .message-content h2, .message-content h3 {
|
|
font-family: var(--font-display);
|
|
font-weight: 600;
|
|
margin: 16px 0 8px 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.message-content h1 { font-size: 20px; }
|
|
.message-content h2 { font-size: 18px; }
|
|
.message-content h3 { font-size: 16px; }
|
|
|
|
.message-content ul, .message-content ol {
|
|
margin-bottom: 12px;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.message-content li {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Bloco de Código Markdown */
|
|
.code-container {
|
|
background-color: #1e1e1e;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
margin: 16px 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.code-header {
|
|
background-color: #2d2d2d;
|
|
padding: 8px 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.code-lang {
|
|
font-family: monospace;
|
|
text-transform: lowercase;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-copy-code {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
transition: color var(--transition-fast), background-color var(--transition-fast);
|
|
}
|
|
|
|
.btn-copy-code:hover {
|
|
color: var(--text-primary);
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.btn-copy-code svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.code-container pre {
|
|
margin: 0;
|
|
padding: 16px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.code-container code {
|
|
font-family: 'Fira Code', 'Courier New', Courier, monospace;
|
|
font-size: 13.5px;
|
|
background: none;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* Código inline */
|
|
code {
|
|
font-family: monospace;
|
|
font-size: 14px;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Cursor de digitação (Streaming) */
|
|
.typing-cursor {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 15px;
|
|
background-color: var(--text-primary);
|
|
margin-left: 2px;
|
|
vertical-align: middle;
|
|
animation: blink 0.8s step-end infinite;
|
|
}
|
|
|
|
/* Rodapé / Input Area */
|
|
.chat-footer {
|
|
padding: 16px;
|
|
background-color: var(--bg-primary);
|
|
}
|
|
|
|
.input-container {
|
|
max-width: var(--max-chat-width);
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.input-box {
|
|
background-color: var(--bg-secondary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 20px;
|
|
padding: 10px 14px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 10px;
|
|
box-shadow: var(--shadow-lg);
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.input-box:focus-within {
|
|
border-color: var(--border-focus);
|
|
}
|
|
|
|
.input-box textarea {
|
|
flex: 1;
|
|
background: none;
|
|
border: none;
|
|
outline: none;
|
|
color: var(--text-primary);
|
|
font-family: var(--font-sans);
|
|
font-size: 15px;
|
|
resize: none;
|
|
max-height: 200px;
|
|
padding: 6px 0;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.input-box button[type="submit"] {
|
|
background-color: var(--text-primary);
|
|
color: var(--bg-primary);
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition: background-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
|
|
}
|
|
|
|
.input-box button[type="submit"]:hover:not(:disabled) {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.input-box button[type="submit"]:disabled {
|
|
opacity: 0.2;
|
|
cursor: not-allowed;
|
|
background-color: var(--bg-accent);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.input-box button[type="submit"] svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.disclaimer {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
ANIMAÇÕES
|
|
========================================================================== */
|
|
@keyframes blink {
|
|
from, to { background-color: transparent }
|
|
50% { background-color: var(--text-primary) }
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* ==========================================================================
|
|
MEDIA QUERIES (RESPONSIVIDADE MOBILE-FIRST)
|
|
========================================================================== */
|
|
@media (max-width: 768px) {
|
|
/* No Mobile, a Sidebar fica escondida por padrão e abre em overlay */
|
|
.sidebar {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
transform: translateX(-100%);
|
|
box-shadow: var(--shadow-xl);
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.sidebar.open + .sidebar-overlay {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.btn-close-sidebar {
|
|
display: flex;
|
|
}
|
|
|
|
.btn-new-chat-mobile {
|
|
display: flex;
|
|
}
|
|
|
|
.suggestions-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.messages-container {
|
|
padding: 16px 12px;
|
|
}
|
|
|
|
.message-row {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.message-content {
|
|
font-size: 14.5px;
|
|
}
|
|
|
|
.welcome-container h2 {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
/* Em desktop, mantemos o botão menu invisível ou esconde a sidebar sutilmente */
|
|
/* Caso queira ocultar a sidebar no desktop, podemos controlar com a classe .sidebar-collapsed no container */
|
|
.app-container.sidebar-collapsed .sidebar {
|
|
display: none;
|
|
}
|
|
}
|