Samuel_4.0 / static /style.css
Lukeetah's picture
Update static/style.css
609ebc8 verified
/* static/style.css */
:root {
--bg-color: #1a1a1a;
--text-color: #e0e0e0;
--primary-accent: #007bff; /* A bright blue for accents */
--secondary-accent: #00c853; /* A vibrant green */
--border-color: #333;
--input-bg: #2a2a2a;
--input-border: #444;
--button-bg: var(--primary-accent);
--button-text: #fff;
--error-color: #ff4444;
}
body {
font-family: 'Inter', sans-serif; /* Assuming Inter font is available or linked */
background-color: var(--bg-color);
color: var(--text-color);
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
box-sizing: border-box;
}
.container {
background-color: #222;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
padding: 40px;
width: 100%;
max-width: 500px;
box-sizing: border-box;
border: 1px solid var(--border-color);
}
h1, h2, h3 {
color: var(--primary-accent);
text-align: center;
margin-bottom: 30px;
}
form {
display: flex;
flex-direction: column;
gap: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: var(--text-color);
}
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--input-border);
border-radius: 8px;
background-color: var(--input-bg);
color: var(--text-color);
font-size: 16px;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
border-color: var(--primary-accent);
outline: none;
}
button {
background-color: var(--button-bg);
color: var(--button-text);
border: none;
border-radius: 8px;
padding: 15px 25px;
font-size: 18px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
width: 100%;
}
button:hover {
background-color: var(--secondary-accent);
transform: translateY(-2px);
}
button:disabled {
background-color: #555;
cursor: not-allowed;
}
.message {
text-align: center;
margin-top: 20px;
padding: 10px;
border-radius: 8px;
font-weight: bold;
}
.message.success {
background-color: rgba(0, 200, 83, 0.2);
color: var(--secondary-accent);
}
.message.error {
background-color: rgba(255, 68, 68, 0.2);
color: var(--error-color);
}
.link-text {
text-align: center;
margin-top: 20px;
}
.link-text a {
color: var(--primary-accent);
text-decoration: none;
font-weight: bold;
}
.link-text a:hover {
text-decoration: underline;
}
/* Chat specific styles */
.chat-container {
display: flex;
flex-direction: column;
height: 80vh;
max-height: 700px;
background-color: #222;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
border: 1px solid var(--border-color);
overflow: hidden;
}
.sidebar {
width: 200px;
background-color: #111;
padding: 20px;
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
gap: 15px;
}
.sidebar button {
background-color: transparent;
border: 1px solid var(--primary-accent);
color: var(--primary-accent);
padding: 10px 15px;
font-size: 16px;
border-radius: 8px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.sidebar button:hover {
background-color: var(--primary-accent);
color: var(--button-text);
}
.main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
}
.chat-history, .memory-view {
flex-grow: 1;
padding: 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 15px;
}
.message-bubble {
max-width: 80%;
padding: 12px 18px;
border-radius: 20px;
line-height: 1.5;
word-wrap: break-word;
}
.message-bubble.user {
background-color: var(--primary-accent);
color: var(--button-text);
align-self: flex-end;
border-bottom-right-radius: 5px;
}
.message-bubble.samuel {
background-color: #333;
color: var(--text-color);
align-self: flex-start;
border-bottom-left-radius: 5px;
}
.chat-input-area {
display: flex;
padding: 20px;
border-top: 1px solid var(--border-color);
gap: 10px;
}
.chat-input-area input[type="text"] {
flex-grow: 1;
border-radius: 25px;
padding: 10px 20px;
background-color: var(--input-bg);
border: 1px solid var(--input-border);
color: var(--text-color);
}
.chat-input-area button {
width: auto;
padding: 10px 20px;
border-radius: 25px;
font-size: 16px;
}
.microphone-button {
background-color: var(--secondary-accent);
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
color: white;
border: none;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.microphone-button:hover {
background-color: #00e676;
transform: scale(1.05);
}
.microphone-button.recording {
background-color: var(--error-color);
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}
/* Memory View Specifics */
.memory-entry {
background-color: #2a2a2a;
padding: 15px;
border-radius: 10px;
border: 1px solid #333;
}
.memory-entry h4 {
color: var(--secondary-accent);
margin-top: 0;
margin-bottom: 10px;
}
.memory-entry p {
margin-bottom: 5px;
}
.memory-entry small {
color: #888;
font-size: 0.8em;
}
/* Initiation Ritual */
.initiation-container {
display: flex;
flex-direction: column;
gap: 25px;
text-align: center;
}
.initiation-container h2 {
margin-bottom: 15px;
}
.initiation-container textarea {
min-height: 100px;
resize: vertical;
}
.initiation-progress {
font-size: 1.1em;
color: var(--secondary-accent);
margin-bottom: 20px;
}
/* General layout for main app */
.app-layout {
display: flex;
width: 100%;
max-width: 1200px; /* Adjust as needed */
height: 90vh; /* Adjust as needed */
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
border: 1px solid var(--border-color);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.app-layout {
flex-direction: column;
height: auto;
min-height: 100vh;
}
.sidebar {
width: 100%;
border-right: none;
border-bottom: 1px solid var(--border-color);
flex-direction: row;
justify-content: space-around;
padding: 10px;
}
.container {
padding: 20px;
}
.chat-input-area {
flex-direction: column;
gap: 15px;
}
.chat-input-area input[type="text"],
.chat-input-area button {
width: 100%;
}
.microphone-button {
margin: 0 auto;
}
}