body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3e9f7 100%);
  min-height: 100vh;
}

h1 {
  text-align: center;
  color: #1a2233;
  margin-bottom: 12px;
  font-size: 2.3em;
  letter-spacing: 1px;
  font-weight: 700;
}

label {
  font-weight: 600;
  margin-top: 10px;
  display: block;
  color: #2a3a4a;
}

input[type="file"] {
  margin-bottom: 15px;
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid #bfc9d9;
  border-radius: 6px;
  background: #fff;
  transition: border 0.2s;
}

input[type="file"]:focus {
  border: 1.5px solid #007bff;
  outline: none;
}

button {
  margin-top: 10px;
  padding: 12px 28px;
  font-size: 17px;
  background: linear-gradient(90deg, #007bff 60%, #4f8cff 100%);
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.2s, transform 0.1s;
}

button:hover, button:focus {
  background: linear-gradient(90deg, #0056b3 60%, #2b6cb0 100%);
  transform: translateY(-2px) scale(1.03);
}

button:disabled {
  background: #bfc9d9;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}

#statusLog {
  max-height: 120px;
  overflow-y: auto;
  background: #f7f7fa;
  border: 1px solid #ccc;
  padding: 8px;
  margin: 10px auto 20px auto;
  width: 90%;
  font-size: 0.95em;
  border-radius: 4px;
  box-sizing: border-box;
}

#statusLog.enabled {
  display: block;
}

#result {
  margin-top: 24px;
}

#resultContent table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

#resultContent th, #resultContent td {
  border: 1px solid #e3e9f7;
  padding: 10px;
  text-align: center;
}

#resultContent th {
  background: #e3e9f7;
  font-weight: 700;
  color: #1a2233;
}

table {
  border-collapse: collapse;
  margin-top: 15px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  border: 1px solid #e3e9f7;
  padding: 12px;
  text-align: center;
}

th {
  background: #e3e9f7;
  font-weight: 700;
}

.no-js-warning {
  color: #e74c3c;
  font-weight: bold;
  text-align: center;
  background: #fff3f3;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 10px;
  margin: 18px auto;
  max-width: 400px;
}

.button-group {
  text-align: center;
  margin-bottom: 24px;
}

#mapControls {
  text-align: center;
  margin-bottom: 14px;
}

#mapControls button {
  margin-left: 10px;
  padding: 12px 28px;
  font-size: 17px;
  background: linear-gradient(90deg, #007bff 60%, #4f8cff 100%);
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.2s, transform 0.1s;
}

#mapControls button:hover, #mapControls button:focus {
  background: linear-gradient(90deg, #0056b3 60%, #2b6cb0 100%);
  transform: translateY(-2px) scale(1.03);
}

#mapControls button:disabled {
  background: #bfc9d9;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}

#map {
  height: 400px;
  margin-top: 10px;
  border: 1px solid #bfc9d9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.radio-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-bottom: 20px;
}

.radio-group label {
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #234;
  padding: 10px 22px;
  border-radius: 8px;
  background: #f3f7fa;
  border: 2px solid #bfc9d9;
  transition: background 0.2s, border 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-group input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: #007bff;
  margin-right: 8px;
  cursor: pointer;
}

.radio-group input[type="radio"]:focus + label,
.radio-group input[type="radio"]:checked + label {
  background: #e3e9f7;
  border: 2.5px solid #007bff;
  color: #007bff;
}

pre {
  background: #f4f7fb;
  border: 1px solid #e3e9f7;
  padding: 12px;
  border-radius: 8px;
  font-size: 1em;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  color: #2b3a5a;
  overflow-x: auto;
  margin: 0 auto 10px auto;
  max-width: 95vw;
}

strong {
  color: #1a2233;
}

div[style*="background-color: #f9f9f9"] {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-radius: 10px !important;
}

::-webkit-scrollbar {
  width: 10px;
  background: #e3e9f7;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: #bfc9d9;
  border-radius: 6px;
}

.csv-flex-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.csv-box {
  border: 1px solid #ccc;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
  width: 300px;
  text-align: center;
}

.example-csv-section {
  text-align: center;
  margin: 20px 0;
}

.example-csv {
  font-family: monospace;
  white-space: pre;
  margin: 10px 0;
}

.example-longlat {
  display: none;
}

.example-address {
  display: none;
}

.description-box {
  max-width: 700px;
  margin: 18px auto 24px auto;
  background: #f3f7fa;
  border: 1px solid #bcd;
  border-radius: 6px;
  padding: 18px;
  font-size: 1.08em;
}

.description-box ol {
  margin-top: 6px;
}

.privacy-notice-box {
  border: 1px solid #ccc;
  padding: 15px;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.privacy-notice-box ul {
  list-style-position: inside;
  text-align: left;
  display: inline-block;
  padding-left: 0;
  margin: 0;
}

/* Hide both by default */
.example-csv { display: none; }

/* Show LongLat example when LongLat radio is checked */
body:has(input[name="inputType"][value="longlat"]:checked) .example-longlat {
  display: block;
}

/* Show Address example when Address radio is checked */
body:has(input[name="inputType"][value="address"]:checked) .example-address {
  display: block;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 1200px) {
  .csv-flex-row {
    flex-wrap: wrap;
    gap: 18px;
  }
  .csv-box {
    width: 98vw;
    min-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }
}

.header-btn {
  display: inline-block;
  font-size: 1em;
  padding: 6px 16px;
  margin: 0 4px;
  background: #2066cc;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}
.header-btn:hover,
.header-btn:focus {
  background: #174a7c;
  color: #fff !important;
  text-decoration: none;
}