/* Precise IP Geolocation Scanner Styles */

.geolocation-card {
  margin-bottom: 30px;
}

.accuracy-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.scanner-input-section {
  margin-bottom: 20px;
}

.input-with-button {
  display: flex;
  gap: 10px;
}

.input-with-button .form-input {
  flex: 1;
}

.quick-test-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.quick-test-buttons .btn {
  flex: 1;
}

.input-hint {
  display: block;
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.input-hint i {
  margin-right: 4px;
}

/* Coordinates Display */
.coordinates-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.coord-item {
  text-align: center;
  color: white;
}

.coord-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coord-value {
  font-size: 20px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* Location Details */
.location-details {
  margin-bottom: 25px;
}

.location-details h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.detail-label {
  font-weight: 600;
  color: #4b5563;
  font-size: 13px;
}

.detail-value {
  color: #1f2937;
  font-weight: 500;
  font-size: 13px;
  text-align: right;
}

/* Map Container */
.map-container {
  margin-bottom: 25px;
}

.map-container h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.geo-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 12px;
  border: 2px solid #3b82f6;
  overflow: hidden;
  position: relative;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.map-marker {
  font-size: 48px;
  color: #dc2626;
  margin-bottom: 15px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.map-info {
  color: #1f2937;
}

.map-info strong {
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
}

.map-info small {
  font-size: 13px;
  color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
}

.map-coordinates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: #f3f4f6;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #1f2937;
}

.map-coordinates i {
  color: #3b82f6;
}

/* Data Sources */
.data-sources {
  margin-bottom: 25px;
}

.data-sources h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #10b981;
}

.source-badge i {
  font-size: 12px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-buttons .btn {
  flex: 1;
  min-width: 200px;
}

/* Loading Indicator */
.loading-indicator {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-indicator p {
  color: #6b7280;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .coordinates-display {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .input-with-button {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }
}
