banyaro/backend/static/css/components.css
rene 5f8fd3bd51 Sprint 8: Events + Hundesitting
Events:
- Backend events.py: CRUD, Typen (ausstellung/training/treffen/markt/wettkampf/sonstiges)
  Haversine-Filter, Monats-Gruppierung in der Liste
- Frontend events.js: Liste/Karte-Toggle, Typ-Filter-Chips, farbige Marker,
  Detail-Modal, Erstellen/Bearbeiten-Formular mit GPS-Button

Hundesitting:
- Backend sitting.py: Sitter-Profile (create/update/me), Anfragen (send/accept/decline/cancel),
  Inbox für Sitter, Haversine-Sortierung, Service-Filter
- Frontend sitting.js: 3 Tabs (Suchen/Profil/Anfragen), Sitter-Karten mit Distanz,
  Detail-Modal + Anfrage-Formular, Profil-Verwaltung

DB: events, sitters, sitting_requests Tabellen hinzugefügt
SW-Cache: by-v21 → by-v22
2026-04-14 06:19:15 +02:00

2024 lines
56 KiB
CSS

/* ============================================================
BAN YARO — Komponenten
Alle wiederverwendbaren UI-Bausteine an einem Ort.
Kein Baustein wird zweimal definiert.
============================================================ */
/* ------------------------------------------------------------
1. BUTTONS
------------------------------------------------------------ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-5);
font-size: var(--text-base);
font-weight: var(--weight-semibold);
line-height: 1;
border-radius: var(--radius-md);
border: 2px solid transparent;
transition: background var(--transition-fast),
color var(--transition-fast),
border-color var(--transition-fast),
transform var(--transition-fast),
box-shadow var(--transition-fast);
cursor: pointer;
white-space: nowrap;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
min-height: 44px; /* Touch-Target Minimum */
}
.btn:active { transform: scale(0.97); }
.btn-primary {
background: var(--c-primary);
color: var(--c-text-inverse);
border-color:var(--c-primary);
}
.btn-primary:hover {
background: var(--c-primary-dark);
border-color: var(--c-primary-dark);
}
.btn-secondary {
background: var(--c-surface);
color: var(--c-text);
border-color: var(--c-border);
box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
background: var(--c-surface-2);
border-color: var(--c-surface-3);
}
.btn-ghost {
background: transparent;
color: var(--c-text-secondary);
border-color: transparent;
}
.btn-ghost:hover {
background: var(--c-surface-2);
color: var(--c-text);
}
.btn-danger {
background: var(--c-danger);
color: #fff;
border-color: var(--c-danger);
}
.btn-danger:hover {
background: var(--c-danger-dark);
border-color: var(--c-danger-dark);
}
.btn-nature {
background: var(--c-nature);
color: #fff;
border-color: var(--c-nature);
}
/* Größen */
.btn-sm {
padding: var(--space-2) var(--space-3);
font-size: var(--text-sm);
min-height: 36px;
border-radius: var(--radius-sm);
}
.btn-lg {
padding: var(--space-4) var(--space-8);
font-size: var(--text-md);
min-height: 52px;
border-radius: var(--radius-lg);
}
.btn-full { width: 100%; }
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
transform: none;
}
/* Icon-only Button */
.btn-icon {
padding: var(--space-2);
border-radius: var(--radius-md);
min-height: 44px;
min-width: 44px;
}
/* ------------------------------------------------------------
2. CARDS
------------------------------------------------------------ */
.card {
background: var(--c-surface);
border: 1px solid var(--c-border-light);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
overflow: hidden;
}
.card-body {
padding: var(--space-4);
}
.card-header {
padding: var(--space-4);
border-bottom: 1px solid var(--c-border-light);
font-weight: var(--weight-semibold);
font-size: var(--text-md);
}
.card-footer {
padding: var(--space-3) var(--space-4);
border-top: 1px solid var(--c-border-light);
background: var(--c-bg);
}
/* Klickbare Card */
.card-clickable {
cursor: pointer;
transition: box-shadow var(--transition-fast),
transform var(--transition-fast);
}
.card-clickable:hover {
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}
.card-clickable:active {
transform: translateY(0);
box-shadow: var(--shadow-sm);
}
/* Horizontale Card (Bild links + Inhalt rechts) */
.card-horizontal {
display: flex;
align-items: stretch;
}
.card-horizontal .card-image {
width: 88px;
flex-shrink: 0;
object-fit: cover;
}
/* ------------------------------------------------------------
3. BADGES & STATUS-PILLS
------------------------------------------------------------ */
.badge {
display: inline-flex;
align-items: center;
gap: var(--space-1);
padding: var(--space-1) var(--space-2);
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
border-radius: var(--radius-full);
white-space: nowrap;
}
.badge-primary { background: var(--c-primary-subtle); color: var(--c-primary-dark); }
.badge-success { background: var(--c-success-subtle); color: var(--c-success); }
.badge-danger { background: var(--c-danger-subtle); color: var(--c-danger); }
.badge-warning { background: var(--c-warning-subtle); color: var(--c-primary-dark); }
.badge-info { background: var(--c-info-subtle); color: var(--c-info); }
.badge-nature { background: var(--c-nature-subtle); color: var(--c-nature); }
.badge-muted { background: var(--c-surface-2); color: var(--c-text-secondary); }
/* Dot-Indicator */
.badge-dot::before {
content: '';
display: inline-block;
width: 6px;
height: 6px;
border-radius: var(--radius-full);
background: currentColor;
}
/* Giftköder-spezifisch — besonders auffällig */
.badge-alarm {
background: var(--c-danger);
color: #fff;
font-size: var(--text-xs);
font-weight: var(--weight-bold);
animation: pulse-alarm 2s ease-in-out infinite;
}
@keyframes pulse-alarm {
0%, 100% { box-shadow: 0 0 0 0 rgba(196, 57, 26, 0.4); }
50% { box-shadow: 0 0 0 6px rgba(196, 57, 26, 0); }
}
/* ------------------------------------------------------------
4. FORMULARE
------------------------------------------------------------ */
.form-group {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.form-label {
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--c-text-secondary);
}
.form-control {
width: 100%;
padding: var(--space-3) var(--space-4);
font-size: var(--text-base);
color: var(--c-text);
background: var(--c-surface);
border: 1.5px solid var(--c-border);
border-radius: var(--radius-md);
transition: border-color var(--transition-fast),
box-shadow var(--transition-fast);
min-height: 44px;
appearance: none;
-webkit-appearance: none;
}
.form-control::placeholder { color: var(--c-text-muted); }
/* Kalender-Icon in Datumseingaben: Amber statt schwarz
color-scheme: light → schwarzes Icon
invert(0.55) → mittleres Grau (vermeidet Clipping bei sepia auf Weiß)
→ sepia → saturate → brightness auf ~#C4843A bringen */
input[type="date"],
input[type="time"] {
color-scheme: light;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
cursor: pointer;
filter: brightness(0) invert(0.55) sepia(1) saturate(4) brightness(0.77);
}
.form-control:focus {
outline: none;
border-color: var(--c-primary);
box-shadow: 0 0 0 3px rgba(196, 132, 58, 0.15);
}
.form-control:invalid:not(:placeholder-shown) {
border-color: var(--c-danger);
}
textarea.form-control {
resize: vertical;
min-height: 100px;
}
.form-control-icon {
position: relative;
}
.form-control-icon .form-control {
padding-left: var(--space-10);
}
.form-control-icon .icon {
position: absolute;
left: var(--space-3);
top: 50%;
transform: translateY(-50%);
color: var(--c-text-muted);
pointer-events: none;
}
.form-hint {
font-size: var(--text-xs);
color: var(--c-text-muted);
}
.form-error {
font-size: var(--text-xs);
color: var(--c-danger);
}
/* Toggle / Checkbox */
.toggle {
position: relative;
display: inline-block;
width: 48px;
height: 28px;
flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
position: absolute;
inset: 0;
background: var(--c-border);
border-radius: var(--radius-full);
transition: background var(--transition-normal);
cursor: pointer;
}
.toggle-slider::before {
content: '';
position: absolute;
width: 22px;
height: 22px;
left: 3px;
top: 3px;
background: #fff;
border-radius: var(--radius-full);
transition: transform var(--transition-normal);
box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider {
background: var(--c-primary);
}
.toggle input:checked + .toggle-slider::before {
transform: translateX(20px);
}
/* ------------------------------------------------------------
5. AVATAR
------------------------------------------------------------ */
.avatar {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
overflow: hidden;
background: var(--c-surface-2);
color: var(--c-text-secondary);
font-weight: var(--weight-semibold);
flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.avatar-md { width: 44px; height: 44px; font-size: var(--text-sm); }
.avatar-lg { width: 64px; height: 64px; font-size: var(--text-lg); }
.avatar-xl { width: 96px; height: 96px; font-size: var(--text-2xl); }
.avatar-2xl { width: 128px; height: 128px; font-size: var(--text-3xl); }
/* Hunde-Avatar mit Rahmen in Primärfarbe */
.avatar-dog {
border: 3px solid var(--c-primary-light);
box-shadow: 0 0 0 1px var(--c-primary);
}
/* ------------------------------------------------------------
6. LISTE (Einstellungen, Menüs)
------------------------------------------------------------ */
.list {
background: var(--c-surface);
border: 1px solid var(--c-border-light);
border-radius: var(--radius-lg);
overflow: hidden;
}
.list-item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-4);
border-bottom: 1px solid var(--c-border-light);
transition: background var(--transition-fast);
min-height: 52px;
}
.list-item:last-child { border-bottom: none; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover { background: var(--c-bg); }
.list-item-icon {
width: 40px;
height: 40px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 20px;
}
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-weight: var(--weight-medium); }
.list-item-desc { font-size: var(--text-sm); color: var(--c-text-secondary); }
/* ------------------------------------------------------------
7. TOAST / BENACHRICHTIGUNGEN
------------------------------------------------------------ */
.toast-container {
position: fixed;
top: calc(var(--safe-top) + var(--space-4));
left: 50%;
transform: translateX(-50%);
z-index: 1000;
display: flex;
flex-direction: column;
gap: var(--space-2);
pointer-events: none;
width: calc(100% - var(--space-8));
max-width: 400px;
}
.toast {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
background: var(--c-text);
color: var(--c-text-inverse);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
pointer-events: auto;
animation: toast-in 200ms ease forwards;
}
.toast-success { background: var(--c-success); }
.toast-danger { background: var(--c-danger); }
.toast-warning { background: var(--c-warning); color: var(--c-text); }
.toast-info { background: var(--c-info); }
@keyframes toast-in {
from { opacity: 0; transform: translateY(-8px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
from { opacity: 1; transform: translateY(0) scale(1); }
to { opacity: 0; transform: translateY(-8px) scale(0.96); }
}
.toast.removing { animation: toast-out 200ms ease forwards; }
/* ------------------------------------------------------------
8. MODAL
------------------------------------------------------------ */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(42, 31, 20, 0.5);
z-index: 900;
display: flex;
align-items: flex-end;
justify-content: center;
padding: var(--space-4);
backdrop-filter: blur(2px);
animation: overlay-in var(--transition-normal) ease;
touch-action: manipulation;
}
@media (min-width: 768px) {
.modal-overlay { align-items: center; }
}
.modal {
background: var(--c-surface);
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
border: 2px solid var(--c-primary);
width: 100%;
max-width: 480px;
max-height: 90vh;
overflow: hidden; /* Modal selbst scrollt NICHT */
display: flex;
flex-direction: column;
box-shadow: var(--shadow-xl);
animation: modal-in var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (min-width: 768px) {
.modal {
border-radius: var(--radius-xl);
animation: overlay-in var(--transition-normal) ease;
}
}
.modal-handle {
width: 40px;
height: 4px;
background: var(--c-border);
border-radius: var(--radius-full);
margin: var(--space-3) auto;
}
@media (min-width: 768px) { .modal-handle { display: none; } }
.modal-header {
padding: var(--space-4) var(--space-6);
border-bottom: 1px solid var(--c-border-light);
display: flex;
align-items: center;
justify-content:space-between;
}
.modal-title {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
}
.modal-body {
padding: var(--space-6);
overflow-y: auto;
flex: 1; /* füllt den Raum zwischen Header und Footer */
scrollbar-width: thin;
scrollbar-color: var(--c-primary) var(--c-surface);
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: var(--c-surface); }
.modal-body::-webkit-scrollbar-thumb {
background: var(--c-primary);
border-radius: var(--radius-full);
}
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--c-primary-dark); }
.modal-footer {
padding: var(--space-4) var(--space-6);
border-top: 1px solid var(--c-border-light);
display: flex;
gap: var(--space-3);
justify-content: flex-end;
}
@keyframes overlay-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes modal-in {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
/* ------------------------------------------------------------
9. LADEINDIKATOR
------------------------------------------------------------ */
.spinner {
width: 24px;
height: 24px;
border: 2.5px solid var(--c-border);
border-top-color: var(--c-primary);
border-radius: var(--radius-full);
animation: spin 0.7s linear infinite;
flex-shrink: 0;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin {
to { transform: rotate(360deg); }
}
.loading-overlay {
position: absolute;
inset: 0;
background: rgba(250, 247, 242, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
border-radius: inherit;
}
/* ------------------------------------------------------------
10. LEERER ZUSTAND (Empty State)
------------------------------------------------------------ */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: var(--space-12) var(--space-8);
gap: var(--space-4);
}
.empty-state-icon {
font-size: 48px;
line-height: 1;
margin-bottom: var(--space-2);
}
.empty-state-title {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
color: var(--c-text);
}
.empty-state-text {
font-size: var(--text-sm);
color: var(--c-text-secondary);
max-width: 280px;
line-height: var(--leading-relaxed);
}
/* ------------------------------------------------------------
11. FOTO-UPLOAD
------------------------------------------------------------ */
.photo-upload {
position: relative;
border: 2px dashed var(--c-border);
border-radius: var(--radius-lg);
background: var(--c-bg);
display: flex;
flex-direction: column;
align-items: center;
justify-content:center;
gap: var(--space-2);
padding: var(--space-8);
cursor: pointer;
transition: border-color var(--transition-fast),
background var(--transition-fast);
min-height: 140px;
}
.photo-upload:hover {
border-color: var(--c-primary);
background: var(--c-primary-subtle);
}
.photo-upload input[type="file"] {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.photo-upload-icon { font-size: 32px; color: var(--c-text-muted); }
.photo-upload-text { font-size: var(--text-sm); color: var(--c-text-secondary); }
.photo-upload-hint { font-size: var(--text-xs); color: var(--c-text-muted); }
/* Vorschau nach Upload */
.photo-preview {
position: relative;
border-radius: var(--radius-lg);
overflow: hidden;
}
.photo-preview img { width: 100%; object-fit: cover; }
.photo-preview-remove {
position: absolute;
top: var(--space-2);
right: var(--space-2);
width: 32px;
height: 32px;
border-radius: var(--radius-full);
background: rgba(42, 31, 20, 0.6);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 16px;
}
/* ------------------------------------------------------------
12. TRENNLINIEN & ABSCHNITTE
------------------------------------------------------------ */
.divider {
height: 1px;
background: var(--c-border-light);
margin: var(--space-4) 0;
}
.section-title {
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--c-text-muted);
text-transform: uppercase;
letter-spacing: 0.08em;
padding: var(--space-4) var(--space-4) var(--space-2);
}
/* ------------------------------------------------------------
13. FAB — Floating Action Button (der + Button)
------------------------------------------------------------ */
.fab {
position: fixed;
z-index: 200;
width: 56px;
height: 56px;
border-radius: var(--radius-full);
background: var(--c-primary);
color: #fff;
box-shadow: var(--shadow-lg);
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
cursor: pointer;
transition: transform var(--transition-fast),
box-shadow var(--transition-fast);
-webkit-tap-highlight-color: transparent;
/* Mobile: über der Bottom-Nav zentriert */
bottom: calc(var(--nav-bottom-height) + var(--safe-bottom) + var(--space-4));
left: 50%;
transform: translateX(-50%);
}
.fab:hover {
transform: translateX(-50%) scale(1.05);
box-shadow: var(--shadow-xl);
}
.fab:active {
transform: translateX(-50%) scale(0.95);
}
/* Desktop: FAB positioniert sich neu */
@media (min-width: 768px) {
.fab {
bottom: var(--space-8);
left: auto;
right: var(--space-8);
transform: none;
}
.fab:hover { transform: scale(1.05); }
.fab:active { transform: scale(0.95); }
}
/* ------------------------------------------------------------
12. TAGEBUCH
------------------------------------------------------------ */
/* Monats-Trennlinie */
.diary-month-header {
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--c-text-secondary);
text-transform: uppercase;
letter-spacing: 0.06em;
padding: var(--space-4) 0 var(--space-2);
border-bottom: 1px solid var(--c-border);
margin-bottom: var(--space-3);
}
.diary-month-header:first-child {
padding-top: 0;
}
/* Eintragskarte */
.diary-card {
background: var(--c-surface);
border: 1px solid var(--c-border);
border-radius: var(--radius-lg);
margin-bottom: var(--space-3);
overflow: hidden;
cursor: pointer;
transition: box-shadow var(--transition-fast),
transform var(--transition-fast);
box-shadow: var(--shadow-xs);
-webkit-tap-highlight-color: transparent;
}
.diary-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}
.diary-card:active {
transform: scale(0.99);
}
/* Meilenstein-Hervorhebung */
.diary-card--milestone {
border-color: var(--c-primary);
border-width: 2px;
background: linear-gradient(
135deg,
var(--c-surface) 0%,
color-mix(in srgb, var(--c-primary) 6%, var(--c-surface)) 100%
);
}
/* Foto oben */
.diary-card-photo {
width: 100%;
height: 180px;
overflow: hidden;
}
.diary-card-photo img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* Card Body */
.diary-card-body {
padding: var(--space-3) var(--space-4);
}
/* Meta-Zeile: Typ + Datum */
.diary-card-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-1);
}
.diary-card-type {
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--c-primary);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.diary-card-date {
font-size: var(--text-xs);
color: var(--c-text-secondary);
}
/* Titel */
.diary-card-title {
font-size: var(--text-base);
font-weight: var(--weight-semibold);
color: var(--c-text);
margin-bottom: var(--space-1);
}
/* Text-Vorschau */
.diary-card-text {
font-size: var(--text-sm);
color: var(--c-text-secondary);
line-height: 1.5;
margin: 0 0 var(--space-2);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Tags */
.diary-card-tags {
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
margin-top: var(--space-1);
}
/* Detail-Ansicht */
.diary-detail-milestone-badge {
display: inline-flex;
align-items: center;
gap: var(--space-1);
background: color-mix(in srgb, var(--c-primary) 12%, transparent);
color: var(--c-primary-dark);
font-weight: var(--weight-semibold);
font-size: var(--text-sm);
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
margin-bottom: var(--space-3);
}
/* Leaflet-Attribution ausblenden */
.leaflet-control-attribution { display: none !important; }
/* ============================================================
GESUNDHEIT
============================================================ */
/* Header mit KI-Button */
.health-header {
display: flex;
justify-content: flex-end;
padding: var(--space-3) 0 var(--space-2);
}
/* Tab-Leiste — Mobile: horizontal scrollbar, Desktop: umbrechen */
.health-tabs {
display: flex;
flex-wrap: wrap;
gap: var(--space-1) var(--space-1);
padding-bottom: var(--space-2);
margin-bottom: var(--space-3);
}
/* Auf sehr kleinen Screens: scrollen statt umbrechen */
@media (max-width: 480px) {
.health-tabs {
flex-wrap: nowrap;
overflow-x: auto;
padding-right: var(--space-4);
scrollbar-width: none;
}
.health-tabs::-webkit-scrollbar { display: none; }
}
.health-tab {
flex-shrink: 0;
padding: var(--space-2) var(--space-3);
border: 2px solid var(--c-border);
border-radius: var(--radius-full);
background: var(--c-surface);
color: var(--c-text-secondary);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
cursor: pointer;
white-space: nowrap;
transition: all var(--transition-fast);
touch-action: manipulation;
}
.health-tab.active {
background: var(--c-primary);
border-color: var(--c-primary);
color: var(--c-text-inverse);
}
/* Karten-Liste */
.health-list {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
/* Einzelne Karte */
.health-card {
background: var(--c-surface);
border: 1px solid var(--c-border);
border-radius: var(--radius-md);
padding: var(--space-4);
cursor: pointer;
display: flex;
gap: var(--space-3);
align-items: flex-start;
transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.health-card:active { transform: scale(0.985); }
.health-card--inactive { opacity: 0.55; }
.health-card-body { flex: 1; min-width: 0; }
.health-card-title { font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }
.health-card-meta { font-size: var(--text-sm); color: var(--c-text-secondary); }
.health-card-next { font-size: var(--text-sm); font-weight: var(--weight-medium); margin-top: var(--space-1); }
.health-card-note { font-size: var(--text-sm); color: var(--c-text-secondary); margin-top: var(--space-1); }
/* Ampel-Punkt (links an der Karte) */
.health-card-ampel {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
margin-top: 5px;
}
.ampel-green { background: #22c55e; }
.ampel-yellow { background: #f59e0b; }
.ampel-red { background: #ef4444; }
.ampel-grey { background: var(--c-border); }
.ampel-text-green { color: #16a34a; }
.ampel-text-yellow { color: #d97706; }
.ampel-text-red { color: #dc2626; }
/* Gruppen-Label (z.B. "Aktuelle Medikamente") */
.health-group-label {
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--c-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
padding: var(--space-3) 0 var(--space-1);
}
/* Gewicht-Diagramm-Wrapper */
.health-chart-wrap {
background: var(--c-surface);
border: 1px solid var(--c-border);
border-radius: var(--radius-md);
padding: var(--space-4);
margin-bottom: var(--space-4);
overflow: hidden;
}
/* Dokument-Thumbnail und Icon */
.health-doc-thumb {
width: 56px;
height: 56px;
object-fit: cover;
border-radius: var(--radius-sm);
flex-shrink: 0;
}
.health-doc-icon {
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
background: var(--c-surface-2);
border-radius: var(--radius-sm);
flex-shrink: 0;
}
/* Detail-Dialog DL */
.health-detail-dl {
display: grid;
grid-template-columns: auto 1fr;
gap: var(--space-1) var(--space-4);
font-size: var(--text-sm);
}
.health-detail-dl dt {
color: var(--c-text-secondary);
font-weight: var(--weight-medium);
white-space: nowrap;
}
.health-detail-dl dd { margin: 0; }
/* ------------------------------------------------------------
DOG SWITCHER
Avatar-Leiste in Header (Mobile) + Sidebar-Logo (Desktop)
------------------------------------------------------------ */
/* Aktiver (linker) Hund — primärer Ring */
.dog-sw-active {
width: 34px;
height: 34px;
border-radius: var(--radius-full);
overflow: hidden;
background: var(--c-surface-2);
flex-shrink: 0;
cursor: pointer;
border: 2.5px solid var(--c-primary);
transition: transform var(--transition-fast),
box-shadow var(--transition-fast);
}
.dog-sw-active:hover {
transform: scale(1.06);
box-shadow: 0 0 0 3px var(--c-primary-subtle);
}
.dog-sw-active img { width:100%; height:100%; object-fit:cover; display:block; }
.dog-sw-active span {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-size: 17px;
}
/* "Ban Yaro" Label — füllt den Zwischenraum */
.dog-sw-title {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Gruppe der inaktiven Hunde (rechts) */
.dog-sw-others {
display: flex;
align-items: center;
position: relative; /* Anker für Quickpicker-Dropdown */
flex-shrink: 0;
}
/* Inaktiver Hund-Avatar */
.dog-sw-other {
width: 28px;
height: 28px;
border-radius: var(--radius-full);
overflow: hidden;
background: var(--c-surface-2);
border: 2px solid var(--c-surface);
cursor: pointer;
flex-shrink: 0;
transition: transform var(--transition-fast);
position: relative;
}
.dog-sw-other:hover { transform: scale(1.12); }
.dog-sw-other img { width:100%; height:100%; object-fit:cover; display:block; }
.dog-sw-other span {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-size: 14px;
}
/* Gestapelter Avatar-Stack (3+ Hunde) */
.dog-sw-stack {
display: flex;
align-items: center;
cursor: pointer;
}
.dog-sw-stack .dog-sw-other { margin-left: -9px; }
.dog-sw-stack .dog-sw-other:first-child { margin-left: 0; }
.dog-sw-stack .dog-sw-other--0 { z-index: 3; }
.dog-sw-stack .dog-sw-other--1 { z-index: 2; }
.dog-sw-stack .dog-sw-other--2 { z-index: 1; }
.dog-sw-stack:hover .dog-sw-other { filter: brightness(1.05); }
/* +N Überlauf-Badge */
.dog-sw-more {
width: 28px;
height: 28px;
border-radius: var(--radius-full);
background: var(--c-surface-2);
border: 2px solid var(--c-surface);
display: flex;
align-items: center;
justify-content: center;
font-size: 9px;
font-weight: var(--weight-bold);
color: var(--c-text-secondary);
margin-left: -9px;
position: relative;
z-index: 0;
}
/* Quickpicker-Dropdown */
.dog-quickpick {
position: absolute;
top: calc(100% + 10px);
right: 0;
background: var(--c-surface);
border: 1px solid var(--c-border-light);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
padding: var(--space-2);
min-width: 170px;
z-index: 600;
}
.dog-quickpick.hidden { display: none; }
.dog-qp-item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-md);
cursor: pointer;
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--c-text);
transition: background var(--transition-fast);
-webkit-tap-highlight-color: transparent;
}
.dog-qp-item:hover { background: var(--c-bg); }
.dog-qp-av {
width: 32px;
height: 32px;
border-radius: var(--radius-full);
overflow: hidden;
background: var(--c-surface-2);
flex-shrink: 0;
}
.dog-qp-av img { width:100%; height:100%; object-fit:cover; display:block; }
.dog-qp-av span {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-size: 16px;
}
/* Sidebar: größerer aktiver Avatar */
#sidebar-dog-switcher .dog-sw-active {
width: 36px;
height: 36px;
}
/* ------------------------------------------------------------
DIARY — Multi-Dog (Hunde-Auswahl im Formular + Karten-Anzeige)
------------------------------------------------------------ */
/* Avatar-Reihe in der Tagebuch-Karte */
.diary-dog-row {
display: flex;
align-items: center;
gap: -4px; /* überlappend via margin */
margin-top: var(--space-2);
flex-wrap: wrap;
gap: var(--space-1);
}
.diary-dog-av {
width: 22px;
height: 22px;
border-radius: var(--radius-full);
overflow: hidden;
background: var(--c-surface-2);
border: 1.5px solid var(--c-surface);
flex-shrink: 0;
}
.diary-dog-av img { width:100%; height:100%; object-fit:cover; display:block; }
.diary-dog-av span {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-size: 12px;
}
/* Hunde-Chip in der Detail-Ansicht */
.diary-detail-dogs {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-bottom: var(--space-3);
}
.diary-dog-chip {
display: flex;
align-items: center;
gap: var(--space-1);
padding: 3px 8px 3px 4px;
background: var(--c-surface-2);
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: var(--weight-medium);
color: var(--c-text-secondary);
}
.diary-dog-chip .diary-dog-av {
width: 20px;
height: 20px;
}
/* Hunde-Picker im Formular */
.diary-dog-picker {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.diary-dog-pick-item {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
border: 1.5px solid var(--c-border-light);
border-radius: var(--radius-full);
cursor: pointer;
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--c-text-secondary);
transition: border-color var(--transition-fast),
background var(--transition-fast),
color var(--transition-fast);
-webkit-tap-highlight-color: transparent;
user-select: none;
}
.diary-dog-pick-item input { display: none; }
.diary-dog-pick-item .diary-dog-av {
width: 26px;
height: 26px;
}
.diary-dog-pick-item:hover {
border-color: var(--c-primary);
color: var(--c-text);
}
.diary-dog-pick-item.checked {
border-color: var(--c-primary);
background: var(--c-primary-subtle);
color: var(--c-primary-dark);
font-weight: var(--weight-semibold);
}
/* ============================================================
TAGEBUCH — HUNDE-PICKER (Einstiegsseite bei mehreren Hunden)
============================================================ */
.diary-picker-wrap {
display: flex;
flex-direction: column;
align-items: center;
padding: var(--space-8) var(--space-4) var(--space-4);
gap: var(--space-5);
}
.diary-picker-hint {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
color: var(--c-text-secondary);
margin: 0;
}
.diary-picker-grid {
display: flex;
flex-wrap: wrap;
gap: var(--space-4);
justify-content: center;
}
.diary-picker-card {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-2);
padding: var(--space-4);
width: 140px;
background: var(--c-surface);
border: 2px solid var(--c-border);
border-radius: var(--radius-lg);
cursor: pointer;
transition: transform var(--transition-fast), box-shadow var(--transition-fast),
border-color var(--transition-fast);
touch-action: manipulation;
}
.diary-picker-card:active {
transform: scale(0.96);
}
.diary-picker-card--active {
border-color: var(--c-primary);
box-shadow: 0 0 0 3px var(--c-primary-subtle);
}
.diary-picker-av {
width: 88px;
height: 88px;
border-radius: 50%;
overflow: hidden;
background: var(--c-surface-2);
display: flex;
align-items: center;
justify-content: center;
border: 3px solid var(--c-border);
}
.diary-picker-card--active .diary-picker-av {
border-color: var(--c-primary);
}
.diary-picker-av img {
width: 100%;
height: 100%;
object-fit: cover;
}
.diary-picker-name {
font-weight: var(--weight-semibold);
font-size: var(--text-base);
color: var(--c-text);
text-align: center;
}
.diary-picker-rasse {
font-size: var(--text-xs);
color: var(--c-text-secondary);
text-align: center;
}
/* ============================================================
ORTE (places.js)
============================================================ */
.places-layout {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.places-toolbar {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
background: var(--c-surface);
border-bottom: 1px solid var(--c-border-light);
flex-shrink: 0;
overflow-x: auto;
scrollbar-width: none;
}
.places-toolbar::-webkit-scrollbar { display: none; }
.places-filter {
display: flex;
gap: var(--space-2);
flex: 1;
overflow-x: auto;
scrollbar-width: none;
}
.places-filter::-webkit-scrollbar { display: none; }
.places-filter-btn {
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
border: 1.5px solid var(--c-border);
background: var(--c-surface);
color: var(--c-text-secondary);
font-size: var(--text-sm);
cursor: pointer;
white-space: nowrap;
transition: all 0.15s;
flex-shrink: 0;
}
.places-filter-btn.active {
background: var(--c-primary);
border-color: var(--c-primary);
color: #fff;
}
.places-map {
height: 42%;
flex-shrink: 0;
min-height: 180px;
}
.places-list {
flex: 1;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--c-primary) var(--c-surface);
}
.places-list-inner {
padding: var(--space-3) var(--space-4);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.places-card {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3);
background: var(--c-surface);
border: 1.5px solid var(--c-border-light);
border-left: 4px solid var(--typ-color, var(--c-primary));
border-radius: var(--radius-lg);
cursor: pointer;
transition: box-shadow 0.15s;
}
.places-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.places-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.places-card-body { flex: 1; min-width: 0; }
.places-card-name { font-weight: var(--weight-semibold); color: var(--c-text); }
.places-card-meta { font-size: var(--text-sm); color: var(--c-text-secondary); margin-top: 2px; }
.places-card-flags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.places-card-arrow { color: var(--c-text-muted); font-size: 1.2rem; }
.places-flag {
font-size: var(--text-xs);
padding: 2px 7px;
border-radius: var(--radius-full);
background: var(--c-surface-2);
color: var(--c-text-secondary);
}
.places-flag--detail {
font-size: var(--text-sm);
padding: var(--space-1) var(--space-3);
}
.places-locate-btn {
font-size: 1.3rem;
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--c-surface);
border: 1.5px solid var(--c-border);
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
/* ============================================================
ROUTEN (routes.js)
============================================================ */
.routes-layout {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.routes-tabs {
display: flex;
border-bottom: 2px solid var(--c-border-light);
flex-shrink: 0;
background: var(--c-surface);
}
.routes-tab {
flex: 1;
padding: var(--space-3) var(--space-4);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--c-text-secondary);
background: none;
border: none;
cursor: pointer;
border-bottom: 3px solid transparent;
margin-bottom: -2px;
transition: all 0.15s;
}
.routes-tab.active {
color: var(--c-primary);
border-color: var(--c-primary);
}
.routes-tab-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.routes-map {
height: 40%;
min-height: 160px;
flex-shrink: 0;
}
.routes-list {
flex: 1;
overflow-y: auto;
padding: var(--space-3) var(--space-4);
display: flex;
flex-direction: column;
gap: var(--space-2);
scrollbar-width: thin;
scrollbar-color: var(--c-primary) var(--c-surface);
}
.routes-card {
display: flex;
align-items: flex-start;
gap: var(--space-3);
padding: var(--space-3);
background: var(--c-surface);
border: 1.5px solid var(--c-border-light);
border-radius: var(--radius-lg);
cursor: pointer;
transition: box-shadow 0.15s;
}
.routes-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.routes-card-num {
width: 28px;
height: 28px;
border-radius: 50%;
color: #fff;
font-weight: var(--weight-bold);
font-size: var(--text-sm);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.routes-card-body { flex: 1; min-width: 0; }
.routes-card-name { font-weight: var(--weight-semibold); color: var(--c-text); }
.routes-card-meta { font-size: var(--text-sm); color: var(--c-text-secondary); margin-top: 2px; }
.routes-card-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }
.routes-badge {
font-size: var(--text-xs);
padding: 2px 8px;
border-radius: var(--radius-full);
background: var(--c-surface-2);
color: var(--c-text-secondary);
}
.routes-badge--leicht { background: #dcfce7; color: #15803d; }
.routes-badge--mittel { background: #fef9c3; color: #a16207; }
.routes-badge--anspruchsvoll{ background: #fee2e2; color: #b91c1c; }
.routes-badge--info { background: var(--c-primary-subtle); color: var(--c-primary-dark); }
/* Aufzeichnungs-Panel */
.routes-rec-panel {
padding: var(--space-5) var(--space-4);
background: var(--c-surface);
flex-shrink: 0;
}
.routes-rec-stats {
display: flex;
gap: var(--space-4);
margin-bottom: var(--space-4);
justify-content: center;
}
.routes-rec-stat {
display: flex;
flex-direction: column;
align-items: center;
min-width: 70px;
}
.routes-rec-stat-val {
font-size: 1.8rem;
font-weight: var(--weight-bold);
color: var(--c-primary);
line-height: 1;
}
.routes-rec-stat-lbl {
font-size: var(--text-xs);
color: var(--c-text-muted);
margin-top: 2px;
}
/* ============================================================
ZENTRALE KARTE (map.js)
============================================================ */
.map-full-layout {
position: relative;
height: 100%;
overflow: hidden;
}
.map-full {
width: 100%;
height: 100%;
}
.map-legend {
position: absolute;
top: var(--space-3);
left: 50%;
transform: translateX(-50%);
z-index: 1000;
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
max-width: calc(100vw - var(--space-6));
justify-content: center;
}
.map-legend-btn {
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-full);
background: rgba(255,255,255,0.92);
border: 1.5px solid var(--layer-color, var(--c-border));
color: var(--c-text-secondary);
font-size: var(--text-xs);
cursor: pointer;
backdrop-filter: blur(4px);
transition: all 0.15s;
box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.map-legend-btn.active {
background: var(--layer-color, var(--c-primary));
color: #fff;
border-color: var(--layer-color, var(--c-primary));
}
.map-locate-btn {
position: absolute;
bottom: var(--space-6);
right: var(--space-4);
z-index: 1000;
width: 44px;
height: 44px;
border-radius: 50%;
background: var(--c-surface);
border: 1.5px solid var(--c-border);
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
cursor: pointer;
font-size: 1.3rem;
display: flex;
align-items: center;
justify-content: center;
}
/* ------------------------------------------------------------
GASSI-TREFFEN (walks.js)
------------------------------------------------------------ */
.walks-toolbar {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-4);
background: var(--c-surface);
border-bottom: 1px solid var(--c-border);
flex-shrink: 0;
}
.walks-view-toggle {
display: flex;
gap: var(--space-1);
background: var(--c-bg);
border-radius: var(--radius-md);
padding: 2px;
border: 1px solid var(--c-border);
}
.walks-view-btn {
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: var(--c-text-secondary);
font-size: var(--text-sm);
cursor: pointer;
transition: all 0.15s;
}
.walks-view-btn.active {
background: var(--c-surface);
color: var(--c-text);
box-shadow: var(--shadow-xs);
}
.walks-list {
flex: 1;
overflow-y: auto;
padding: var(--space-4);
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.walks-section-label {
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--c-text-secondary);
padding: var(--space-1) 0;
margin-bottom: var(--space-1);
}
.walks-card {
background: var(--c-surface);
border-radius: var(--radius-lg);
border: 1px solid var(--c-border);
padding: var(--space-4);
display: grid;
grid-template-columns: 56px 1fr auto;
gap: var(--space-3);
cursor: pointer;
transition: box-shadow 0.15s;
box-shadow: var(--shadow-xs);
}
.walks-card:hover { box-shadow: var(--shadow-md); }
.walks-card.today { border-left: 3px solid var(--c-amber, #f59e0b); }
.walks-card.full { opacity: 0.6; }
.walks-date-badge {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: var(--c-bg);
border-radius: var(--radius-md);
padding: var(--space-1) var(--space-2);
min-width: 52px;
}
.walks-date-badge .day { font-size: var(--text-xs); color: var(--c-text-secondary); }
.walks-date-badge .num { font-size: 1.5rem; font-weight: var(--weight-bold); line-height: 1.1; }
.walks-date-badge .month { font-size: var(--text-xs); color: var(--c-text-secondary); }
.walks-date-badge.today-badge .num { color: var(--c-amber, #f59e0b); }
.walks-card-body { min-width: 0; }
.walks-card-title {
font-weight: var(--weight-semibold);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.walks-card-meta {
font-size: var(--text-sm);
color: var(--c-text-secondary);
margin-top: var(--space-1);
}
.walks-card-side {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: var(--space-1);
}
.walks-spots {
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
color: var(--c-success);
white-space: nowrap;
}
.walks-spots.full { color: var(--c-text-muted); }
.walks-spots.today { color: var(--c-amber, #f59e0b); }
.walks-map {
flex: 1;
position: relative;
}
.walks-participant {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2) 0;
border-bottom: 1px solid var(--c-border);
font-size: var(--text-sm);
}
.walks-participant:last-child { border-bottom: none; }
.walks-participant-name { font-weight: var(--weight-semibold); }
.walks-participant-dogs { color: var(--c-text-secondary); }
/* ------------------------------------------------------------
EVENTS (events.js)
------------------------------------------------------------ */
.events-toolbar {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-4);
background: var(--c-surface);
border-bottom: 1px solid var(--c-border);
flex-shrink: 0;
}
.events-view-toggle {
display: flex;
gap: var(--space-1);
background: var(--c-bg);
border-radius: var(--radius-md);
padding: 2px;
border: 1px solid var(--c-border);
}
.events-view-btn {
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: var(--c-text-secondary);
font-size: var(--text-sm);
cursor: pointer;
transition: all 0.15s;
}
.events-view-btn.active {
background: var(--c-surface);
color: var(--c-text);
box-shadow: var(--shadow-xs);
}
.events-filter-bar {
display: flex;
gap: var(--space-2);
padding: var(--space-2) var(--space-4);
overflow-x: auto;
background: var(--c-surface);
border-bottom: 1px solid var(--c-border);
flex-shrink: 0;
scrollbar-width: none;
}
.events-filter-bar::-webkit-scrollbar { display: none; }
.events-filter-btn {
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
border: 1.5px solid var(--c-border);
background: var(--c-surface);
color: var(--c-text-secondary);
font-size: var(--text-sm);
cursor: pointer;
white-space: nowrap;
transition: all 0.15s;
flex-shrink: 0;
}
.events-filter-btn.active {
background: var(--c-primary);
color: #fff;
border-color: var(--c-primary);
}
.events-list {
flex: 1;
overflow-y: auto;
padding: var(--space-4);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.events-map {
flex: 1;
position: relative;
}
.events-month-label {
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--c-text-secondary);
padding: var(--space-2) 0 var(--space-1);
}
.events-card {
background: var(--c-surface);
border-radius: var(--radius-lg);
border: 1px solid var(--c-border);
border-left: 3px solid var(--c-primary);
padding: var(--space-3) var(--space-4);
display: grid;
grid-template-columns: 52px 1fr auto;
gap: var(--space-3);
cursor: pointer;
transition: box-shadow 0.15s;
align-items: center;
box-shadow: var(--shadow-xs);
}
.events-card:hover { box-shadow: var(--shadow-md); }
.events-date-badge {
display: flex;
flex-direction: column;
align-items: center;
background: var(--c-bg);
border-radius: var(--radius-md);
padding: var(--space-1);
}
.events-date-badge .day { font-size: var(--text-xs); color: var(--c-text-secondary); }
.events-date-badge .num { font-size: 1.5rem; font-weight: var(--weight-bold); line-height: 1.1; }
.events-date-badge .month { font-size: var(--text-xs); color: var(--c-text-secondary); }
.events-card-body { min-width: 0; }
.events-card-title {
font-weight: var(--weight-semibold);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: var(--space-1);
}
.events-card-meta {
font-size: var(--text-sm);
color: var(--c-text-secondary);
display: flex;
align-items: center;
gap: var(--space-1);
flex-wrap: wrap;
}
.events-badge {
display: inline-block;
padding: 2px var(--space-2);
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
}
.events-detail-row {
margin-bottom: var(--space-2);
color: var(--c-text);
}
.events-detail-desc {
background: var(--c-bg);
border-radius: var(--radius-md);
padding: var(--space-3);
margin: var(--space-3) 0;
color: var(--c-text-secondary);
white-space: pre-wrap;
}
/* ------------------------------------------------------------
SITTING (sitting.js)
------------------------------------------------------------ */
.sitting-tabs {
display: flex;
border-bottom: 1px solid var(--c-border);
background: var(--c-surface);
flex-shrink: 0;
}
.sitting-tab {
flex: 1;
padding: var(--space-3);
border: none;
background: transparent;
color: var(--c-text-secondary);
font-size: var(--text-sm);
font-weight: var(--weight-medium);
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.15s;
}
.sitting-tab.active {
color: var(--c-primary);
border-bottom-color: var(--c-primary);
}
.sitting-content {
flex: 1;
overflow-y: auto;
padding: var(--space-4);
}
.sitting-list {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.sitting-card {
background: var(--c-surface);
border-radius: var(--radius-lg);
border: 1px solid var(--c-border);
padding: var(--space-4);
display: grid;
grid-template-columns: 48px 1fr auto;
gap: var(--space-3);
align-items: flex-start;
cursor: pointer;
transition: box-shadow 0.15s;
box-shadow: var(--shadow-xs);
}
.sitting-card:hover { box-shadow: var(--shadow-md); }
.sitting-card-avatar {
width: 48px;
height: 48px;
background: var(--c-bg);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.sitting-card-name { font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }
.sitting-card-dist { font-size: var(--text-xs); color: var(--c-text-muted); margin-bottom: var(--space-1); }
.sitting-card-desc { font-size: var(--text-sm); color: var(--c-text-secondary); margin-bottom: var(--space-2); }
.sitting-price { font-weight: var(--weight-bold); color: var(--c-primary); }
.sitting-dogs { font-size: var(--text-xs); color: var(--c-text-muted); margin-top: var(--space-1); }
.sitting-services {
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
}
.sit-service-badge {
background: var(--c-primary-light, #dbeafe);
color: var(--c-primary);
padding: 2px var(--space-2);
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: var(--weight-medium);
}
.sitting-empty-profil {
text-align: center;
padding: var(--space-8) var(--space-4);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-3);
}
.sitting-my-profil { display: flex; flex-direction: column; gap: var(--space-3); }
.sitting-profil-header {
display: flex;
align-items: center;
justify-content: space-between;
}
.sitting-profil-status {
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
}
.sitting-profil-status.active { background: #d1fae5; color: #065f46; }
.sitting-profil-status.inactive { background: #f3f4f6; color: #6b7280; }
.sitting-profil-facts {
display: flex;
gap: var(--space-4);
}
.sitting-profil-fact { font-size: var(--text-sm); color: var(--c-text-secondary); }
.sitting-section-label {
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--c-text-secondary);
margin-bottom: var(--space-2);
}
.sitting-request-card {
background: var(--c-surface);
border-radius: var(--radius-lg);
border: 1px solid var(--c-border);
padding: var(--space-3) var(--space-4);
margin-bottom: var(--space-2);
box-shadow: var(--shadow-xs);
}
.sitting-req-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-1);
}
.sitting-req-name { font-weight: var(--weight-semibold); }
.sitting-req-status { font-size: var(--text-sm); font-weight: var(--weight-semibold); text-transform: capitalize; }
.sitting-req-dates { font-size: var(--text-sm); color: var(--c-text-secondary); }
.sitting-req-msg { font-size: var(--text-sm); color: var(--c-text-secondary); margin-top: var(--space-1); }
.sitting-req-actions {
display: flex;
gap: var(--space-2);
margin-top: var(--space-2);
}
.sitting-detail-avatar {
font-size: 4rem;
text-align: center;
margin-bottom: var(--space-2);
}