moodtracker-elite/style.css
2025-10-18 00:33:03 -07:00

224 lines
3.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: transparent;
overflow: hidden;
}
.container {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 16px;
padding: 24px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
color: white;
max-height: 90vh;
overflow-y: auto;
}
.view {
display: none;
}
.view.active {
display: block;
}
h2 {
margin-bottom: 20px;
font-size: 20px;
font-weight: 600;
}
.moods {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 12px;
margin-bottom: 16px;
}
.mood-btn {
background: rgba(255, 255, 255, 0.2);
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
padding: 12px;
font-size: 32px;
cursor: pointer;
transition: all 0.2s;
}
.mood-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
.mood-btn.selected {
background: rgba(255, 255, 255, 0.4);
border-color: white;
transform: scale(1.05);
}
.journal-section {
margin-top: 16px;
display: none;
}
.journal-section.active {
display: block;
}
textarea {
width: 100%;
min-height: 80px;
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
padding: 12px;
color: white;
font-family: inherit;
font-size: 14px;
resize: vertical;
margin-bottom: 12px;
}
textarea::placeholder {
color: rgba(255, 255, 255, 0.6);
}
textarea:focus {
outline: none;
background: rgba(255, 255, 255, 0.25);
}
.controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 16px;
gap: 8px;
}
button {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
flex: 1;
}
button:hover {
background: rgba(255, 255, 255, 0.3);
}
button.primary {
background: rgba(255, 255, 255, 0.3);
font-weight: 600;
}
select {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 8px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
}
select option {
background: #667eea;
color: white;
}
.history-list {
max-height: 400px;
overflow-y: auto;
margin-bottom: 16px;
}
.history-item {
background: rgba(255, 255, 255, 0.15);
border-radius: 8px;
padding: 12px;
margin-bottom: 8px;
}
.history-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.history-mood {
font-size: 24px;
}
.history-time {
font-size: 12px;
opacity: 0.8;
}
.history-note {
font-size: 14px;
line-height: 1.4;
opacity: 0.9;
}
.no-history {
text-align: center;
opacity: 0.7;
padding: 40px 20px;
}
.settings {
display: none;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.settings.active {
display: block;
}
.setting-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
label {
font-size: 14px;
}
.nav-tabs {
display: flex;
gap: 8px;
margin-bottom: 16px;
}
.nav-tab {
flex: 1;
padding: 8px;
text-align: center;
background: rgba(255, 255, 255, 0.15);
border-radius: 8px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.nav-tab.active {
background: rgba(255, 255, 255, 0.3);
font-weight: 600;
}