sensecatch / static /main.css
berkinksk's picture
Add the SenseCatch app, models, and Docker setup
33acf50 verified
Raw
History Blame Contribute Delete
8.01 kB
:root {
--primary-color: #2e7eed;
--primary-dark: #1a68d3;
--secondary-color: #f0f7ff;
--dark-color: #333;
--light-color: #f9f9f9;
--positive-color: #4caf50;
--negative-color: #f44336;
--neutral-color: #757575;
--border-color: #e0e0e0;
--shadow-color: rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
background-color: var(--light-color);
color: var(--dark-color);
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header Styles */
header {
text-align: center;
margin-bottom: 30px;
padding: 20px 0;
border-bottom: 1px solid var(--border-color);
}
.logo h1 {
color: var(--dark-color);
font-size: 2.5rem;
letter-spacing: -1px;
}
.logo h1 span {
color: var(--primary-color);
}
.logo p {
color: var(--neutral-color);
font-size: 1.1rem;
}
/* Main Content Layout */
main {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 20px;
}
/* Analysis Panel Styles */
.analysis-panel {
background: white;
border-radius: 10px;
box-shadow: 0 4px 15px var(--shadow-color);
overflow: hidden;
}
.input-section {
padding: 25px;
}
.input-section h2 {
margin-bottom: 10px;
color: var(--dark-color);
}
.input-section p {
margin-bottom: 15px;
color: var(--neutral-color);
}
textarea {
width: 100%;
height: 150px;
padding: 15px;
border: 1px solid var(--border-color);
border-radius: 6px;
font-family: inherit;
font-size: 1rem;
resize: vertical;
transition: border-color 0.3s;
}
textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(46, 126, 237, 0.1);
}
.controls {
display: flex;
margin-top: 15px;
gap: 15px;
align-items: flex-end;
}
/* Add extra breathing room under controls for inline info */
.input-section {
padding-bottom: 8px;
}
/* Inline info banner styles */
.info-banner {
margin: 10px 25px 0 25px;
padding: 12px 14px;
border-radius: 6px;
background: #fff8e1; /* soft amber */
border: 1px solid #ffe0a3;
color: #6b4f00;
box-shadow: 0 2px 6px var(--shadow-color);
display: flex;
justify-content: space-between;
align-items: center;
white-space: pre-line;
}
.info-banner.hidden { display: none; }
.info-close {
background: transparent;
border: none;
font-size: 18px;
color: #6b4f00;
cursor: pointer;
}
.model-selection {
flex-grow: 1;
}
.model-selection label {
display: block;
margin-bottom: 5px;
font-size: 0.9rem;
color: var(--neutral-color);
}
select, button {
padding: 12px 15px;
border-radius: 6px;
font-size: 1rem;
}
/* Ensure select and button align perfectly on the same row */
.controls select,
.controls button {
height: 44px;
}
select {
border: 1px solid var(--border-color);
background: white;
width: 100%;
cursor: pointer;
}
button {
background-color: var(--primary-color);
color: white;
border: none;
cursor: pointer;
flex-grow: 1;
transition: background-color 0.3s;
font-weight: 500;
}
button:hover {
background-color: var(--primary-dark);
}
button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
/* Result Section Styles */
.result-section {
padding: 25px;
background-color: var(--secondary-color);
}
.result-section h2 {
margin-bottom: 15px;
color: var(--dark-color);
}
.prompt {
color: var(--neutral-color);
font-style: italic;
}
.result-card {
background: white;
padding: 20px;
border-radius: 6px;
margin-bottom: 15px;
box-shadow: 0 2px 5px var(--shadow-color);
}
.result-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.sentiment-label {
font-size: 1.2rem;
font-weight: 700;
}
.positive {
color: var(--positive-color);
}
.negative {
color: var(--negative-color);
}
.confidence-meter {
background-color: #eee;
border-radius: 10px;
height: 10px;
width: 100%;
margin: 10px 0;
overflow: hidden;
}
.confidence-bar {
height: 100%;
border-radius: 10px;
transition: width 0.5s ease-in-out;
}
.confidence-bar.positive {
background-color: var(--positive-color);
}
.confidence-bar.negative {
background-color: var(--negative-color);
}
.result-text {
margin: 15px 0;
line-height: 1.6;
}
.model-type {
font-size: 0.85rem;
color: var(--neutral-color);
font-style: italic;
margin-top: 10px;
}
.important-words {
margin-top: 15px;
}
.important-words h4 {
font-size: 0.95rem;
margin-bottom: 8px;
color: var(--dark-color);
}
.word-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.word-chip {
padding: 5px 10px;
border-radius: 15px;
font-size: 0.85rem;
background-color: #f5f5f5;
color: var(--dark-color);
font-weight: 500;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
cursor: default;
transition: all 0.2s;
}
.word-chip.positive {
background-color: rgba(76, 175, 80, 0.15);
color: var(--positive-color);
border: 1px solid rgba(76, 175, 80, 0.3);
}
.word-chip.negative {
background-color: rgba(244, 67, 54, 0.15);
color: var(--negative-color);
border: 1px solid rgba(244, 67, 54, 0.3);
}
/* Style for negated words */
.word-chip[style*="line-through"].positive {
background-color: rgba(76, 175, 80, 0.05);
border: 1px dashed rgba(76, 175, 80, 0.3);
}
.word-chip[style*="line-through"].negative {
background-color: rgba(244, 67, 54, 0.05);
border: 1px dashed rgba(244, 67, 54, 0.3);
}
/* History Panel Styles */
.history-panel {
background: white;
border-radius: 10px;
padding: 25px;
box-shadow: 0 4px 15px var(--shadow-color);
max-height: 600px;
overflow-y: auto;
}
.history-panel h2 {
margin-bottom: 15px;
color: var(--dark-color);
}
.no-history {
color: var(--neutral-color);
font-style: italic;
}
.history-item {
padding: 15px;
border-bottom: 1px solid var(--border-color);
font-size: 0.9rem;
}
.history-item:last-child {
border-bottom: none;
}
.history-sentiment {
font-weight: 700;
margin-bottom: 5px;
}
.history-text {
color: var(--dark-color);
margin-bottom: 5px;
word-break: break-word;
}
.history-model {
font-size: 0.8rem;
color: var(--neutral-color);
}
/* Footer Styles */
footer {
text-align: center;
margin-top: 50px;
padding-top: 20px;
color: var(--neutral-color);
font-size: 0.9rem;
border-top: 1px solid var(--border-color);
}
footer a {
color: var(--primary-color);
text-decoration: none;
}
.footer-note {
margin-top: 5px;
font-size: 0.8rem;
}
/* Responsive Design */
@media (max-width: 900px) {
main {
grid-template-columns: 1fr;
}
.history-panel {
max-height: 400px;
}
}
@media (max-width: 600px) {
.container {
padding: 10px;
}
.controls {
flex-direction: column;
gap: 10px;
}
.model-selection, button {
width: 100%;
}
}
/* History Panel Header */
.history-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.secondary-btn {
background-color: #f5f5f5;
color: var(--dark-color);
font-size: 0.85rem;
padding: 6px 12px;
border: 1px solid var(--border-color);
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.secondary-btn:hover {
background-color: #e0e0e0;
}
/* Add this to your existing main.css */
.no-words {
color: var(--neutral-color);
font-style: italic;
font-size: 0.85rem;
}
.word-chip {
transition: transform 0.2s, box-shadow 0.2s;
}
.word-chip:hover {
transform: scale(1.05);
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}