37051-vm/staticfiles/css/custom.css
Flatlogic Bot d80c3c0764 ai 1.0
2025-12-19 08:56:43 +00:00

258 lines
4.8 KiB
CSS

body {
background: linear-gradient(to right, #0F2027, #203A43, #2C5364);
font-family: 'Inter', sans-serif;
color: #fff;
}
.font-poppins {
font-family: 'Poppins', sans-serif;
}
.font-inter {
font-family: 'Inter', sans-serif;
}
.glass-card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 1rem;
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
/* Redefine form styles from forms.py to avoid specificity issues */
.glass-card form .w-full.bg-gray-800 {
background-color: rgba(31, 41, 55, 0.5) !important;
border-color: rgba(55, 65, 81, 0.5) !important;
}
/* Intent Badge Styles */
.intent-badge {
width: 10px;
height: 10px;
border-radius: 50%;
margin-left: 8px;
display: inline-block;
}
.intent-neutral {
background-color: #9CA3AF; /* gray-400 */
}
.intent-safe {
background-color: #10B981; /* green-500 */
}
.intent-caution {
background-color: #F59E0B; /* yellow-500 */
}
.intent-warning {
background-color: #EF4444; /* red-500 */
}
/* Image Generator Styles */
.btn-primary {
background-color: #4A90E2;
border-color: #4A90E2;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: #357ABD;
border-color: #357ABD;
}
.form-control {
background-color: rgba(255, 255, 255, 0.2);
border: none;
color: #fff;
}
.form-control::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.card {
background-color: rgba(0,0,0,0.2);
border: none;
}
/* AI Chat Styles */
.chat-container {
max-width: 800px;
margin: 2rem auto;
display: flex;
flex-direction: column;
height: calc(100vh - 100px);
border-radius: 1rem;
overflow: hidden;
}
.chat-header {
padding: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
text-align: center;
}
.chat-box {
flex-grow: 1;
padding: 1rem;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
}
.chat-message {
display: flex;
flex-direction: column;
max-width: 80%;
}
.message-content {
padding: 0.75rem 1rem;
border-radius: 1rem;
line-height: 1.5;
}
.message-content p {
margin: 0;
}
/* User Message */
.user-message {
align-self: flex-end;
align-items: flex-end;
}
.user-message .message-content {
background-color: #4A90E2;
color: #fff;
border-bottom-right-radius: 0;
}
/* AI Message */
.ai-message {
align-self: flex-start;
align-items: flex-start;
}
.ai-message .message-content {
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.2);
border-bottom-left-radius: 0;
}
.ai-message.error-message .message-content {
background-color: #721c24;
color: #f8d7da;
}
/* Typing Indicator */
.typing-indicator {
padding: 0.5rem 1rem;
display: flex;
align-items: center;
}
.typing-indicator span {
height: 8px;
width: 8px;
margin: 0 2px;
background-color: rgba(255, 255, 255, 0.4);
border-radius: 50%;
display: inline-block;
animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
0%, 80%, 100% { transform: scale(0); }
40% { transform: scale(1.0); }
}
/* Chat Input */
.chat-input-area {
padding: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-input {
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 9999px;
color: #fff;
padding: 0.75rem 1.5rem;
flex-grow: 1;
outline: none;
transition: border-color 0.3s ease;
}
.chat-input:focus {
border-color: #4A90E2;
}
.send-button {
background: #4A90E2;
border: none;
border-radius: 50%;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
margin-left: 0.5rem;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease;
}
.send-button:hover {
background: #357ABD;
}
/* Code Block Styles */
.code-block-wrapper {
margin-top: 1rem;
border-radius: 0.5rem;
overflow: hidden;
}
.code-block-header {
background: #1a202c;
padding: 0.5rem 1rem;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.875rem;
color: #a0aec0;
}
.copy-code-btn {
background: #4a5568;
color: white;
border: none;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
cursor: pointer;
font-size: 0.75rem;
}
.copy-code-btn:hover {
background: #2d3748;
}
pre {
margin: 0;
padding: 1rem;
background: #2d3748;
color: #e2e8f0;
overflow-x: auto;
}
code {
font-family: 'Fira Code', 'Courier New', monospace;
font-size: 0.875rem;
}