#fixed-header {
  background-color: #f8f8f8;
  padding: 10px 20px 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  box-sizing: border-box; /* Include padding in the width */
  height: 40vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

html, body {
  height: 98vh;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.app-container {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  height: 100vh; /* Take full viewport height */
  display: flex;
  flex-direction: column; /* Arrange children vertically */
}

.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.logo {
  height: 50px;
  width: auto;
}

.main-header {
  margin: 0;
  color: darkred;
}

.ready-message {
  text-align: center;
}

.content {
  flex-grow: 1; /* Take remaining space */
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 0.5em 0;
}

.main-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.map-actions-right {
  display: flex;
  gap: 0.5rem;
}

#map-container {
  height: 100%;
  width: 75%;
  margin: 0 auto;
  margin-bottom: 0.5rem; /* Add some space below the map */
  flex-grow: 1;
}

#map-form {
  height: 200px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 1rem; /* Add some space below the map */
}

.coordinate-input {
  flex-grow: 1;
  margin-right: 10px;
}

.add-stand-btn {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.add-stand-btn:hover {
  background-color: #45a049;
}

.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.form-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  min-width: 400px;
  max-width: 500px;
  max-height: 90vh; /* Limit height to 90% of viewport height */
  position: relative;
  overflow-y: auto; /* Enable vertical scrolling */
  padding-bottom: 5rem; /* Make space for floating buttons */
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  resize: vertical; /* Allow vertical resizing */
}

.form-buttons {
  display: flex;
  justify-content: space-between; /* Added to align items to opposite sides */
  gap: 1rem;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  position: sticky; /* Changed to sticky */
  bottom: 0;
  width: 90%;
  box-sizing: border-box;
  padding: 1rem 2rem;
  background-color: #f8f8f8; /* Light grey background */
  border: 1px solid #ddd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Added shadow */
  z-index: 1001;
}

.form-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.form-buttons button[type="submit"] {
  background-color: #4CAF50;
  color: white;
}

.form-buttons button[type="button"] {
  background-color: #f44336;
  color: white;
}

.form-content-wrapper {
  padding-bottom: 1rem; /* Space between last field and buttons */
}

.stands-list {
}

.stand-item {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.stand-item h4 {
  margin: 0 0 0.5rem 0;
  color: darkred;
}

.stand-item p {
  margin: 0;
  color: #666;
}

.products-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-height: 24px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  background-color: #e7f3ff;
  color: #0066cc;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 14px;
  border: 1px solid #b3d9ff;
}

.product-tag:hover {
  cursor: pointer; /* Indicate clickable */
}

.remove-tag {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-left: 4px;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.remove-tag:hover {
  background-color: #ff4444;
  color: white;
}

.stand-products {
  margin-top: 0.5rem;
}

.stand-products strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #333;
}

.expiration-date {
  margin: 0.5rem 0 0 0;
  color: #888;
}

.expiration-date strong {
  color: #666;
}

.stand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.stand-header h4 {
  margin: 0;
}

.delete-stand-btn {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.delete-stand-btn:hover {
  background-color: #cc0000;
}

.stand-actions {
  display: flex;
  gap: 0.5rem;
}

.edit-stand-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.edit-stand-btn:hover {
  background-color: #0056b3;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;
  margin-bottom: 10px;
}

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

.location-btn {
  font-size: 32px;
  line-height: 1;
  color: darkred;
  background-color: white;
  border: 1px solid darkred;
  padding: 4px 8px 8px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coordinate-input-group {
  display: flex;
  align-items: center;
}

.error-message {
  color: red;
}

.product-list {
  border: 1px solid #ccc;
  padding: 0.5rem 0.5rem 0rem 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-tag-active {
  background-color: #0066cc;
  color: white;
  border-color: #0066cc;
}

.clear-filter-btn {
  background: none;
  color: #dc3545;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  margin-top: 0;
  text-decoration: none;
}

.clear-filter-btn:hover {
  background: none;
  color: #c82333;
  text-decoration: underline;
}

.stand-item.selected-stand {
  background-color: #e0e0e0; /* Or any highlighting style you prefer */
  border: 2px solid #007bff;
}

.crosshairs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-radius: 50%;
    z-index: 1000;
    pointer-events: none; /* Allow map interaction through the crosshairs */
}

.crosshairs::before,
.crosshairs::after {
    content: '';
    position: absolute;
    background-color: #999;
}

.crosshairs::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.crosshairs::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.product-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Add some space between the input and button */
}

.product-input-group input {
  flex-grow: 1; /* Allow the input to take up available space */
  width: auto; /* Override the 100% width from .form-group input */
}

.add-product-btn {
  padding: 8px 12px; /* Slightly increased padding */
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-product-btn:hover {
  background-color: #0056b3;
}

.coordinate-link {
  display: inline-block; /* or inline-flex */
  color: #007bff; /* A standard link color */
  text-decoration: underline; /* Make it look like a link */
  cursor: pointer;
}

.coordinate-link:hover {
  color: #0056b3; /* Darker color on hover */
}

.coordinate-link p {
  margin: 0; /* Remove default paragraph margin */
  display: inline; /* Ensure the text stays inline with the link */
}
