/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #1a1f2e;
  color: white;
  min-height: 100vh;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.btn:hover {
  opacity: 0.9;
}

.app {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #1a1f2e 50%, #1e293b 100%);
}

/* Header Styles */
.header {
  background: rgba(26, 31, 46, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(71, 85, 105, 0.7);
  padding: 12px 16px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  position: relative;
  width: 64px;
  height: 64px;
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-inner {
  position: relative;
  width: 48px;
  height: 48px;
  background: #1a1f2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  margin: 8px;
}

.logo-text {
  color: #60a5fa;
  font-weight: bold;
  font-size: 14px;
}

.logo-pin {
  position: absolute;
  top: -8px;
  left: -4px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
}

.navigation {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .navigation {
    display: flex;
  }
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav-link:hover {
  color: white;
}

.nav-icon {
  margin-right: 4px;
}

.tools-counter {
  background: #2a3441;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.counter-content {
  text-align: center;
}

.counter-icon {
  font-size: 24px;
  font-weight: bold;
  color: #60a5fa;
}

.counter-number {
  font-size: 32px;
  font-weight: bold;
}

.counter-text {
  font-size: 12px;
  color: #9ca3af;
}

/* Main Content */
.main-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 16px;
}

.section {
  margin-bottom: 32px;
}

.section-container {
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 8px;
  padding: 24px;
  background: rgba(42, 52, 65, 0.3);
  backdrop-filter: blur(4px);
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon {
  margin-right: 8px;
}

/* Map Styles */
.map-header {
  margin-bottom: 16px;
  text-align: center;
}

.map-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.map-description {
  font-size: 14px;
  color: #9ca3af;
}

.map-container {
  height: 320px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: #1e2532;
  min-height: 320px;
}

.map-footer {
  margin-top: 12px;
  text-align: center;
}

.current-location {
  font-size: 12px;
  color: #9ca3af;
}

/* Coordinates Input */
.coordinates-inputs {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.coordinate-input {
  padding: 8px 16px;
  background: white;
  color: black;
  border: none;
  border-radius: 4px;
  outline: none;
  width: 128px;
  text-align: center;
  font-size: 14px;
}

.coordinate-input:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Tools */
.tools-category {
  margin-bottom: 32px;
}

.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-button {
  width: 100%;
  background: #7c3aed;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.tool-button:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tool-name {
  font-weight: 600;
}

.tool-description {
  font-size: 14px;
  opacity: 0.9;
  text-align: left;
  flex: 1;
  margin-left: 16px;
}

/* Side Navigation */
.side-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #2a3441;
  padding: 8px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-right: 1px solid rgba(59, 130, 246, 0.3);
}

.side-nav-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  color: #9ca3af;
  transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .coordinates-inputs {
    flex-direction: column;
    align-items: center;
  }

  .coordinate-input {
    width: 160px;
  }

  .main-content {
    padding: 16px;
  }

  .section-container {
    padding: 16px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1f2e;
}

::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Loading Animation */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  color: #9ca3af;
}

.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #9ca3af;
  border-top: 2px solid #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
