Laska1 / static /style.css
Aist1's picture
Create static/style.css
c7c162a verified
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
color: white;
margin-bottom: 40px;
}
.header h1 {
font-size: 3em;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.header p {
font-size: 1.2em;
opacity: 0.9;
}
.main-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-top: 30px;
}
section {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.analysis-section {
grid-column: 1 / -1;
}
.journal-section {
grid-column: 1;
}
.insights-section, .progress-section {
grid-column: 2;
}
h2 {
color: #4a5568;
margin-bottom: 20px;
border-bottom: 2px solid #e2e8f0;
padding-bottom: 10px;
}
.input-group {
margin-bottom: 20px;
}
textarea {
width: 100%;
height: 120px;
padding: 15px;
border: 2px solid #e2e8f0;
border-radius: 10px;
font-size: 16px;
resize: vertical;
transition: border-color 0.3s;
}
textarea:focus {
outline: none;
border-color: #667eea;
}
.button-group {
display: flex;
gap: 10px;
margin-top: 15px;
flex-wrap: wrap;
}
button {
padding: 12px 24px;
border: none;
border-radius: 8px;
background: #667eea;
color: white;
font-size: 14px;
cursor: pointer;
transition: all 0.3s;
}
button:hover {
background: #5a6fd8;
transform: translateY(-2px);
}
button:active {
transform: translateY(0);
}
.result-container, .insights-container, .progress-container {
margin-top: 20px;
padding: 20px;
background: #f7fafc;
border-radius: 10px;
border-left: 4px solid #667eea;
}
.emotion-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
margin: 5px 0;
background: white;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.emotion-score {
font-weight: bold;
color: #667eea;
}
.journal-entries {
max-height: 400px;
overflow-y: auto;
}
.journal-entry {
background: #f7fafc;
padding: 15px;
margin: 10px 0;
border-radius: 8px;
border-left: 4px solid #48bb78;
}
.entry-date {
font-size: 0.9em;
color: #718096;
margin-bottom: 5px;
}
.entry-text {
margin-bottom: 10px;
}
.entry-emotions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.emotion-tag {
background: #667eea;
color: white;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.8em;
}
.insight-text {
font-size: 1.1em;
line-height: 1.6;
color: #4a5568;
font-style: italic;
}
.progress-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
margin-top: 15px;
}
.stat-item {
text-align: center;
padding: 15px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.stat-value {
font-size: 2em;
font-weight: bold;
color: #667eea;
}
.stat-label {
font-size: 0.9em;
color: #718096;
}
.loading {
text-align: center;
color: #667eea;
font-style: italic;
}
.error {
background: #fed7d7;
color: #c53030;
padding: 10px;
border-radius: 5px;
margin: 10px 0;
}
@media (max-width: 768px) {
.main-content {
grid-template-columns: 1fr;
}
.analysis-section,
.journal-section,
.insights-section,
.progress-section {
grid-column: 1;
}
.button-group {
flex-direction: column;
}
button {
width: 100%;
}
}