Files
Pooptracker/style.css
T
2026-10-01 05:58:04 +00:00

300 lines
7.2 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ============================================
🐕 Hunde-Business Tracker – Styles
Mobile-First, freundlich & entspannt
============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--brown: #8b5e3c;
--brown-dark: #6d4527;
--cream: #fdf6ec;
--card: #ffffff;
--accent: #ffb703;
--danger: #e63946;
--green: #2a9d8f;
--text: #3d2c1e;
--muted: #9b8a78;
--radius: 18px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--cream);
color: var(--text);
min-height: 100vh;
padding-bottom: env(safe-area-inset-bottom);
}
.hidden { display: none !important; }
/* ---------- Login ---------- */
#login-screen {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 24px;
}
.login-card {
text-align: center;
background: var(--card);
border-radius: var(--radius);
padding: 40px 28px;
max-width: 340px;
width: 100%;
box-shadow: 0 10px 40px rgba(109, 69, 39, .18);
}
.login-emoji { font-size: 56px; margin-bottom: 12px; }
.login-card h1 { font-size: 24px; color: var(--brown-dark); margin-bottom: 8px; line-height: 1.2; }
.sub { color: var(--muted); font-size: 14px; margin: 8px 0 20px; }
#token-input {
width: 100%;
padding: 14px;
border: 2px solid var(--brown);
border-radius: 12px;
font-size: 16px;
text-align: center;
margin-bottom: 14px;
outline: none;
}
#token-input:focus { background: #fff8ee; }
.error { color: var(--danger); font-weight: 600; margin-top: 12px; font-size: 14px; }
/* ---------- Buttons ---------- */
.btn {
border: none;
border-radius: 12px;
padding: 14px 20px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
background: #eee2d5;
color: var(--brown-dark);
width: 100%;
transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: scale(.97); }
.btn.primary {
background: linear-gradient(135deg, var(--brown), var(--brown-dark));
color: #fff;
box-shadow: 0 4px 14px rgba(109, 69, 39, .35);
}
.btn.big { font-size: 18px; padding: 16px; margin-top: 18px; }
.icon-btn {
background: rgba(255,255,255,.85);
border: none;
border-radius: 10px;
font-size: 20px;
padding: 6px 10px;
cursor: pointer;
}
/* ---------- App Layout ---------- */
#app-screen {
max-width: 560px;
margin: 0 auto;
padding: 0 14px 40px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 4px 10px;
position: sticky;
top: 0;
background: var(--cream);
z-index: 10;
}
header h1 { font-size: 19px; color: var(--brown-dark); }
.header-actions { display: flex; gap: 6px; }
.card {
background: var(--card);
border-radius: var(--radius);
padding: 20px 18px;
margin-bottom: 16px;
box-shadow: 0 4px 18px rgba(109, 69, 39, .10);
}
.card h2 { font-size: 17px; color: var(--brown-dark); margin-bottom: 16px; }
/* ---------- Typ-Auswahl ---------- */
.emoji-toggle {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.type-btn {
flex: 1;
font-size: 34px;
padding: 14px 6px 10px;
border-radius: 14px;
border: 3px solid transparent;
background: #f6efe4;
cursor: pointer;
transition: all .15s;
line-height: 1.3;
}
.type-btn span { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.type-btn.selected {
border-color: var(--accent);
background: #fff3d6;
transform: scale(1.03);
box-shadow: 0 4px 12px rgba(255, 183, 3, .3);
}
/* ---------- Slider ---------- */
.field-label { font-size: 14px; font-weight: 700; color: var(--brown-dark); margin-bottom: 6px; display: block; }
.slider-row {
display: flex;
align-items: center;
gap: 12px;
}
.big-emoji { font-size: 44px; min-width: 56px; text-align: center; transition: transform .15s; }
input[type="range"] {
flex: 1;
-webkit-appearance: none;
appearance: none;
height: 14px;
border-radius: 8px;
background: linear-gradient(90deg, var(--green), var(--accent), var(--danger));
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 34px;
height: 34px;
border-radius: 50%;
background: #fff;
border: 4px solid var(--brown);
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb {
width: 26px; height: 26px; border-radius: 50%;
background: #fff; border: 4px solid var(--brown); cursor: pointer;
}
.slider-scale {
display: flex;
justify-content: space-between;
margin: 4px 0 18px 68px;
font-size: 11px;
color: var(--muted);
}
.caption {
font-size: 14px;
font-weight: 600;
color: var(--muted);
margin: 6px 0 0 68px;
min-height: 20px;
}
/* ---------- Inputs ---------- */
.text-input {
width: 100%;
padding: 13px;
border: 2px solid #e5d9c8;
border-radius: 12px;
font-size: 16px;
margin-bottom: 16px;
background: #fffdf9;
color: var(--text);
}
.text-input:focus { border-color: var(--brown); outline: none; }
/* ---------- Durchfall-Warnung ---------- */
.alert {
background: #ffe3e3;
border: 2px dashed var(--danger);
border-radius: 12px;
padding: 12px 14px;
font-size: 14px;
color: #8d1720;
margin-top: 6px;
animation: wiggle .5s ease;
}
@keyframes wiggle {
0%,100% { transform: rotate(0); }
25% { transform: rotate(-1deg); }
75% { transform: rotate(1deg); }
}
.save-feedback {
text-align: center;
margin-top: 12px;
font-size: 16px;
font-weight: 700;
color: var(--green);
animation: pop .3s ease;
}
@keyframes pop {
0% { transform: scale(.5); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
/* ---------- Liste ---------- */
.entry-list { display: flex; flex-direction: column; gap: 10px; }
.entry {
display: flex;
align-items: flex-start;
gap: 12px;
background: #faf5ec;
border-radius: 14px;
padding: 12px 14px;
animation: slidein .25s ease;
}
@keyframes slidein {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.entry-icon { font-size: 30px; line-height: 1; }
.entry-body { flex: 1; min-width: 0; }
.entry-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.entry-title { font-weight: 700; font-size: 15px; }
.entry-note { font-size: 13px; color: #6e5a48; margin-top: 3px; overflow-wrap: break-word; }
.entry-del {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
opacity: .45;
padding: 4px;
}
.entry-del:active { opacity: 1; transform: scale(1.2); }
.empty { text-align: center; color: var(--muted); padding: 18px 0; }
/* ---------- Dialoge ---------- */
dialog {
border: none;
border-radius: var(--radius);
padding: 24px;
max-width: 92vw;
width: 340px;
box-shadow: 0 20px 60px rgba(0,0,0,.3);
background: var(--card);
}
dialog::backdrop { background: rgba(61, 44, 30, .5); }
dialog h2 { color: var(--brown-dark); margin-bottom: 14px; }
dialog .btn { margin-top: 10px; }
.file-input { margin-top: 4px; margin-bottom: 10px; font-size: 14px; }
/* ---------- Statistik ---------- */
.stat-row {
display: flex;
justify-content: space-between;
padding: 10px 4px;
border-bottom: 1px dashed #e5d9c8;
font-size: 15px;
}
.stat-row:last-child { border-bottom: none; }
.stat-val { font-weight: 700; color: var(--brown-dark); }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 0 20px; }