.full-width-container {
    justify-content: center;
}

.full-width-container .button {
    width: 100%;
}

/* Custom MarkerCluster Styles */
.marker-cluster-small {
	background-color: rgba(13, 110, 253, 0.6);
}
.marker-cluster-small div {
	background-color: rgba(13, 110, 253, 0.8);
}

.marker-cluster-medium {
	background-color: rgba(108, 117, 125, 0.6);
}
.marker-cluster-medium div {
	background-color: rgba(108, 117, 125, 0.8);
}

.marker-cluster-large {
	background-color: rgba(220, 53, 69, 0.6);
}
.marker-cluster-large div {
	background-color: rgba(220, 53, 69, 0.8);
}

.georeference-button-orange {
    background-color: orange;
}

.button-secondary {
    background-color: #6c757d;
    color: white;
}

.button-secondary:hover {
    background-color: #5a6268;
}

.button-danger {
    background-color: #dc3545;
}

.button-danger:hover {
    background-color: #c82333;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
    margin-left: 10px;
}

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

#image-staging-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.staging-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
}

.staging-image.selected {
    border-color: #09f;
}

.pensum-icon {
    background-color: #1c398e;
    color: #8ec5ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 40px;
}

.icon-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 5px;
    min-height: 50px;
}

.icon-bar-placeholder {
    width: 40px;
}

.faded {
    opacity: 0.5;
}

.icon-bar-center {
    display: flex;
    justify-content: center;
}

.comment-icon {
    background-color: #1c398e;
    color: #8ec5ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 40px;
    cursor: pointer;
}

#disclaimer-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Higher than other modals */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

#disclaimer-modal .modal-content {
    text-align: left;
}

#comment-modal .modal-content {
    text-align: left;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.button-group .button {
    flex: 1;
}

#conflict-modal .button-group {
    margin-top: 15px;
}

#about-content {
    padding: 16px;
    margin-left: 75px;
}

#about-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

#about-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

#about-content a {
    color: #007bff;
    text-decoration: none;
}

#about-content a:hover {
    text-decoration: underline;
}

.toxicity-icon {
    margin-left: 5px;
    font-size: 16px;
}

.edibility-icon {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 40px;
    color: white;
}

.edibility-icon.spiselig {
    background-color: #0d542b;
    color: #7bf1a8;
}

.edibility-icon.spiselig-star {
    background-color: #733e0a;
    color: #ffdf20;
}

.edibility-icon.ikke-matsopp {
    background-color: #364153;
    color: #d1d5dc;
}

.edibility-icon.giftig {
    background-color: #59168b;
    color: #dab2ff;
}

.edibility-icon.meget-giftig {
    background-color: #82181a;
    color: #ffa2a2;
}

/* New styles for horizontal arrangement of sort and filter */
.sort-and-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px; /* Space between items */
}

.sort-and-filter-row .sort-container {
    flex-grow: 1;
}

.sort-and-filter-row .sort-container .button {
    width: 100%;
}

.no-prediction-filter-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Reset margin as it's part of a flex row */
    padding: 8px 10px; /* Added padding */
    background-color: var(--secondary-background-color); /* Highlight background */
    border-radius: 50px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    flex-shrink: 0; /* Prevent shrinking */
}

.no-prediction-filter-wrapper input[type="checkbox"] {
    margin-right: 12px; /* Increased margin */
    width: 24px; /* Larger checkbox */
    height: 24px; /* Larger checkbox */
    min-width: 24px; /* Ensure it doesn't shrink */
    min-height: 24px; /* Ensure it doesn't shrink */
    accent-color: var(--accent-color); /* Use accent color for checkbox */
}

.no-prediction-filter-wrapper label {
    font-size: 1.1em; /* Larger font size */
    font-weight: bold; /* Bolder text */
    color: var(--primary-color); /* Use primary color for label */
    display: flex; /* Enable flex for icon alignment */
    align-items: center; /* Align icon and text vertically */
}

.no-prediction-filter-wrapper label i {
    margin-right: 8px; /* Space between icon and text */
    font-size: 1.2em; /* Larger icon */
    color: var(--accent-color); /* Accent color for icon */
}

/* Styles for the image carousel in the modal */
.image-carousel-modal {
    position: relative;
    width: 100%;
    min-height: 200px; /* Adjust as needed, but allow it to grow */
    max-height: 400px; /* Max height to prevent overly large images */
    overflow: hidden;
    margin-bottom: 10px;
    background-color: var(--secondary-background-color);
    border-radius: 8px;
    display: flex; /* Ensure it's a flex container */
    align-items: center; /* Vertically center items */
    justify-content: center; /* Horizontally center items */
}

.carousel-images-modal {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    align-items: center; /* Center images vertically within the carousel */
    justify-content: center; /* Center images horizontally within the carousel */
}

.image-preview-item {
    min-width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-preview-item.active {
    display: flex; /* Show active image */
}

.image-preview-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure image fits within container */
}

.carousel-arrow-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow-modal:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Keep same background on hover */
    transform: translateY(-50%); /* Prevent movement on hover */
}

.carousel-arrow-modal.prev-modal {
    left: 10px;
}

.carousel-arrow-modal.next-modal {
    right: 10px;
}

.remove-image-btn {
    color: white;
}




body.map-active #left-nav-buttons > div {
    background-color: #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #1a1a2e;
}

 body.dark-mode.map-active #left-nav-buttons > div {
      background-color: #1a1a2e;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
      color: #eee;
  }

/* Light mode specific styles for search input */
body:not(.dark-mode) #search-input {
    background-color: #e0e0e0; /* A diffused light gray */
    color: #333; /* Dark text for contrast */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* Subtle inner shadow for depth */
    border: 1px solid #ccc; /* Lighter border */
}

/* Dark mode specific placeholder text color for search input */
body.dark-mode #search-input::placeholder {
    color: #a0a0a0; /* A darker gray for placeholder text in dark mode */
    opacity: 1; /* Ensure the placeholder is not transparent */
}