TRIEM_AI / web /static /css /style.css
rzvn1's picture
Initial commit of TRIEM AI
3017127
Raw
History Blame Contribute Delete
5.16 kB
:root {
--primary-color: #FF5E3A; /* Vibrant Orange/Red */
--secondary-color: #2A2A2A;
--bg-dark: #0f0f13;
--glass-bg: rgba(255, 255, 255, 0.05);
--glass-border: rgba(255, 255, 255, 0.1);
--text-primary: #ffffff;
--text-secondary: #a0a0a0;
--accent-green: #00E676;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Outfit', sans-serif;
}
body {
background-color: var(--bg-dark);
color: var(--text-primary);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background-image:
radial-gradient(circle at 10% 20%, rgba(255, 94, 58, 0.1) 0%, transparent 40%),
radial-gradient(circle at 90% 80%, rgba(0, 230, 118, 0.05) 0%, transparent 40%);
}
.app-container {
width: 100%;
max-width: 600px;
height: 100vh;
background: var(--glass-bg);
backdrop-filter: blur(20px);
display: flex;
flex-direction: column;
position: relative;
box-shadow: 0 0 50px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
.app-container {
height: 90vh;
border-radius: 24px;
border: 1px solid var(--glass-border);
}
}
/* Header */
.app-header {
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--glass-border);
}
.logo {
font-size: 1.2rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
color: var(--primary-color);
}
.status-indicator {
font-size: 0.8rem;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 6px;
}
.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--text-secondary);
}
.dot.online {
background-color: var(--accent-green);
box-shadow: 0 0 10px var(--accent-green);
}
/* Chat Area */
.chat-interface {
flex: 1;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
scroll-behavior: smooth;
}
.welcome-message {
text-align: center;
margin-top: 40px;
color: var(--text-secondary);
}
.welcome-message h1 {
color: var(--text-primary);
margin-bottom: 10px;
font-family: 'Noto Sans Ol Chiki', 'Outfit', sans-serif;
}
/* Messages */
.message {
max-width: 85%;
padding: 15px 20px;
border-radius: 20px;
font-size: 0.95rem;
line-height: 1.5;
position: relative;
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.message.user {
align-self: flex-end;
background: linear-gradient(135deg, var(--primary-color), #FF8C6B);
color: white;
border-bottom-right-radius: 5px;
}
.message.ai {
align-self: flex-start;
background: rgba(255, 255, 255, 0.1);
border: 1px solid var(--glass-border);
border-bottom-left-radius: 5px;
}
.translation {
display: block;
margin-top: 8px;
font-size: 0.8em;
opacity: 0.7;
border-top: 1px solid rgba(255,255,255,0.2);
padding-top: 8px;
}
/* Audio Player in Chat */
.audio-control {
margin-top: 10px;
display: flex;
align-items: center;
gap: 10px;
background: rgba(0,0,0,0.2);
padding: 8px 12px;
border-radius: 30px;
cursor: pointer;
}
/* Controls Footer */
.input-area {
padding: 30px;
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.mic-button {
width: 70px;
height: 70px;
border-radius: 50%;
background: var(--primary-color);
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
position: relative;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(255, 94, 58, 0.4);
z-index: 10;
}
.mic-button:hover {
transform: scale(1.05);
}
.mic-button.recording {
background: #ff3a3a;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 58, 58, 0.7); }
70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(255, 58, 58, 0); }
100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 58, 58, 0); }
}
.status-text {
font-size: 0.9rem;
color: var(--text-secondary);
letter-spacing: 0.5px;
}
/* Visualizer (Simple CSS Bars) */
.visualizer {
display: flex;
gap: 4px;
height: 30px;
align-items: center;
opacity: 0;
transition: opacity 0.3s;
}
.visualizer.active {
opacity: 1;
}
.bar {
width: 4px;
height: 10px;
background: var(--primary-color);
border-radius: 2px;
animation: sound 0s infinite alternate;
}
.visualizer.active .bar {
animation-duration: 0.5s;
}
.visualizer.active .bar:nth-child(even) { animation-duration: 0.4s; }
.visualizer.active .bar:nth-child(odd) { animation-duration: 0.6s; }
@keyframes sound {
0% { height: 5px; opacity: 0.5; }
100% { height: 25px; opacity: 1; }
}