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

.container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100%;
    border-collapse: collapse;
}

.header {
    grid-column: 1 / 3; /* Span across both columns */
    background-color: #ffffff;
    text-align: left;
    padding: 10px;
}

.footer {
    grid-column: 1 / 3;
    background-color: #f0f0f0;
    text-align: left;
    padding: 10px;
}

.body {
    display: contents;
}

.body .column {
    padding: 15px;
    position: relative;
}

.body .column:first-child {
    border-right: 2px solid #ddd;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
}

.footer img {
    height: 100%;
    max-height: 70px;
    width: auto;
}

#result {
    margin-top: 20px;
}

#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-button {
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
/*    border-radius: 5px;*/
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

.pagination-button:disabled {
    background-color: #ccc; /* Disabled button color */
    cursor: not-allowed;
}

#imageModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Modal content (the image) */
#modalImage {
    max-width: 100%; /* Responsive max width */
    max-height: 100%; /* Responsive max height */
}

#imageNameText {
    color: white; /* Ensure text color is white */
    margin-top: 10px; /* Margin above the text */
    margin-bottom: 10px; /* Margin below the text */
    text-align: center; /* Center the text */
}

#imageNameText_2 {
    color: white; /* Ensure text color is white */
/*    text-align: center; /* Center the text */*/
}


/* Close button styling (optional) */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}


.header_2 img {
    margin-right: auto; /* Push the logo to the left */
}

.classify-button {
    margin-left: auto; /* Ensure button is on the right */
    padding: 10px 10px;
/*    background-color: #6B8DA1;*/
    background-color: #5e5e5e ; /* Dark gray with a blackish tone */
    color: white;
    font-size: 13px;      /* Set font size */
    text-decoration: none;
/*    border-radius: 5px;*/
    margin-right: 5%;
}

.classify-button:hover {
/*    background-color: #4F6577; */
    background-color: #101010 ; /* Very dark gray with a blackish tone on hover */

}

.browse-button {
    background-color: #e0e0e0; /* Light gray background */
    color: #888; /* Gray text color */
    padding: 10px 10px;
    border: none; /* Remove default border */
/*    border-radius: 5px; */
    font-size: 13px;      /* Set font size */
    font-weight: normal; /* Normal text weight */
    cursor: default; /* Default cursor */
    display: inline-block; /* Make it behave like a button */
    text-decoration: none; /* Remove underline */
}

.browse-button:hover {
    background-color: #d0d0d0; /* Darker gray on hover */
    color: #777; /* Darker gray text on hover */
}

.data-entry-button {
    margin-left: auto; /* Ensure button is on the right */
    padding: 10px 10px;
    background-color: #5e5e5e; /* Bootstrap primary color */
    color: white;
    font-size: 13px;      /* Set font size */
    text-decoration: none;
/*    border-radius: 5px;*/
    margin-right: 5%;
}

.data-entry-button:hover {
    background-color: #101010; /* Darker shade on hover */
}

#gearIcon {
    position: absolute;
    top: 0.3%;
    right: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    display: none; /* Hidden by default */

    padding: 6px; /* Controls circle size */
    border-radius: 50%; /* Makes it round */
    background-color: transparent;

    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: content-box;
}

#gearIcon img {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

#gearIcon:hover,
#gearIcon:focus {
    background-color: rgba(0, 0, 0, 0.1); /* Soft ash circle */
    outline: none;
}

.gear-dropdown-container {
    position: relative;
}

.gear-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.gear-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.gear-dropdown-item:last-child {
    border-bottom: none;
}

.gear-dropdown-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.gear-dropdown-item:active {
    background-color: #e0e0e0;
}




.header_2 {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space items evenly */
    width: 100%; /* Ensure full width */
}



#reclassifyContainer {
    display: flex;
    align-items: center; /* Aligns the dropdown and button vertically */
    gap: 10px; /* Adds space between the dropdown and button */
    margin-top: 10px; /* Optional: Adds some space above the container */
}

#reclassifyDropdown {
    min-width: 200px; /* Set a minimum width for the dropdown */
}

#reclassifyButton {
    cursor: pointer;
}

/* Add these styles in your main CSS file or within a <style> block in your HTML */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.alert-box {
    background: #ffffff;
    padding: 20px;
    width: 400px;
/*    border-radius: 8px;*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
}

.alert-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    color: #black;
/*    margin-bottom: 10px;*/
/*    text-decoration: underline; /* Adds underline */*/
}
.alert-content {
    display: flex;
    margin-top: 20px;
    margin-bottom: 10px;
}

.alert-icon-column {
    flex: 1;
    width: 120px;
/*    height: 100px;*/
    align-items: center;
    text-align: center;
    justify-content: center;
}

.alert-message-column {
    flex: 4;
    text-align: left;
    align-items: flex-start;
    padding-left: 10px;
}

.alert-message {
    font-size: 16px;
}

.alert-button {
    padding: 8px 16px;
    background-color: #e0e0e0;
    color: black;
    border: none;
/*    border-radius: 4px;*/
    cursor: pointer;
}

.alert-button:hover {
    background-color: #d0d0d0;
}



.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background: white;
    border: 1px solid #ccc;
/*    border-radius: 8px;*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1010;
    padding: 20px;
}

.overlay_2 {
    position: fixed; /* Stay in place */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with transparency */
    display: flex; /* Center the alert box */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Sit on top of other content */
}

.custom-alert-header {
    margin-bottom: 15px;
}

.custom-alert-body {
    margin-bottom: 20px;
}

.custom-alert table {
    width: 100%;
    border-collapse: collapse;
}

.custom-alert th, .custom-alert td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.custom-alert th {
    font-weight: bold;
    background-color: #f8f8f8;
}

.custom-alert button {
    display: block;       
    margin: 0 auto; 
}

.custom-alert div[style*="display: flex"] button {
    display: inline-block;
    margin: 0;
}

.dropdown-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.dropdown-row {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
}

.custom-dropdown {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 5px;
}

/* Fixed widths */
.custom-dropdown label {
    width: 57px; 
    font-weight: bold;
    font-size: 16px;
}

.custom-dropdown select {
    flex-grow: 1; /* Allow select to take remaining space */
    padding: 5px;
    border: 2px solid #ccc;
    font-size: 16px;
}

.details-button {
    width: 55px; 
    padding: 5px 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    background-color: #5e5e5e;
    color: white;
}

.add-button {
    min-width: 120px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    background-color: #5e5e5e;
    color: white;
    margin-right: 0; /* Remove right margin to reduce space */
    font-size: 14px;
    white-space: nowrap;
}

.details-button:hover, .add-button:hover {
    background-color: #101010;
}

.empty-button {
    visibility: hidden;
    width: 25px; 
}

.leaflet-attribution-flag { 
    display: none !important; 
}



.tabs {
    display: flex;
    cursor: pointer;
}




.tablinks {
    padding: 10px;
    background-color: #f1f1f1;
    border: none;
    outline: none;
    transition: background-color 0.3s;
}

.tablinks:hover {
    background-color: #ddd;
}

.tabcontent {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
}


.tabs_2 {
    display: flex;
    cursor: pointer;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: 8%;
}

@media screen and (max-width: 1200px) {
    .tabs_2 {
        margin-top: 11%; /* More flexible top margin */
    }

}
.tablinks_2 {
    padding: 5px 5px;
    background-color: #f1f1f1;
    border: 1px solid black;
    outline: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    flex: 1;
    text-align: center;
    font-size: 14px;
    border-radius: 8px 8px 0 0; /* Rounded corners on the top */
    border-bottom: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    color: black;
    margin-bottom: 0px;
}

.tablinks_2:hover {
    background-color: #ddd;
}

.tablinks_2.active {
    background-color: white;
    color: black;
    font-weight: bold;
    font-size: 13.3px;
    border-bottom: none; /* Remove bottom border */
    border-top: 2px solid black; /* Keep top border */
/*    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3);*/
    z-index: 2; /* Ensure it appears above other tabs */
    position: relative;
    margin-bottom: -2px; /* Pull it down to cover the bottom border */
}


.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}


/* Style for the hover zones */
.hover-zone {
    position: absolute;
    background-color: transparent; /* Invisible hover zones */
    cursor: pointer; /* Show pointer when hovering */
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-align: start;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    display: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}


.tooltip .inactive {
    color: #B8B8B8;
    font-weight: bold;
}

.tooltip .active {
    color: #00FF00;
    font-weight: bold;
}


