:root { 
    --primary: #991b1b; 
    --accent: #ef4444;  
    --bg: #fef2f2;
    --gas: #ea580c; 
    --water: #0284c7; 
    --elec: #ca8a04; 
    --grond: #4d7c0f; 
    --telecom: #7c3aed; 
    --materieel: #64748b;
    --kabel: #2563eb; 
    --schade: #b91c1c; 
    --gps: #065f46; 
    --success: #16a34a;
    --boring: #7c2d12; 
    --straat: #374151; 
    --verkeer: #dc2626; 
    --uren: #059669; 
    --veiligheid: #d97706; 
    --riolering: #7c3aed; 
    --sanering: #0f766e;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; font-family: 'Inter', -apple-system, sans-serif; }
body { background: var(--bg); margin: 0; padding-bottom: 140px; color: #450a0a; line-height: 1.5; }

header { 
    background: var(--primary); 
    border-bottom: 4px solid var(--accent); 
    color: white; padding: 15px 20px; 
    position: sticky; top: 0; z-index: 1000; 
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-actions { display: flex; gap: 10px; align-items: center; }
.wk-badge { background: white; color: var(--primary); padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; }
.btn-reset { background: rgba(255,255,255,0.2); color: white; border: none; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }

.container { padding: 15px; max-width: 900px; margin: 0 auto; }
.card { background: white; border-radius: 16px; padding: 20px; margin-bottom: 15px; border: 1px solid #fee2e2; box-shadow: 0 4px 6px rgba(153, 27, 27, 0.05); }
.section-header { font-size: 0.85rem; font-weight: 900; color: var(--primary); text-transform: uppercase; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; border-left: 5px solid var(--accent); padding-left: 12px; }

.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.btn-day { background: #fff5f5; border: 1px solid #fecaca; padding: 15px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: 0.2s; color: #991b1b; text-align: center; }
.btn-day.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.btn-week { grid-column: span 3; background: var(--primary); color: white; border-color: var(--primary); }

label { display: block; font-weight: 700; font-size: 0.7rem; color: #991b1b; margin-bottom: 6px; text-transform: uppercase; }
input, select, textarea { width: 100%; padding: 15px; border: 2px solid #fecaca; border-radius: 10px; font-size: 1rem; margin-bottom: 15px; background: #fff; min-height: 54px; transition: border-color 0.2s; }
input:focus { border-color: var(--accent); outline: none; }

.gps-group { display: flex; gap: 10px; align-items: flex-start; }
.btn-gps-main { background: var(--primary); color: white; border: none; padding: 0 20px; border-radius: 10px; cursor: pointer; height: 54px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.btn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 25px; }
.btn-action { background: white; border: 2px solid #fecaca; padding: 18px 10px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; transition: 0.2s; color: var(--primary); }
.btn-action i { font-size: 1.6rem; }
.btn-action:active { transform: scale(0.95); background: #fff5f5; }

.item-box { background: #fff; border: 1px solid #fecaca; padding: 20px; border-radius: 14px; margin-bottom: 15px; position: relative; border-left: 8px solid #fecaca; animation: pop 0.2s ease-out; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.item-elektra { border-left-color: var(--elec); }
.item-gas { border-left-color: var(--gas); }
.item-water { border-left-color: var(--water); }
.item-grondwerk { border-left-color: var(--grond); }
.item-telecom { border-left-color: var(--telecom); }
.item-kabeltrekken { border-left-color: var(--kabel); }
.item-kabelschade { border-left-color: var(--schade); }
.item-gpsmeting { border-left-color: var(--gps); }
.item-materieel { border-left-color: var(--materieel); }
.item-boringen { border-left-color: var(--boring); }
.item-straatwerk { border-left-color: var(--straat); }
.item-verkeer { border-left-color: var(--verkeer); }
.item-kabelwerk { border-left-color: var(--kabel); }
.item-uren { border-left-color: var(--uren); }
.item-grondsoorten { border-left-color: var(--sanering); }
.item-veiligheid { border-left-color: var(--veiligheid); }
.item-verlichting { border-left-color: var(--elec); }
.item-nulpunt { border-left-color: var(--primary); }

.btn-remove { position: absolute; right: 8px; top: 8px; color: #ef4444; border: none; background: #fee2e2; width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; }

nav { 
    position: fixed; bottom: 20px; left: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.98); display: flex; padding: 12px; 
    border-radius: 24px; border: 2px solid #fee2e2;
    box-shadow: 0 10px 30px rgba(153, 27, 27, 0.2); backdrop-filter: blur(15px); z-index: 1000; 
}
.nav-tab { 
    flex: 1; border: none; background: none; color: #fca5a5; 
    display: flex; flex-direction: column; align-items: center; 
    gap: 6px; font-weight: 800; font-size: 0.75rem; 
    text-transform: uppercase; cursor: pointer; transition: all 0.3s ease;
    padding: 10px 0; border-radius: 15px;
}
.nav-tab.active { color: var(--primary); background: #fef2f2; }
.nav-tab.active i { transform: translateY(-3px); color: var(--accent); }

.pdf-fab { position: fixed; right: 20px; bottom: 120px; width: 75px; height: 75px; background: var(--success); color: white; border-radius: 50%; border: none; font-size: 2rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5); z-index: 99; cursor: pointer; }

.capture-btn { background: var(--gps); color: white; border: none; border-radius: 10px; padding: 15px; font-weight: 800; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.9rem; }

.hidden { display: none !important; }
.unit-label { font-size: 0.8rem; font-weight: 800; color: var(--accent); margin-left: 5px; }
@keyframes pop { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }