* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #222;
  min-height: 100vh;
}

.header {
  background: #003366;
  color: #fff;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-user {
  font-size: 14px;
  opacity: 0.85;
}

.header-user a {
  color: #fff;
  text-decoration: none;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.success-card {
  text-align: center;
  padding: 40px 24px;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.success-card h2 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 8px;
}

.success-card p {
  color: #666;
  margin-bottom: 24px;
}

h2 {
  font-size: 20px;
  color: #003366;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  appearance: auto;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #003366;
}

.input-prefix {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.input-prefix span {
  padding: 12px 14px;
  background: #f5f7fa;
  font-weight: 600;
  border-right: 2px solid #ddd;
  color: #555;
}

.input-prefix input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.input-prefix input:focus {
  border: none;
  box-shadow: none;
}

/* Foto upload */
.foto-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px dashed #003366;
  border-radius: 12px;
  padding: 30px 20px;
  cursor: pointer;
  background: #f0f4ff;
  transition: background 0.2s;
  gap: 8px;
}

.foto-upload:hover, .foto-upload:active {
  background: #e0e8ff;
}

.camera-icon {
  font-size: 48px;
}

#fotoTekst {
  font-size: 15px;
  color: #003366;
  font-weight: 600;
  text-align: center;
}

/* Categorie grid */
.categorie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cat-btn input {
  display: none;
}

.cat-btn span {
  display: block;
  padding: 10px 6px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-btn input:checked + span {
  border-color: #003366;
  background: #003366;
  color: #fff;
}

.cat-btn span:hover {
  border-color: #003366;
}

/* Kostenplaats grid */
.kp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kp-btn input {
  display: none;
}

.kp-btn span {
  display: block;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.kp-btn input:checked + span {
  border-color: #003366;
  background: #003366;
  color: #fff;
}

.kp-btn span:hover {
  border-color: #003366;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #003366;
  color: #fff;
}

.btn-primary:hover {
  background: #004499;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.btn-large {
  padding: 16px;
  font-size: 18px;
  margin-top: 8px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  color: #c00;
}

/* Install banner */
.install-banner {
  background: #003366;
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 400px) {
  .categorie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
