kalkulyator-kaloriy/style.css

275 lines
3.9 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
}
header {
text-align: center;
color: white;
margin-bottom: 30px;
}
header h1 {
font-size: 2.5rem;
margin-bottom: 8px;
}
.subtitle {
opacity: 0.9;
font-size: 1.1rem;
}
.card {
background: white;
border-radius: 16px;
padding: 24px;
margin-bottom: 20px;
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.card h2 {
color: #333;
margin-bottom: 20px;
font-size: 1.5rem;
}
.form-row {
display: flex;
gap: 16px;
margin-bottom: 16px;
}
.form-group {
flex: 1;
display: flex;
flex-direction: column;
}
.form-group.flex-grow {
flex: 2;
}
.form-group label {
font-size: 0.9rem;
color: #555;
margin-bottom: 6px;
font-weight: 500;
}
.form-group input,
.form-group select {
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: #667eea;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.1s, box-shadow 0.2s;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
width: 100%;
}
.btn-secondary {
background: #f0f0f0;
color: #333;
}
.btn-success {
background: #10b981;
color: white;
}
.btn-danger {
background: #ef4444;
color: white;
padding: 6px 12px;
font-size: 0.85rem;
}
.result-box {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
padding: 20px;
margin-top: 20px;
color: white;
}
.result-item {
display: flex;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid rgba(255,255,255,0.2);
}
.result-item:last-child {
border-bottom: none;
}
.result-item.highlight {
font-size: 1.2rem;
font-weight: bold;
margin-top: 8px;
padding-top: 16px;
border-top: 2px solid rgba(255,255,255,0.3);
}
.result-label {
opacity: 0.9;
}
.result-value {
font-weight: 600;
}
.stats-row {
display: flex;
gap: 12px;
margin-bottom: 20px;
background: #f8f9fa;
padding: 16px;
border-radius: 12px;
}
.stat-item {
flex: 1;
text-align: center;
}
.stat-label {
display: block;
font-size: 0.85rem;
color: #666;
margin-bottom: 4px;
}
.stat-value {
display: block;
font-size: 1.5rem;
font-weight: bold;
color: #667eea;
}
.filter-row {
display: flex;
gap: 10px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.filter-date {
padding: 10px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 0.95rem;
}
.entries-list {
max-height: 400px;
overflow-y: auto;
}
.entry-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px;
background: #f8f9fa;
border-radius: 8px;
margin-bottom: 10px;
transition: background 0.2s;
}
.entry-item:hover {
background: #f0f0f0;
}
.entry-info {
flex: 1;
}
.entry-name {
font-weight: 600;
color: #333;
margin-bottom: 4px;
}
.entry-details {
font-size: 0.85rem;
color: #666;
}
.entry-macros {
font-size: 0.8rem;
color: #888;
margin-top: 4px;
}
.entry-calories {
font-weight: bold;
color: #667eea;
margin-right: 12px;
font-size: 1.1rem;
}
.entry-date {
font-size: 0.85rem;
color: #999;
margin-right: 12px;
}
.empty-state {
text-align: center;
padding: 40px;
color: #999;
}
@media (max-width: 600px) {
.form-row {
flex-direction: column;
}
.stats-row {
flex-direction: column;
}
header h1 {
font-size: 1.8rem;
}
}