/* /src/styles.css */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #1f2937;
}

body {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  border-right: 1px solid #d1d5db;
  background: #ffffff;
  padding: 16px;
  overflow-y: auto;
  min-height: 0;
}

.sidebar h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

.sidebar p {
  margin: 0 0 16px;
  line-height: 1.6;
  font-size: 14px;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #ffffff;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
}

button.secondary {
  background: #6b7280;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.meta-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #f9fafb;
}

.meta-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 18px;
  font-weight: 700;
}

.status {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.list li + li {
  margin-top: 4px;
}

#map {
  display: block;
  width: 100%;
  height: 100vh;
  min-width: 0;
  min-height: 100vh;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-dot.shop {
  background: #2563eb;
}

.legend-dot.factory {
  background: #dc2626;
}

.legend-dot.depot {
  background: #059669;
}

.legend-dot.other {
  background: #6b7280;
}

.file-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
}

.small {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
}

.mb-8 {
  margin-bottom: 8px;
}

.mt-8 {
  margin-top: 8px;
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100vh;
    min-height: 100vh;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #d1d5db;
    max-height: 45vh;
  }

  #map {
    height: 55vh;
    min-height: 55vh;
  }
}
