:root{
  --bg:#0f172a;
  --bg-card:#111827;
  --accent:#38bdf8;
  --text:#e5e7eb;
  --text-soft:#9ca3af;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at top,#0b1120 0,#020617 45%,#000 100%);
  color:var(--text);
  min-height:100vh;
  display:flex;
  justify-content:center;
  padding:24px 12px;
}

.page{
  width:100%;
  max-width:960px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* TOOL NAAM */
.app-title-inside{
  color:#fff;
  font-weight:700;
  font-size:1.25rem;
  text-align:center;
  margin-bottom:6px;
}

/* OVERLAY */
.mode-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:2147483647;
}
.mode-box{
  background:#111827;
  padding:28px;
  border-radius:16px;
  width:90%;
  max-width:360px;
  text-align:center;
}

/* HELP */
.help-card{
  width:100%;
  background:#111827;
  border-radius:16px;
  padding:20px;
  border:1px solid rgba(255,255,255,0.1);
}
.help-title{
  font-size:1.1rem;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
}
.help-chip{
  font-size:0.7rem;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--accent);
  color:var(--accent);
}
.help-toggle{
  display:none;
  color:var(--accent);
  margin-bottom:10px;
  cursor:pointer;
}
.help-content{
  color:var(--text-soft);
  font-size:0.9rem;
  line-height:1.4;
}

/* Mobiel: help ingeklapt */
@media (max-width:768px){
  #helpToggle{display:block;}
  #helpContent{display:none;}
}

/* Desktop: help altijd zichtbaar */
@media (min-width:769px){
  #helpToggle{display:none;}
  #helpContent{display:block;}
}

/* LAYOUT */
.layout{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}

/* CARDS */
.card{
  flex:1 1 300px;
  width:100%;
  background:#111827;
  border-radius:16px;
  padding:16px;
  border:1px solid rgba(255,255,255,0.1);
}
.card-title{
  font-size:1rem;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:8px;
}
.card-chip{
  font-size:0.7rem;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.2);
}

/* CONTROLS */
.controls{
  width:100%;
  flex-wrap:wrap;
  display:flex;
  gap:8px;
  margin-top:10px;
  box-sizing:border-box;
}

.controls button,
.controls .btn-secondary{
  flex:1 1 auto;
  max-width:100%;
}

button{
  border-radius:999px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,0.2);
  background:#1e293b;
  color:#fff;
  cursor:pointer;
}

/* SCREENS */
.screen{display:none}
.screen.active{display:block}

/* PROGRESS */
.progress-bar-bg{
  width:100%;
  height:8px;
  background:#1e293b;
  border-radius:999px;
}
.progress-bar-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#38bdf8,#22c55e);
  border-radius:999px;
}

/* PUNTENLIJST */
.points-list{
  margin-top:10px;
  max-height:260px;
  overflow-y:auto;
}
.point-card{
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.1);
  padding:10px;
  border-radius:12px;
  margin-bottom:8px;
}
.point-name{font-weight:600}
.point-coords{color:var(--text-soft);margin-top:4px}

/* COPY BUTTON — NIET VERBERGEN OP MOBIEL */
.copy-btn{
  margin-top:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.2);
  background:#1e293b;
  color:#9ca3af;
  cursor:pointer;
}

/* INPUT FIX: voorkom iOS zoom */
input[type="text"],
input[type="file"]{
  font-size:16px;
}
