DeltaVenom's picture
Update app code and initialize runtime databases
72bff80
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');
:root {
--primary: #9333ea;
--primary-glow: rgba(147, 51, 234, 0.4);
--secondary: #c026d3;
--accent: #6366f1;
--bg-dark: #05010d;
--sidebar-bg: rgba(10, 2, 25, 0.85);
--card-bg: rgba(20, 10, 40, 0.45);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--glass-border: rgba(147, 51, 234, 0.2);
--glass-border-light: rgba(255, 255, 255, 0.08);
--animation-speed: 0.4s;
--sidebar-width: 320px;
--sidebar-collapsed-width: 80px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
height: 100vh;
overflow: hidden;
display: flex;
position: relative;
}
/* Dynamic Background Glows (Spotlights) */
.bg-glow-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
background: #05010d;
}
.glow-blob {
position: absolute;
width: 600px;
height: 600px;
border-radius: 50%;
filter: blur(120px);
opacity: 0.4;
animation: moveGlow 25s infinite alternate;
}
.glow-1 {
top: -10%;
right: -10%;
background: radial-gradient(circle, #9333ea, transparent);
}
.glow-2 {
bottom: -15%;
left: 10%;
background: radial-gradient(circle, #4f46e5, transparent);
animation-delay: -5s;
}
.glow-3 {
top: 50%;
right: 30%;
width: 400px;
height: 400px;
background: radial-gradient(circle, #c026d3, transparent);
opacity: 0.25;
animation-delay: -12s;
}
@keyframes moveGlow {
0% {
transform: translate(0, 0) scale(1);
}
33% {
transform: translate(100px, 150px) scale(1.1);
}
66% {
transform: translate(-120px, 80px) scale(0.9);
}
100% {
transform: translate(0, 0) scale(1);
}
}
/* Sidebar Styling */
.sidebar {
width: var(--sidebar-width);
background: var(--sidebar-bg);
backdrop-filter: blur(40px);
border-right: 1px solid var(--glass-border);
padding: 1.5rem;
display: flex;
flex-direction: column;
z-index: 100;
transition: width var(--animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
box-shadow: 20px 0 50px rgba(0, 0, 0, 0.3);
}
.sidebar.collapsed {
width: var(--sidebar-collapsed-width);
padding: 1.5rem 0.5rem;
}
.sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 3rem;
padding: 0 0.5rem;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
transition: opacity 0.2s;
white-space: nowrap;
}
.sidebar.collapsed .logo span,
.sidebar.collapsed .sidebar-section h3,
.sidebar.collapsed .sidebar-section .form-group label,
.sidebar.collapsed .sidebar-section .form-group span,
.sidebar.collapsed .status-row,
.sidebar.collapsed .primary-btn span,
.sidebar.collapsed .sidebar-section select,
.sidebar.collapsed .sidebar-section input,
.sidebar.collapsed .sidebar-section .radio-group {
display: none;
}
.logo span {
font-size: 1.5rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
background: linear-gradient(135deg, #f8fafc, #9333ea, #c026d3);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.3));
}
.sidebar-toggle {
background: rgba(147, 51, 234, 0.1);
border: 1px solid var(--glass-border);
color: var(--text-main);
cursor: pointer;
font-size: 1.2rem;
padding: 0.6rem;
border-radius: 12px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
justify-content: center;
}
.sidebar-toggle:hover {
background: var(--primary);
color: white;
transform: scale(1.05);
box-shadow: 0 0 20px var(--primary-glow);
}
.sidebar.collapsed .sidebar-toggle {
margin: 0 auto;
}
.sidebar.collapsed .sidebar-section {
display: flex;
flex-direction: column;
align-items: center;
}
.sidebar-section i {
width: 20px;
text-align: center;
}
.sidebar.collapsed .sidebar-section .form-group button {
width: 40px;
height: 40px;
padding: 0;
margin: 0 auto;
border-radius: 50%;
}
.sidebar.collapsed .sidebar-section .form-group button i {
margin: 0;
}
.sidebar.collapsed #clear-chat {
width: 40px;
height: 40px;
padding: 0;
margin: 1rem auto;
border-radius: 50%;
}
.sidebar.collapsed #clear-chat i {
margin: 0;
}
/* Main Content Area */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
position: relative;
padding: 2rem 3rem;
background: transparent;
transition: margin var(--animation-speed);
}
.content-header {
margin-bottom: 2.5rem;
border-bottom: 1px solid var(--glass-border);
padding-bottom: 1.5rem;
}
.content-header h1 {
font-size: 2.2rem;
font-weight: 700;
margin-bottom: 0.5rem;
background: linear-gradient(to right, #f8fafc, #94a3b8);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Glass Card Component */
.glass-card {
background: var(--card-bg);
backdrop-filter: blur(25px);
border: 1px solid var(--glass-border);
border-radius: 32px;
box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.5);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
border-color: rgba(147, 51, 234, 0.4);
box-shadow: 0 25px 80px 0 rgba(147, 51, 234, 0.15);
}
/* Chat Container */
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
margin-bottom: 1.5rem;
padding: 0.5rem;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
scroll-behavior: smooth;
}
/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
.message {
max-width: 85%;
padding: 1.25rem 1.75rem;
border-radius: 24px;
font-size: 0.95rem;
line-height: 1.7;
animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
position: relative;
border: 1px solid var(--glass-border-light);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.message p {
margin-bottom: 0.8rem;
}
.message p:last-child {
margin-bottom: 0;
}
.message ul,
.message ol {
margin-left: 1.5rem;
margin-bottom: 1rem;
}
.message li {
margin-bottom: 0.5rem;
}
/* Table Styling within Messages */
.message table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
overflow: hidden;
}
.message th,
.message td {
padding: 10px 14px;
border: 1px solid var(--glass-border);
text-align: left;
}
.message th {
background: rgba(255, 255, 255, 0.1);
font-weight: 600;
}
.message tr:nth-child(even) {
background: rgba(255, 255, 255, 0.02);
}
@keyframes blink {
50% {
opacity: 0;
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.user-message {
align-self: flex-end;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border-bottom-right-radius: 4px;
box-shadow: 0 10px 25px rgba(147, 51, 234, 0.2);
border: none;
}
.bot-message {
align-self: flex-start;
background: rgba(255, 255, 255, 0.04);
backdrop-filter: blur(10px);
border: 1px solid var(--glass-border-light);
border-top-left-radius: 4px;
}
/* Audio Player inside message */
.audio-control {
display: flex;
align-items: center;
gap: 12px;
}
.play-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: var(--animation-speed);
}
.play-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
.play-btn i {
pointer-events: none;
}
.audio-message-bubble {
padding-bottom: 0.8rem !important;
}
/* Input Area */
.input-area {
display: flex;
gap: 12px;
padding: 1rem;
background: rgba(255, 255, 255, 0.03);
border-radius: 20px;
align-items: center;
}
.audio-btn {
background: rgba(255, 255, 255, 0.05);
border: none;
color: var(--text-muted);
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
transition: var(--animation-speed);
display: flex;
align-items: center;
justify-content: center;
}
.audio-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
transform: scale(1.1);
}
#user-input {
flex: 1;
background: transparent;
border: none;
color: white;
font-family: inherit;
font-size: 1rem;
padding: 0.5rem;
}
#user-input:focus {
outline: none;
}
.send-btn {
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: none;
width: 50px;
height: 50px;
border-radius: 16px;
color: white;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}
.send-btn:hover {
transform: scale(1.1) rotate(5deg);
box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
}
/* Form Styling (Sidebar) */
.form-group {
margin-bottom: 1rem;
}
select,
input[type="text"] {
width: 100%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--glass-border);
padding: 0.8rem 1rem;
border-radius: 12px;
color: white;
font-family: inherit;
transition: var(--animation-speed);
}
select:focus,
input[type="text"]:focus {
outline: none;
border-color: var(--primary);
background: rgba(255, 255, 255, 0.1);
}
select option {
background-color: #1e293b;
color: white;
}
.primary-btn {
width: 100%;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: none;
padding: 1rem;
border-radius: 16px;
color: white;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin-top: 1rem;
box-shadow: 0 8px 15px rgba(147, 51, 234, 0.2);
}
.primary-btn:hover {
transform: translateY(-2px);
box-shadow: 0 12px 25px rgba(147, 51, 234, 0.4);
filter: brightness(1.1);
}
/* Status Bar */
.status-container {
margin-top: auto;
padding-top: 1.5rem;
border-top: 1px solid var(--glass-border);
}
.status-row {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
margin-bottom: 8px;
}
.progress-track {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
overflow: hidden;
}
.progress-bar {
height: 100%;
background: linear-gradient(to right, #6366f1, #c084fc);
width: 0%;
transition: width 0.5s ease;
}
/* Animations and polish */
.hover-glow:hover {
box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}