/* Scoped styles for is-this-coordinate-on-water (prefix: icow-) */

.icow-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text, #1f2937);
}

.icow-header-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.icow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.icow-badge-water {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.icow-badge-land {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.icow-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading, #111827);
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.icow-subtitle {
  color: var(--text-muted, #4b5563);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.icow-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border, #e5e7eb);
  margin-bottom: 1.5rem;
}

.icow-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.icow-tab-btn:hover {
  color: var(--text, #111827);
}

.icow-tab-btn.icow-active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.icow-panel {
  display: none;
}

.icow-panel.icow-active {
  display: block;
}

.icow-controls-bar {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.icow-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 680px) {
  .icow-form-row {
    grid-template-columns: 1fr 1fr auto auto;
    align-items: flex-end;
  }
}

.icow-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.icow-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #374151);
}

.icow-input, .icow-textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--surface, #ffffff);
  color: var(--text, #111827);
  font-family: inherit;
}

.icow-input:focus, .icow-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.15);
}

.icow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #0284c7;
  color: #ffffff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.icow-btn:hover {
  background: #0369a1;
}

.icow-btn-secondary {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.icow-btn-secondary:hover {
  background: #e5e7eb;
}

.icow-presets-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  align-items: center;
}

.icow-preset-pill {
  font-size: 0.75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icow-preset-pill:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.icow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 840px) {
  .icow-grid-split {
    grid-template-columns: 1.2fr 1fr;
  }
}

.icow-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.icow-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Canvas world map */
.icow-map-wrap {
  position: relative;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  cursor: crosshair;
}

.icow-canvas {
  width: 100%;
  height: 240px;
  display: block;
}

.icow-result-banner {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.icow-result-water {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.icow-result-land {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.icow-result-label {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.icow-water-text {
  color: #0284c7;
}

.icow-land-text {
  color: #16a34a;
}

.icow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.icow-table th, .icow-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
}

.icow-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
}

.icow-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

