:root {
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --danger: #ff4d4f;
  --success: #52c41a;
  --warning: #faad14;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e8e8e8;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 400px;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text);
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: #001529;
  padding: 20px 0;
  z-index: 100;
}

.sidebar-logo {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 10px 20px;
  margin-bottom: 20px;
}

.sidebar-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  padding: 12px 24px;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: #ffffff;
  background: var(--primary);
}

.main-content {
  margin-left: 220px;
  padding: 24px;
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
}

.header-bar {
  background: var(--card-bg);
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 0;
}

.user-info {
  color: var(--text-secondary);
  font-size: 14px;
}

.user-info a {
  color: var(--primary);
  text-decoration: none;
  margin-left: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.search-bar input {
  max-width: 300px;
}

.store-table {
  width: 100%;
}

.store-table th {
  background: #fafafa;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-enabled {
  background: #f6ffed;
  color: var(--success);
  border: 1px solid #b7eb8f;
}

.status-disabled {
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #ffa39e;
}

.action-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  margin-right: 12px;
}

.action-link:hover {
  text-decoration: underline;
}

.action-link.danger {
  color: var(--danger);
}

.store-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.image-upload-wrapper {
  position: relative;
}

.image-preview {
  margin-top: 4px;
}

.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-search-box {
  margin-bottom: 8px;
  position: relative;
}

.map-search-results {
  position: absolute;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: none;
}

.map-search-results .list-group-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.map-search-results .list-group-item:hover {
  background: #f5f7ff;
}

.search-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #666;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.search-item-content {
  flex: 1;
  min-width: 0;
}

.search-item-content strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: none;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.coord-display {
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .search-bar {
    flex-direction: column;
  }
  .search-bar input {
    max-width: 100%;
  }
}
