1317 lines
28 KiB
CSS
1317 lines
28 KiB
CSS
:root {
|
|
/* Lobe UI - Colores Base (Modo Oscuro Glassmorphism) */
|
|
--bg-primary: #0a0a0a; /* Dark base */
|
|
--bg-secondary: #111111; /* Secondary dark */
|
|
--bg-tertiary: rgba(255, 255, 255, 0.03); /* Subtle overlay */
|
|
--bg-elevated: rgba(255, 255, 255, 0.05); /* Elevated surface */
|
|
--bg-hover: rgba(255, 255, 255, 0.08); /* Hover state */
|
|
--bg-active: rgba(255, 255, 255, 0.12); /* Active state */
|
|
|
|
/* Lobe UI - Glassmorphism Effects */
|
|
--glass-bg: rgba(17, 17, 17, 0.7); /* Glass background */
|
|
--glass-border: rgba(255, 255, 255, 0.08);/* Glass border */
|
|
--blur-amount: 20px; /* Backdrop blur */
|
|
|
|
/* Lobe UI - Colores de Texto */
|
|
--text-primary: #ffffff; /* Pure white */
|
|
--text-secondary: rgba(255, 255, 255, 0.7);/* Secondary text */
|
|
--text-tertiary: rgba(255, 255, 255, 0.45);/* Tertiary text */
|
|
--text-quaternary: rgba(255, 255, 255, 0.25);/* Disabled text */
|
|
|
|
/* Lobe UI - Gradientes Vibrantes */
|
|
--gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
--gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
|
--gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
|
--gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
|
|
--gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
|
|
|
|
/* Lobe UI - Colores de Acento */
|
|
--accent-primary: #667eea; /* Purple primary */
|
|
--accent-secondary: #764ba2; /* Purple dark */
|
|
--accent-hover: #7d8ff5; /* Lighter purple */
|
|
--accent-active: #5568d3; /* Darker purple */
|
|
--accent-light: rgba(102, 126, 234, 0.15); /* Light purple bg */
|
|
|
|
/* Lobe UI - Colores Semánticos */
|
|
--color-success: #43e97b;
|
|
--color-warning: #ffd93d;
|
|
--color-error: #ff6b9d;
|
|
--color-info: #4facfe;
|
|
|
|
/* Lobe UI - Mensajes */
|
|
--message-user-bg: rgba(102, 126, 234, 0.1); /* Purple tint */
|
|
--message-ai-bg: rgba(255, 255, 255, 0.03); /* Subtle bg */
|
|
--message-hover-bg: rgba(255, 255, 255, 0.05);
|
|
|
|
/* Lobe UI - Bordes */
|
|
--border-primary: rgba(255, 255, 255, 0.08);
|
|
--border-secondary: rgba(255, 255, 255, 0.05);
|
|
--border-focus: rgba(102, 126, 234, 0.4);
|
|
|
|
/* Lobe UI - Sombras (más pronunciadas) */
|
|
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
|
|
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
|
|
--shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
|
|
--shadow-focus: 0 0 0 4px rgba(102, 126, 234, 0.2);
|
|
|
|
/* Lobe UI - Transiciones Suaves */
|
|
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
|
|
/* Lobe UI - Bordes Redondeados */
|
|
--radius-xs: 6px;
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 20px;
|
|
--radius-2xl: 24px;
|
|
--radius-3xl: 32px;
|
|
--radius-full: 9999px;
|
|
|
|
/* Lobe UI - Espaciado */
|
|
--spacing-xs: 4px;
|
|
--spacing-sm: 8px;
|
|
--spacing-md: 12px;
|
|
--spacing-lg: 16px;
|
|
--spacing-xl: 20px;
|
|
--spacing-2xl: 24px;
|
|
--spacing-3xl: 32px;
|
|
--spacing-4xl: 48px;
|
|
|
|
/* Lobe UI - Tipografía */
|
|
--font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
background: var(--bg-primary);
|
|
background-image:
|
|
radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
|
|
radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
|
|
radial-gradient(circle at 40% 20%, rgba(79, 172, 254, 0.06) 0%, transparent 50%);
|
|
background-attachment: fixed;
|
|
color: var(--text-primary);
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.app-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
/* ==================== Sidebar - Lobe UI Style ==================== */
|
|
.sidebar {
|
|
width: 280px;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(var(--blur-amount));
|
|
-webkit-backdrop-filter: blur(var(--blur-amount));
|
|
border-right: 1px solid var(--glass-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: transform var(--transition-base);
|
|
position: relative;
|
|
z-index: 1000;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: var(--spacing-lg);
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border-secondary);
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-primary);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.new-chat-btn {
|
|
flex: 1;
|
|
padding: var(--spacing-md);
|
|
background: var(--gradient-primary);
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
color: white;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--spacing-sm);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
box-shadow: var(--shadow-md);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.new-chat-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.new-chat-btn:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.new-chat-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
}
|
|
|
|
.new-chat-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Chat History - Lobe UI Style */
|
|
.chat-history {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: var(--spacing-sm);
|
|
}
|
|
|
|
.chat-history::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.chat-history::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.chat-history::-webkit-scrollbar-thumb {
|
|
background: var(--border-primary);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.chat-history::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border-focus);
|
|
}
|
|
|
|
.chat-history-section {
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--text-tertiary);
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.chat-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-md);
|
|
padding: var(--spacing-md);
|
|
border-radius: var(--radius-lg);
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
margin-bottom: var(--spacing-xs);
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.chat-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: var(--radius-lg);
|
|
background: var(--bg-elevated);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
z-index: -1;
|
|
}
|
|
|
|
.chat-item:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chat-item:hover {
|
|
color: var(--text-primary);
|
|
border-color: var(--border-primary);
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
.chat-item.active {
|
|
background: var(--accent-light);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-focus);
|
|
}
|
|
|
|
.chat-item.active::before {
|
|
opacity: 0;
|
|
}
|
|
|
|
.chat-item svg {
|
|
flex-shrink: 0;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.chat-item:hover svg,
|
|
.chat-item.active svg {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chat-item-title {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chat-item-actions {
|
|
opacity: 0;
|
|
display: flex;
|
|
gap: var(--spacing-xs);
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.chat-item:hover .chat-item-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.chat-item-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.chat-item-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-focus);
|
|
}
|
|
|
|
/* Sidebar Footer - Lobe UI Style */
|
|
.sidebar-footer {
|
|
padding: var(--spacing-lg);
|
|
border-top: 1px solid var(--border-secondary);
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
.user-profile {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-md);
|
|
padding: var(--spacing-md);
|
|
background: transparent;
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-lg);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-profile:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-focus);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: var(--gradient-primary);
|
|
border-radius: var(--radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.user-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.user-plan {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.user-chevron {
|
|
color: var(--text-secondary);
|
|
flex-shrink: 0;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.user-profile:hover .user-chevron {
|
|
transform: translateY(2px);
|
|
}
|
|
|
|
/* ==================== Main Chat Area - Lobe UI Style ==================== */
|
|
.chat-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary);
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.mobile-header {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--spacing-md) var(--spacing-lg);
|
|
background: var(--bg-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.mobile-menu-btn,
|
|
.new-chat-btn-mobile {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.mobile-menu-btn:hover,
|
|
.new-chat-btn-mobile:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.mobile-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.messages-wrapper {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.messages-wrapper::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.messages-wrapper::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.messages-wrapper::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.messages-wrapper::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border-light);
|
|
}
|
|
|
|
.messages-container {
|
|
max-width: 48rem; /* Mismo ancho que ChatGPT */
|
|
margin: 0 auto;
|
|
padding: var(--spacing-2xl) var(--spacing-lg);
|
|
width: 100%;
|
|
}
|
|
|
|
/* Welcome Message - Lobe UI Gradient Style */
|
|
.welcome-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--spacing-4xl) var(--spacing-lg);
|
|
min-height: 60vh;
|
|
}
|
|
|
|
.logo-wrapper {
|
|
margin-bottom: var(--spacing-3xl);
|
|
position: relative;
|
|
}
|
|
|
|
.logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: var(--gradient-primary);
|
|
border-radius: var(--radius-xl);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
animation: pulse 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
transform: scale(1);
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
}
|
|
50% {
|
|
transform: scale(1.05);
|
|
box-shadow: var(--shadow-xl), 0 0 30px rgba(102, 126, 234, 0.5);
|
|
}
|
|
}
|
|
|
|
.welcome-message h2 {
|
|
font-size: 36px;
|
|
font-weight: 700;
|
|
margin-bottom: var(--spacing-md);
|
|
text-align: center;
|
|
color: var(--text-primary);
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* Suggestion Cards - Lobe UI Glassmorphism Style */
|
|
.suggestion-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
gap: var(--spacing-lg);
|
|
width: 100%;
|
|
max-width: 52rem;
|
|
margin-top: var(--spacing-4xl);
|
|
}
|
|
|
|
.suggestion-card {
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius-xl);
|
|
padding: var(--spacing-xl);
|
|
cursor: pointer;
|
|
transition: all var(--transition-base);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--spacing-md);
|
|
text-align: left;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.suggestion-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--gradient-primary);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-base);
|
|
z-index: -1;
|
|
}
|
|
|
|
.suggestion-card:hover::before {
|
|
opacity: 0.08;
|
|
}
|
|
|
|
.suggestion-card:hover {
|
|
background: var(--bg-elevated);
|
|
border-color: var(--border-focus);
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
}
|
|
|
|
.suggestion-card:active {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.suggestion-icon {
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
|
|
}
|
|
|
|
.suggestion-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.suggestion-content h3 {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.suggestion-content p {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Message Bubbles - Lobe UI Glassmorphism Style */
|
|
.message {
|
|
display: flex;
|
|
gap: var(--spacing-2xl);
|
|
padding: var(--spacing-2xl) 0;
|
|
animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border-bottom: 1px solid var(--border-secondary);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Usuario - estilo Lobe UI con glassmorphism */
|
|
.message.user {
|
|
background: var(--message-user-bg);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
margin: 0 calc(var(--spacing-2xl) * -1);
|
|
padding: var(--spacing-2xl) var(--spacing-2xl);
|
|
border-left: 2px solid var(--accent-primary);
|
|
}
|
|
|
|
/* AI - estilo Lobe UI sutil */
|
|
.message.ai {
|
|
background: var(--message-ai-bg);
|
|
margin: 0 calc(var(--spacing-2xl) * -1);
|
|
padding: var(--spacing-2xl) var(--spacing-2xl);
|
|
}
|
|
|
|
.message:hover {
|
|
background: var(--message-hover-bg);
|
|
}
|
|
|
|
.message-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--radius-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
position: relative;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
/* Avatar del usuario - gradiente purple de Lobe UI */
|
|
.message.user .message-avatar {
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
}
|
|
|
|
/* Avatar de AI - gradiente cyan de Lobe UI */
|
|
.message.ai .message-avatar {
|
|
background: var(--gradient-accent);
|
|
color: white;
|
|
}
|
|
|
|
.message-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
max-width: 52rem;
|
|
}
|
|
|
|
.message-text {
|
|
font-size: 15px;
|
|
line-height: 1.75;
|
|
color: var(--text-primary);
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.message-text p {
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.message-text p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.message-text code {
|
|
background: var(--bg-elevated);
|
|
color: var(--accent-primary);
|
|
padding: 3px 8px;
|
|
border-radius: var(--radius-sm);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9em;
|
|
border: 1px solid var(--border-primary);
|
|
}
|
|
|
|
.message-text pre {
|
|
background: var(--bg-elevated);
|
|
padding: var(--spacing-lg);
|
|
border-radius: var(--radius-lg);
|
|
overflow-x: auto;
|
|
margin: var(--spacing-lg) 0;
|
|
border: 1px solid var(--border-primary);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.message-text pre code {
|
|
background: none;
|
|
padding: 0;
|
|
color: var(--text-primary);
|
|
border: none;
|
|
}
|
|
|
|
/* Acciones del mensaje (hover) - Lobe UI style */
|
|
.message-actions {
|
|
display: flex;
|
|
gap: var(--spacing-xs);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
margin-top: var(--spacing-md);
|
|
}
|
|
|
|
.message:hover .message-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.message-action-btn {
|
|
padding: var(--spacing-xs) var(--spacing-md);
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-xs);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.message-action-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-focus);
|
|
transform: translateY(-1px);
|
|
}
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.message-text pre {
|
|
background: var(--bg-primary);
|
|
padding: var(--spacing-lg);
|
|
border-radius: var(--radius-md);
|
|
overflow-x: auto;
|
|
margin: var(--spacing-md) 0;
|
|
}
|
|
|
|
.message-text pre code {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Typing Indicator */
|
|
.typing-indicator {
|
|
display: flex;
|
|
gap: var(--spacing-lg);
|
|
padding: var(--spacing-xl) 0;
|
|
}
|
|
|
|
.typing-dots {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: var(--spacing-md) 0;
|
|
}
|
|
|
|
.typing-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--text-tertiary);
|
|
border-radius: var(--radius-full);
|
|
animation: typing 1.4s infinite;
|
|
}
|
|
|
|
.typing-dot:nth-child(2) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.typing-dot:nth-child(3) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
@keyframes typing {
|
|
0%, 60%, 100% {
|
|
transform: translateY(0);
|
|
opacity: 0.5;
|
|
}
|
|
30% {
|
|
transform: translateY(-10px);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* ==================== Input Area - Lobe UI Glassmorphism Style ==================== */
|
|
.input-area {
|
|
padding: var(--spacing-2xl) var(--spacing-lg);
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(var(--blur-amount));
|
|
-webkit-backdrop-filter: blur(var(--blur-amount));
|
|
border-top: 1px solid var(--border-primary);
|
|
box-shadow: var(--shadow-xl);
|
|
}
|
|
|
|
.input-container {
|
|
max-width: 52rem;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.input-form {
|
|
position: relative;
|
|
}
|
|
|
|
.input-wrapper {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: var(--spacing-sm);
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-2xl);
|
|
padding: var(--spacing-md);
|
|
transition: all var(--transition-base);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.input-wrapper:focus-within {
|
|
border-color: var(--border-focus);
|
|
box-shadow: var(--shadow-focus), var(--shadow-glow);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.attach-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.attach-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--border-focus);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.message-input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
resize: none;
|
|
outline: none;
|
|
max-height: 200px;
|
|
line-height: 1.5;
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
}
|
|
|
|
.message-input::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.send-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-tertiary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all var(--transition-base);
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.send-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--gradient-primary);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
/* Cuando hay texto, el botón se activa con gradiente */
|
|
.send-btn:not(:disabled) {
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
border: none;
|
|
box-shadow: var(--shadow-md), var(--shadow-glow);
|
|
}
|
|
|
|
.send-btn:not(:disabled)::before {
|
|
opacity: 0;
|
|
}
|
|
|
|
.send-btn:hover:not(:disabled) {
|
|
transform: scale(1.08);
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
}
|
|
|
|
.send-btn:hover:not(:disabled)::before {
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.send-btn:active:not(:disabled) {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.send-btn:disabled {
|
|
background: var(--bg-elevated);
|
|
color: var(--text-quaternary);
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.input-disclaimer {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
text-align: center;
|
|
margin-top: var(--spacing-lg);
|
|
line-height: 1.5;
|
|
padding: 0 var(--spacing-md);
|
|
}
|
|
|
|
/* ==================== Responsive Design ==================== */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
transform: translateX(-100%);
|
|
z-index: 2000;
|
|
width: 280px;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.mobile-header {
|
|
display: flex;
|
|
}
|
|
|
|
.messages-container {
|
|
padding: var(--spacing-lg) var(--spacing-md);
|
|
}
|
|
|
|
.input-area {
|
|
padding: var(--spacing-md);
|
|
}
|
|
|
|
.suggestion-cards {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.welcome-message h2 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.message {
|
|
gap: var(--spacing-md);
|
|
padding: var(--spacing-lg) 0;
|
|
}
|
|
|
|
.message.user {
|
|
margin: 0 calc(var(--spacing-md) * -1);
|
|
padding: var(--spacing-lg) var(--spacing-md);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.input-wrapper {
|
|
padding: var(--spacing-sm);
|
|
}
|
|
|
|
.suggestion-card {
|
|
padding: var(--spacing-md);
|
|
}
|
|
|
|
.welcome-message {
|
|
min-height: 50vh;
|
|
}
|
|
}
|
|
|
|
.chat-item:hover {
|
|
background: var(--hover-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chat-item.active {
|
|
background: var(--hover-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 12px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.user-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.user-profile:hover {
|
|
background: var(--hover-bg);
|
|
}
|
|
|
|
.avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: var(--accent-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Main Chat Area */
|
|
.chat-container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.chat-header {
|
|
padding: 16px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.icon-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: var(--hover-bg);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Messages */
|
|
.messages-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.messages-container::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.welcome-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 24px;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.welcome-message h2 {
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.message {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.message-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.message.user .message-avatar {
|
|
background: var(--accent-color);
|
|
}
|
|
|
|
.message.assistant .message-avatar {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.message-content {
|
|
flex: 1;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.message-text {
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.message-time {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.typing-indicator {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.typing-indicator span {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--text-secondary);
|
|
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% { opacity: 0.3; }
|
|
30% { opacity: 1; }
|
|
}
|
|
|
|
/* Input Container */
|
|
.input-container {
|
|
padding: 24px;
|
|
border-top: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.input-form {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 12px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.input-form:focus-within {
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.message-input {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
resize: none;
|
|
outline: none;
|
|
max-height: 200px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.message-input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.send-btn {
|
|
background: var(--accent-color);
|
|
border: none;
|
|
color: white;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.send-btn:hover {
|
|
background: #0d8f6f;
|
|
}
|
|
|
|
.send-btn:disabled {
|
|
background: var(--border-color);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.input-disclaimer {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 12px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
position: absolute;
|
|
left: -260px;
|
|
z-index: 100;
|
|
height: 100vh;
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(260px);
|
|
}
|
|
}
|
|
|