.container-wrapper {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f5f5;
}
.container {
  background-color: white;
  padding: 20px;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-group {
  margin-bottom: 20px;
}
input[type="text"] {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
#map {
  height: 300px; /* Set map height */
  margin: 20px;
}

button {
  background-color: #b38a4c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 16px;
}

#map-container {
  margin-top: 20px;
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}
.error {
  color: #dc3545;
  margin-top: 10px;
  display: none;
}

.analysis-table {
  width: auto;
  min-width: 500px;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, sans-serif;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.analysis-table thead {
  background-color: #f8f9fa;
}

.analysis-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 2px solid #e9ecef;
}

.analysis-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ecef;
  color: #4a5568;
}

.analysis-table tr:last-child td {
  border-bottom: none;
  font-weight: 600;
  color: #1a1a1a;
  background-color: #f8f9fa;
}

.analysis-table td:last-child {
  text-align: right;
  font-family: monospace;
  font-size: 1.1em;
}

.analysis-table tr:hover:not(:last-child) {
  background-color: #f8f9fa;
}

.table-container {
  max-width: 100%; /* Prevents table from overflowing */
  overflow-x: auto; /* Enables horizontal scrolling */
  white-space: nowrap; /* Prevents text from wrapping */
}

.header-container {
  text-align: center;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  max-width: 800px;
  background: #f7f7ff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Title */
.app-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b38a4c;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Subline */
.subline {
  font-size: 1.25rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Intro Paragraph */
.app-intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

/* Metrics Styling */
.metric {
  font-weight: 600;
  color: #4caf50; /* Green for positivity */
  background: #e8f5e9; /* Light green highlight */
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  display: inline-block;
  margin: 0 0.2rem;
}

body {
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 250px;
  background: #343a40;
  color: #eee8d8;
  padding-top: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}
.sidebar h4 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #b38a4c;
  padding: 10px 0;
  border-bottom: 2px solid #ccc;
  margin-bottom: 10px;
  text-align: center;
}
.sidebar a {
  color: #eee8d8;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
}
.sidebar a:hover {
  background: #495057;
}
.content {
  margin-left: 250px;
  width: 100%;
  padding: 20px;
}
.navbar {
  width: 100%;
  z-index: 1000;
}
.page-title {
  white-space: normal; /* Allow wrapping */
  word-wrap: break-word; /* Break long words if necessary */
  overflow-wrap: break-word; /* Ensure wrapping works across browsers */
  max-width: 100%; /* Prevent overflow */
}
.navbar {
  display: block; /* Ensures full width on small screens */
  text-align: left; /* Adjust alignment */
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Hide the sidebar on mobile */
  .sidebar {
    display: none;
    width: 0%;
  }
  .content {
    margin-left: 10px;
    width: 100%;
    padding: 20px;
  }
  .navbar {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
  }
}
