/* Master stylesheet for Stereo70 Map Application */

/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

/* Map container styling */
#map {
    position: absolute;
    top: 0;
    height: calc(100vh - 24px); /* Reduced from 40px to give more map space */
    width: 100%;
    z-index: 900; /* Lower z-index than controls */
}

/* Bottom control bar - ultra-compact design */
.control-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px; /* Fixed height instead of auto */
    min-height: 0; /* Remove minimum height */
    padding: 0 10px; /* No vertical padding */
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent */
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping to keep height minimal */
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: auto !important; /* Ensure clicks register */
}

/* Control sections with minimal spacing */
.control-section {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
    pointer-events: auto !important; /* Ensure clicks register */
    z-index: 1005 !important; /* Ensure proper stacking order */
}

/* First control section redesign */
.control-section:first-child {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px; /* Further reduced from 8px */
    height: 100%; /* Match control bar height */
    min-height: 0 !important; /* Override the previous height */
    margin: 0;
    background-color: transparent;
    padding-top: 0; /* Remove padding */
    margin-bottom: 0; /* Remove margin */
    pointer-events: auto !important;
    position: relative;
}

/* Complete redesign of coordinate containers - horizontal instead of vertical */
.coords-display-container {
    display: flex;
    flex-direction: row;
    align-items: center; 
    margin-right: 6px;
    gap: 2px; /* Reduced from 4px */
    width: 480px; /* Slightly increased from 450px to accommodate accuracy */
    order: 1;
    flex: 0 0 auto;
    height: 100%;
    pointer-events: auto;
    z-index: 1000;
}

/* Redesign coordinate boxes to be side-by-side with their labels */
.coords-box, .stereo70-ancpi-container {
    position: relative;
    width: auto;
    flex: 1;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px; /* Reduced from 6px */
}

/* Redesigned coordinate display - more compact */
.coords-display {
    padding: 0px 3px; /* Reduced from 1px 4px */
    background-color: #f0f0f0;
    border-radius: 2px; /* Reduced from 3px */
    font-family: 'Courier New', monospace;
    font-size: 9px; /* Reduced from 10px */
    text-align: left;
    display: inline-block;
    width: auto;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
    height: 16px; /* Reduced from 20px */
    line-height: 16px; /* Match height */
}

/* Info labels - moved to be inline */
.coords-info {
    position: static; /* No longer absolutely positioned */
    font-size: 6px !important;
    color: #666;
    width: auto;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    min-width: 30px; /* Reduced from 50px */
}

/* ANCPI display - more compact */
.stereo70-ancpi-container .coords-display {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-size: 8px; /* Reduced from 9px to fit more text */
    letter-spacing: -0.2px; /* Add slight letter spacing compression */
    padding: 0px 2px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center content vertically */
    height: 16px; /* Ensure consistent height */
}

/* Add styling specifically for the placeholder text */
.stereo70-ancpi-container .coords-display em {
    font-style: italic;
    color: #888;
    font-size: 7px; /* Smaller size for placeholder */
    line-height: 16px; /* Match container height */
    display: inline-block; /* Ensure proper alignment */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Take full width */
}

/* Ensure the ANCPI container is properly contained */
.stereo70-ancpi-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 16px; /* Fixed height to match the coords display */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

/* Add a special class for accuracy display within coordinates */
.coords-accuracy {
    color: #ff6d00; /* Slightly brighter orange for contrast */
    font-size: 7px; /* Smaller size for accuracy */
    font-weight: normal;
    margin-left: 3px;
    white-space: nowrap;
}

/* Make vertical separators more compact */
.coord-separator {
    margin: 0 1px;
    color: #ff9800;
    opacity: 0.7;
}

/* Button container ultra compact */
.button-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 2px; /* Reduced from 4px */
    margin: 0;
    height: 100%;
    z-index: 1010 !important; /* Ensure buttons are clickable */
    position: relative; /* Add positioning context */
}

.button-container > div {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* Add positioning context */
    z-index: 1010 !important; /* Ensure buttons are clickable */
}

/* Even smaller buttons */
button {
    height: 14px; /* Reduced from 15px */
    line-height: 12px; /* Reduced from 13px */
    font-size: 7px;
    margin: 0;
    padding: 0 2px;
    border: none;
    border-radius: 3px;
    cursor: pointer !important; /* Force cursor to indicate clickability */
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
    height: 15px;
    line-height: 13px;
    min-width: 20px;
    text-align: center;
    user-select: none;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: auto !important; /* Force pointer events */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
}

.control-bar .control-section button {
    min-width: 22px; /* Reduced from 24px */
    height: 14px; /* Reduced from 16px */
    margin: 0 1px; /* Reduced margin */
    pointer-events: auto !important; /* Ensure clicks register */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
    position: relative; /* Add positioning context */
}

/* Map type buttons ultra compact */
.map-type {
    height: 10px; /* Reduced from 11px */
    line-height: 8px; /* Reduced from 9px */
    font-size: 6px;
}

/* Ultra compact toggle switch */
.switch {
    width: 20px; /* Reduced from 24px */
    height: 8px; /* Reduced from 10px */
    margin-right: 2px; /* Reduced margin */
}

.slider:before {
    height: 6px; /* Reduced from 8px */
    width: 6px; /* Reduced from 8px */
    bottom: 1px; /* Reduced from 2px */
}

input:checked + .slider:before {
    transform: translateX(11px); /* Adjusted for smaller switch */
}

.toggle-label {
    font-size: 7px; /* Reduced from 8px */
}

/* ANCPI toggle section more compact */
.control-section:last-child {
    margin: 0;
    padding: 0;
}

/* Enhance control sections layout */
.control-section {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    margin: 0 1px; /* Reduced from 0 2px */
    flex-wrap: nowrap; /* Prevent wrapping within sections */
    padding: 0;
}

/* Main controls section - even more compact */
.control-section:first-child {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping within first section */
    align-items: center; /* Changed from flex-start to center for vertical alignment */
    gap: 4px; /* Further reduced from 8px */
    height: 100%; /* Match control bar height */
    min-height: 0; /* Remove min-height completely */
    flex: 1; /* Take available space */
    max-width: 75%; /* Limit maximum width */
    position: relative;
    background-color: transparent;
    margin: 0; /* Remove margin */
    padding-top: 0; /* Remove padding */
    margin-bottom: 0; /* Remove margin */
    pointer-events: auto !important;
}

/* Completely hide Grid Shift control section */
.control-section:nth-of-type(2) {
    display: flex !important; /* Override the hiding */
    height: 100%;
}

/* Updated coordinates display container for side-by-side layout */
.coords-display-container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Better alignment */
    margin-right: 6px; /* Reduced from 10px */
    gap: 2px; /* Reduced from 6px */
    width: 480px; /* Slightly increased from 450px to accommodate accuracy */
    order: 1; /* Display first */
    flex: 0 0 auto; /* Don't grow, don't shrink, use auto width */
    height: 100%;
    pointer-events: auto;
    z-index: 1000;
}

/* Cursor coordinates box */
.coords-box {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* GPS coordinates box - hide completely */
.gps-coords-box {
    display: none !important;
}

/* GPS coordinates box */
.stereo70-ancpi-container {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* Common styling for coordinate displays */
.coords-display {
    padding: 0px 3px; /* Reduced from 1px 4px */
    background-color: #f0f0f0;
    border-radius: 2px; /* Reduced from 3px */
    font-family: 'Courier New', monospace; /* Better monospace font */
    font-size: 9px; /* Reduced from 10px */
    text-align: left;
    display: inline-block;
    width: auto;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
    height: 16px; /* Reduced from 20px */
    line-height: 16px; /* Match height */
}

/* Styling for info labels */
.coords-info {
    position: static; /* No longer absolutely positioned */
    font-size: 6px !important;
    color: #666;
    width: auto;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    min-width: 30px; /* Reduced from 50px */
}

/* Improved styling for the Stereo70 ANCPI display */
.stereo70-ancpi-container .coords-display {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-size: 8px; /* Reduced from 9px to fit more text */
    letter-spacing: -0.2px; /* Add slight letter spacing compression */
    padding: 0px 2px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center content vertically */
    height: 16px; /* Ensure consistent height */
}

/* Add styling specifically for the placeholder text */
.stereo70-ancpi-container .coords-display em {
    font-style: italic;
    color: #888;
    font-size: 7px; /* Smaller size for placeholder */
    line-height: 16px; /* Match container height */
    display: inline-block; /* Ensure proper alignment */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Take full width */
}

/* Ensure the ANCPI container is properly contained */
.stereo70-ancpi-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 16px; /* Fixed height to match the coords display */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

/* Add a special class for accuracy display within coordinates */
.coords-accuracy {
    color: #ff6d00; /* Slightly brighter orange for contrast */
    font-size: 7px; /* Smaller size for accuracy */
    font-weight: normal;
    margin-left: 3px;
    white-space: nowrap;
}

/* Make vertical separators more compact */
.coord-separator {
    margin: 0 1px;
    color: #ff9800;
    opacity: 0.7;
}

/* Button container ultra compact */
.button-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 2px; /* Reduced from 4px */
    margin: 0;
    height: 100%;
    z-index: 1010 !important; /* Ensure buttons are clickable */
    position: relative; /* Add positioning context */
}

.button-container > div {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* Add positioning context */
    z-index: 1010 !important; /* Ensure buttons are clickable */
}

/* Even smaller buttons */
button {
    height: 14px; /* Reduced from 15px */
    line-height: 12px; /* Reduced from 13px */
    font-size: 7px;
    margin: 0;
    padding: 0 2px;
    border: none;
    border-radius: 3px;
    cursor: pointer !important; /* Force cursor to indicate clickability */
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
    height: 15px;
    line-height: 13px;
    min-width: 20px;
    text-align: center;
    user-select: none;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: auto !important; /* Force pointer events */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
}

.control-bar .control-section button {
    min-width: 22px; /* Reduced from 24px */
    height: 14px; /* Reduced from 16px */
    margin: 0 1px; /* Reduced margin */
    pointer-events: auto !important; /* Ensure clicks register */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
    position: relative; /* Add positioning context */
}

/* Map type buttons ultra compact */
.map-type {
    height: 10px; /* Reduced from 11px */
    line-height: 8px; /* Reduced from 9px */
    font-size: 6px;
}

/* Ultra compact toggle switch */
.switch {
    width: 20px; /* Reduced from 24px */
    height: 8px; /* Reduced from 10px */
    margin-right: 2px; /* Reduced margin */
}

.slider:before {
    height: 6px; /* Reduced from 8px */
    width: 6px; /* Reduced from 8px */
    bottom: 1px; /* Reduced from 2px */
}

input:checked + .slider:before {
    transform: translateX(11px); /* Adjusted for smaller switch */
}

.toggle-label {
    font-size: 7px; /* Reduced from 8px */
}

/* ANCPI toggle section more compact */
.control-section:last-child {
    margin: 0;
    padding: 0;
}

/* Enhance control sections layout */
.control-section {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    margin: 0 1px; /* Reduced from 0 2px */
    flex-wrap: nowrap; /* Prevent wrapping within sections */
    padding: 0;
}

/* Main controls section - even more compact */
.control-section:first-child {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping within first section */
    align-items: center; /* Changed from flex-start to center for vertical alignment */
    gap: 4px; /* Further reduced from 8px */
    height: 100%; /* Match control bar height */
    min-height: 0; /* Remove min-height completely */
    flex: 1; /* Take available space */
    max-width: 75%; /* Limit maximum width */
    position: relative;
    background-color: transparent;
    margin: 0; /* Remove margin */
    padding-top: 0; /* Remove padding */
    margin-bottom: 0; /* Remove margin */
    pointer-events: auto !important;
}

/* Completely hide Grid Shift control section */
.control-section:nth-of-type(2) {
    display: flex !important; /* Override the hiding */
    height: 100%;
}

/* Updated coordinates display container for side-by-side layout */
.coords-display-container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Better alignment */
    margin-right: 6px; /* Reduced from 10px */
    gap: 2px; /* Reduced from 6px */
    width: 480px; /* Slightly increased from 450px to accommodate accuracy */
    order: 1; /* Display first */
    flex: 0 0 auto; /* Don't grow, don't shrink, use auto width */
    height: 100%;
    pointer-events: auto;
    z-index: 1000;
}

/* Cursor coordinates box */
.coords-box {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* GPS coordinates box - hide completely */
.gps-coords-box {
    display: none !important;
}

/* GPS coordinates box */
.stereo70-ancpi-container {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* Common styling for coordinate displays */
.coords-display {
    padding: 0px 3px; /* Reduced from 1px 4px */
    background-color: #f0f0f0;
    border-radius: 2px; /* Reduced from 3px */
    font-family: 'Courier New', monospace; /* Better monospace font */
    font-size: 9px; /* Reduced from 10px */
    text-align: left;
    display: inline-block;
    width: auto;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
    height: 16px; /* Reduced from 20px */
    line-height: 16px; /* Match height */
}

/* Styling for info labels */
.coords-info {
    position: static; /* No longer absolutely positioned */
    font-size: 6px !important;
    color: #666;
    width: auto;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    min-width: 30px; /* Reduced from 50px */
}

/* Improved styling for the Stereo70 ANCPI display */
.stereo70-ancpi-container .coords-display {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-size: 8px; /* Reduced from 9px to fit more text */
    letter-spacing: -0.2px; /* Add slight letter spacing compression */
    padding: 0px 2px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center content vertically */
    height: 16px; /* Ensure consistent height */
}

/* Add styling specifically for the placeholder text */
.stereo70-ancpi-container .coords-display em {
    font-style: italic;
    color: #888;
    font-size: 7px; /* Smaller size for placeholder */
    line-height: 16px; /* Match container height */
    display: inline-block; /* Ensure proper alignment */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Take full width */
}

/* Ensure the ANCPI container is properly contained */
.stereo70-ancpi-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 16px; /* Fixed height to match the coords display */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

/* Add a special class for accuracy display within coordinates */
.coords-accuracy {
    color: #ff6d00; /* Slightly brighter orange for contrast */
    font-size: 7px; /* Smaller size for accuracy */
    font-weight: normal;
    margin-left: 3px;
    white-space: nowrap;
}

/* Make vertical separators more compact */
.coord-separator {
    margin: 0 1px;
    color: #ff9800;
    opacity: 0.7;
}

/* Button container ultra compact */
.button-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 2px; /* Reduced from 4px */
    margin: 0;
    height: 100%;
    z-index: 1010 !important; /* Ensure buttons are clickable */
    position: relative; /* Add positioning context */
}

.button-container > div {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* Add positioning context */
    z-index: 1010 !important; /* Ensure buttons are clickable */
}

/* Even smaller buttons */
button {
    height: 14px; /* Reduced from 15px */
    line-height: 12px; /* Reduced from 13px */
    font-size: 7px;
    margin: 0;
    padding: 0 2px;
    border: none;
    border-radius: 3px;
    cursor: pointer !important; /* Force cursor to indicate clickability */
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
    height: 15px;
    line-height: 13px;
    min-width: 20px;
    text-align: center;
    user-select: none;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: auto !important; /* Force pointer events */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
}

.control-bar .control-section button {
    min-width: 22px; /* Reduced from 24px */
    height: 14px; /* Reduced from 16px */
    margin: 0 1px; /* Reduced margin */
    pointer-events: auto !important; /* Ensure clicks register */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
    position: relative; /* Add positioning context */
}

/* Map type buttons ultra compact */
.map-type {
    height: 10px; /* Reduced from 11px */
    line-height: 8px; /* Reduced from 9px */
    font-size: 6px;
}

/* Ultra compact toggle switch */
.switch {
    width: 20px; /* Reduced from 24px */
    height: 8px; /* Reduced from 10px */
    margin-right: 2px; /* Reduced margin */
}

.slider:before {
    height: 6px; /* Reduced from 8px */
    width: 6px; /* Reduced from 8px */
    bottom: 1px; /* Reduced from 2px */
}

input:checked + .slider:before {
    transform: translateX(11px); /* Adjusted for smaller switch */
}

.toggle-label {
    font-size: 7px; /* Reduced from 8px */
}

/* ANCPI toggle section more compact */
.control-section:last-child {
    margin: 0;
    padding: 0;
}

/* Enhance control sections layout */
.control-section {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    margin: 0 1px; /* Reduced from 0 2px */
    flex-wrap: nowrap; /* Prevent wrapping within sections */
    padding: 0;
}

/* Main controls section - even more compact */
.control-section:first-child {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping within first section */
    align-items: center; /* Changed from flex-start to center for vertical alignment */
    gap: 4px; /* Further reduced from 8px */
    height: 100%; /* Match control bar height */
    min-height: 0; /* Remove min-height completely */
    flex: 1; /* Take available space */
    max-width: 75%; /* Limit maximum width */
    position: relative;
    background-color: transparent;
    margin: 0; /* Remove margin */
    padding-top: 0; /* Remove padding */
    margin-bottom: 0; /* Remove margin */
    pointer-events: auto !important;
}

/* Completely hide Grid Shift control section */
.control-section:nth-of-type(2) {
    display: flex !important; /* Override the hiding */
    height: 100%;
}

/* Updated coordinates display container for side-by-side layout */
.coords-display-container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Better alignment */
    margin-right: 6px; /* Reduced from 10px */
    gap: 2px; /* Reduced from 6px */
    width: 480px; /* Slightly increased from 450px to accommodate accuracy */
    order: 1; /* Display first */
    flex: 0 0 auto; /* Don't grow, don't shrink, use auto width */
    height: 100%;
    pointer-events: auto;
    z-index: 1000;
}

/* Cursor coordinates box */
.coords-box {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* GPS coordinates box - hide completely */
.gps-coords-box {
    display: none !important;
}

/* GPS coordinates box */
.stereo70-ancpi-container {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* Common styling for coordinate displays */
.coords-display {
    padding: 0px 3px; /* Reduced from 1px 4px */
    background-color: #f0f0f0;
    border-radius: 2px; /* Reduced from 3px */
    font-family: 'Courier New', monospace; /* Better monospace font */
    font-size: 9px; /* Reduced from 10px */
    text-align: left;
    display: inline-block;
    width: auto;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
    height: 16px; /* Reduced from 20px */
    line-height: 16px; /* Match height */
}

/* Styling for info labels */
.coords-info {
    position: static; /* No longer absolutely positioned */
    font-size: 6px !important;
    color: #666;
    width: auto;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    min-width: 30px; /* Reduced from 50px */
}

/* Improved styling for the Stereo70 ANCPI display */
.stereo70-ancpi-container .coords-display {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-size: 8px; /* Reduced from 9px to fit more text */
    letter-spacing: -0.2px; /* Add slight letter spacing compression */
    padding: 0px 2px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center content vertically */
    height: 16px; /* Ensure consistent height */
}

/* Add styling specifically for the placeholder text */
.stereo70-ancpi-container .coords-display em {
    font-style: italic;
    color: #888;
    font-size: 7px; /* Smaller size for placeholder */
    line-height: 16px; /* Match container height */
    display: inline-block; /* Ensure proper alignment */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Take full width */
}

/* Ensure the ANCPI container is properly contained */
.stereo70-ancpi-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 16px; /* Fixed height to match the coords display */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

/* Add a special class for accuracy display within coordinates */
.coords-accuracy {
    color: #ff6d00; /* Slightly brighter orange for contrast */
    font-size: 7px; /* Smaller size for accuracy */
    font-weight: normal;
    margin-left: 3px;
    white-space: nowrap;
}

/* Make vertical separators more compact */
.coord-separator {
    margin: 0 1px;
    color: #ff9800;
    opacity: 0.7;
}

/* Button container ultra compact */
.button-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 2px; /* Reduced from 4px */
    margin: 0;
    height: 100%;
    z-index: 1010 !important; /* Ensure buttons are clickable */
    position: relative; /* Add positioning context */
}

.button-container > div {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* Add positioning context */
    z-index: 1010 !important; /* Ensure buttons are clickable */
}

/* Even smaller buttons */
button {
    height: 14px; /* Reduced from 15px */
    line-height: 12px; /* Reduced from 13px */
    font-size: 7px;
    margin: 0;
    padding: 0 2px;
    border: none;
    border-radius: 3px;
    cursor: pointer !important; /* Force cursor to indicate clickability */
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
    height: 15px;
    line-height: 13px;
    min-width: 20px;
    text-align: center;
    user-select: none;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: auto !important; /* Force pointer events */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
}

.control-bar .control-section button {
    min-width: 22px; /* Reduced from 24px */
    height: 14px; /* Reduced from 16px */
    margin: 0 1px; /* Reduced margin */
    pointer-events: auto !important; /* Ensure clicks register */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
    position: relative; /* Add positioning context */
}

/* Map type buttons ultra compact */
.map-type {
    height: 10px; /* Reduced from 11px */
    line-height: 8px; /* Reduced from 9px */
    font-size: 6px;
}

/* Ultra compact toggle switch */
.switch {
    width: 20px; /* Reduced from 24px */
    height: 8px; /* Reduced from 10px */
    margin-right: 2px; /* Reduced margin */
}

.slider:before {
    height: 6px; /* Reduced from 8px */
    width: 6px; /* Reduced from 8px */
    bottom: 1px; /* Reduced from 2px */
}

input:checked + .slider:before {
    transform: translateX(11px); /* Adjusted for smaller switch */
}

.toggle-label {
    font-size: 7px; /* Reduced from 8px */
}

/* ANCPI toggle section more compact */
.control-section:last-child {
    margin: 0;
    padding: 0;
}

/* Enhance control sections layout */
.control-section {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    margin: 0 1px; /* Reduced from 0 2px */
    flex-wrap: nowrap; /* Prevent wrapping within sections */
    padding: 0;
}

/* Main controls section - even more compact */
.control-section:first-child {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping within first section */
    align-items: center; /* Changed from flex-start to center for vertical alignment */
    gap: 4px; /* Further reduced from 8px */
    height: 100%; /* Match control bar height */
    min-height: 0; /* Remove min-height completely */
    flex: 1; /* Take available space */
    max-width: 75%; /* Limit maximum width */
    position: relative;
    background-color: transparent;
    margin: 0; /* Remove margin */
    padding-top: 0; /* Remove padding */
    margin-bottom: 0; /* Remove margin */
    pointer-events: auto !important;
}

/* Completely hide Grid Shift control section */
.control-section:nth-of-type(2) {
    display: flex !important; /* Override the hiding */
    height: 100%;
}

/* Updated coordinates display container for side-by-side layout */
.coords-display-container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Better alignment */
    margin-right: 6px; /* Reduced from 10px */
    gap: 2px; /* Reduced from 6px */
    width: 480px; /* Slightly increased from 450px to accommodate accuracy */
    order: 1; /* Display first */
    flex: 0 0 auto; /* Don't grow, don't shrink, use auto width */
    height: 100%;
    pointer-events: auto;
    z-index: 1000;
}

/* Cursor coordinates box */
.coords-box {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* GPS coordinates box - hide completely */
.gps-coords-box {
    display: none !important;
}

/* GPS coordinates box */
.stereo70-ancpi-container {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* Common styling for coordinate displays */
.coords-display {
    padding: 0px 3px; /* Reduced from 1px 4px */
    background-color: #f0f0f0;
    border-radius: 2px; /* Reduced from 3px */
    font-family: 'Courier New', monospace; /* Better monospace font */
    font-size: 9px; /* Reduced from 10px */
    text-align: left;
    display: inline-block;
    width: auto;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
    height: 16px; /* Reduced from 20px */
    line-height: 16px; /* Match height */
}

/* Styling for info labels */
.coords-info {
    position: static; /* No longer absolutely positioned */
    font-size: 6px !important;
    color: #666;
    width: auto;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    min-width: 30px; /* Reduced from 50px */
}

/* Improved styling for the Stereo70 ANCPI display */
.stereo70-ancpi-container .coords-display {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-size: 8px; /* Reduced from 9px to fit more text */
    letter-spacing: -0.2px; /* Add slight letter spacing compression */
    padding: 0px 2px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center content vertically */
    height: 16px; /* Ensure consistent height */
}

/* Add styling specifically for the placeholder text */
.stereo70-ancpi-container .coords-display em {
    font-style: italic;
    color: #888;
    font-size: 7px; /* Smaller size for placeholder */
    line-height: 16px; /* Match container height */
    display: inline-block; /* Ensure proper alignment */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Take full width */
}

/* Ensure the ANCPI container is properly contained */
.stereo70-ancpi-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 16px; /* Fixed height to match the coords display */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

/* Add a special class for accuracy display within coordinates */
.coords-accuracy {
    color: #ff6d00; /* Slightly brighter orange for contrast */
    font-size: 7px; /* Smaller size for accuracy */
    font-weight: normal;
    margin-left: 3px;
    white-space: nowrap;
}

/* Make vertical separators more compact */
.coord-separator {
    margin: 0 1px;
    color: #ff9800;
    opacity: 0.7;
}

/* Button container ultra compact */
.button-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 2px; /* Reduced from 4px */
    margin: 0;
    height: 100%;
    z-index: 1010 !important; /* Ensure buttons are clickable */
    position: relative; /* Add positioning context */
}

.button-container > div {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* Add positioning context */
    z-index: 1010 !important; /* Ensure buttons are clickable */
}

/* Even smaller buttons */
button {
    height: 14px; /* Reduced from 15px */
    line-height: 12px; /* Reduced from 13px */
    font-size: 7px;
    margin: 0;
    padding: 0 2px;
    border: none;
    border-radius: 3px;
    cursor: pointer !important; /* Force cursor to indicate clickability */
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
    height: 15px;
    line-height: 13px;
    min-width: 20px;
    text-align: center;
    user-select: none;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: auto !important; /* Force pointer events */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
}

.control-bar .control-section button {
    min-width: 22px; /* Reduced from 24px */
    height: 14px; /* Reduced from 16px */
    margin: 0 1px; /* Reduced margin */
    pointer-events: auto !important; /* Ensure clicks register */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
    position: relative; /* Add positioning context */
}

/* Map type buttons ultra compact */
.map-type {
    height: 10px; /* Reduced from 11px */
    line-height: 8px; /* Reduced from 9px */
    font-size: 6px;
}

/* Ultra compact toggle switch */
.switch {
    width: 20px; /* Reduced from 24px */
    height: 8px; /* Reduced from 10px */
    margin-right: 2px; /* Reduced margin */
}

.slider:before {
    height: 6px; /* Reduced from 8px */
    width: 6px; /* Reduced from 8px */
    bottom: 1px; /* Reduced from 2px */
}

input:checked + .slider:before {
    transform: translateX(11px); /* Adjusted for smaller switch */
}

.toggle-label {
    font-size: 7px; /* Reduced from 8px */
}

/* ANCPI toggle section more compact */
.control-section:last-child {
    margin: 0;
    padding: 0;
}

/* Enhance control sections layout */
.control-section {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    margin: 0 1px; /* Reduced from 0 2px */
    flex-wrap: nowrap; /* Prevent wrapping within sections */
    padding: 0;
}

/* Main controls section - even more compact */
.control-section:first-child {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping within first section */
    align-items: center; /* Changed from flex-start to center for vertical alignment */
    gap: 4px; /* Further reduced from 8px */
    height: 100%; /* Match control bar height */
    min-height: 0; /* Remove min-height completely */
    flex: 1; /* Take available space */
    max-width: 75%; /* Limit maximum width */
    position: relative;
    background-color: transparent;
    margin: 0; /* Remove margin */
    padding-top: 0; /* Remove padding */
    margin-bottom: 0; /* Remove margin */
    pointer-events: auto !important;
}

/* Completely hide Grid Shift control section */
.control-section:nth-of-type(2) {
    display: flex !important; /* Override the hiding */
    height: 100%;
}

/* Updated coordinates display container for side-by-side layout */
.coords-display-container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Better alignment */
    margin-right: 6px; /* Reduced from 10px */
    gap: 2px; /* Reduced from 6px */
    width: 480px; /* Slightly increased from 450px to accommodate accuracy */
    order: 1; /* Display first */
    flex: 0 0 auto; /* Don't grow, don't shrink, use auto width */
    height: 100%;
    pointer-events: auto;
    z-index: 1000;
}

/* Cursor coordinates box */
.coords-box {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* GPS coordinates box - hide completely */
.gps-coords-box {
    display: none !important;
}

/* GPS coordinates box */
.stereo70-ancpi-container {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* Common styling for coordinate displays */
.coords-display {
    padding: 0px 3px; /* Reduced from 1px 4px */
    background-color: #f0f0f0;
    border-radius: 2px; /* Reduced from 3px */
    font-family: 'Courier New', monospace; /* Better monospace font */
    font-size: 9px; /* Reduced from 10px */
    text-align: left;
    display: inline-block;
    width: auto;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
    height: 16px; /* Reduced from 20px */
    line-height: 16px; /* Match height */
}

/* Styling for info labels */
.coords-info {
    position: static; /* No longer absolutely positioned */
    font-size: 6px !important;
    color: #666;
    width: auto;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    min-width: 30px; /* Reduced from 50px */
}

/* Improved styling for the Stereo70 ANCPI display */
.stereo70-ancpi-container .coords-display {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-size: 8px; /* Reduced from 9px to fit more text */
    letter-spacing: -0.2px; /* Add slight letter spacing compression */
    padding: 0px 2px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center content vertically */
    height: 16px; /* Ensure consistent height */
}

/* Add styling specifically for the placeholder text */
.stereo70-ancpi-container .coords-display em {
    font-style: italic;
    color: #888;
    font-size: 7px; /* Smaller size for placeholder */
    line-height: 16px; /* Match container height */
    display: inline-block; /* Ensure proper alignment */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Take full width */
}

/* Ensure the ANCPI container is properly contained */
.stereo70-ancpi-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 16px; /* Fixed height to match the coords display */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

/* Add a special class for accuracy display within coordinates */
.coords-accuracy {
    color: #ff6d00; /* Slightly brighter orange for contrast */
    font-size: 7px; /* Smaller size for accuracy */
    font-weight: normal;
    margin-left: 3px;
    white-space: nowrap;
}

/* Make vertical separators more compact */
.coord-separator {
    margin: 0 1px;
    color: #ff9800;
    opacity: 0.7;
}

/* Button container ultra compact */
.button-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    gap: 2px; /* Reduced from 4px */
    margin: 0;
    height: 100%;
    z-index: 1010 !important; /* Ensure buttons are clickable */
    position: relative; /* Add positioning context */
}

.button-container > div {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* Add positioning context */
    z-index: 1010 !important; /* Ensure buttons are clickable */
}

/* Even smaller buttons */
button {
    height: 14px; /* Reduced from 15px */
    line-height: 12px; /* Reduced from 13px */
    font-size: 7px;
    margin: 0;
    padding: 0 2px;
    border: none;
    border-radius: 3px;
    cursor: pointer !important; /* Force cursor to indicate clickability */
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
    height: 15px;
    line-height: 13px;
    min-width: 20px;
    text-align: center;
    user-select: none;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: auto !important; /* Force pointer events */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
}

.control-bar .control-section button {
    min-width: 22px; /* Reduced from 24px */
    height: 14px; /* Reduced from 16px */
    margin: 0 1px; /* Reduced margin */
    pointer-events: auto !important; /* Ensure clicks register */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
    position: relative; /* Add positioning context */
}

/* Map type buttons ultra compact */
.map-type {
    height: 10px; /* Reduced from 11px */
    line-height: 8px; /* Reduced from 9px */
    font-size: 6px;
}

/* Ultra compact toggle switch */
.switch {
    width: 20px; /* Reduced from 24px */
    height: 8px; /* Reduced from 10px */
    margin-right: 2px; /* Reduced margin */
}

.slider:before {
    height: 6px; /* Reduced from 8px */
    width: 6px; /* Reduced from 8px */
    bottom: 1px; /* Reduced from 2px */
}

input:checked + .slider:before {
    transform: translateX(11px); /* Adjusted for smaller switch */
}

.toggle-label {
    font-size: 7px; /* Reduced from 8px */
}

/* ANCPI toggle section more compact */
.control-section:last-child {
    margin: 0;
    padding: 0;
}

/* Enhance control sections layout */
.control-section {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    margin: 0 1px; /* Reduced from 0 2px */
    flex-wrap: nowrap; /* Prevent wrapping within sections */
    padding: 0;
}

/* Main controls section - even more compact */
.control-section:first-child {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping within first section */
    align-items: center; /* Changed from flex-start to center for vertical alignment */
    gap: 4px; /* Further reduced from 8px */
    height: 100%; /* Match control bar height */
    min-height: 0; /* Remove min-height completely */
    flex: 1; /* Take available space */
    max-width: 75%; /* Limit maximum width */
    position: relative;
    background-color: transparent;
    margin: 0; /* Remove margin */
    padding-top: 0; /* Remove padding */
    margin-bottom: 0; /* Remove margin */
    pointer-events: auto !important;
}

/* Completely hide Grid Shift control section */
.control-section:nth-of-type(2) {
    display: flex !important; /* Override the hiding */
    height: 100%;
}

/* Updated coordinates display container for side-by-side layout */
.coords-display {
    display: flex;
    flex-direction: row;
    align-items: center; /* Better alignment */
    margin-right: 6px; /* Reduced from 10px */
    gap: 2px; /* Reduced from 6px */
    width: 480px; /* Slightly increased from 450px to accommodate accuracy */
    order: 1; /* Display first */
    flex: 0 0 auto; /* Don't grow, don't shrink, use auto width */
    height: 100%;
    pointer-events: auto;
    z-index: 1000;
}

/* Cursor coordinates box */
.coords-box {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* GPS coordinates box - hide completely */
.gps-coords-box {
    display: none !important;
}

/* GPS coordinates box */
.stereo70-ancpi-container {
    position: relative;
    width: 235px; /* Equal width for both boxes */
    flex: 1;
    margin-bottom: 2px; /* Reduced from 4px */
}

/* Common styling for coordinate displays */
.coords-display {
    padding: 0px 3px; /* Reduced from 1px 4px */
    background-color: #f0f0f0;
    border-radius: 2px; /* Reduced from 3px */
    font-family: 'Courier New', monospace; /* Better monospace font */
    font-size: 9px; /* Reduced from 10px */
    text-align: left;
    display: inline-block;
    width: auto;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
    height: 16px; /* Reduced from 20px */
    line-height: 16px; /* Match height */
}

/* Styling for info labels */
.coords-info {
    position: static; /* No longer absolutely positioned */
    font-size: 6px !important;
    color: #666;
    width: auto;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    min-width: 30px; /* Reduced from 50px */
}

/* Improved styling for the Stereo70 ANCPI display */
.stereo70-ancpi-container .coords-display {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-size: 8px; /* Reduced from 9px to fit more text */
    letter-spacing: -0.2px; /* Add slight letter spacing compression */
    padding: 0px 2px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center content vertically */
    height: 16px; /* Ensure consistent height */
}

/* Add styling specifically for the placeholder text */
.stereo70-ancpi-container .coords-display em {
    font-style: italic;
    color: #888;
    font-size: 7px; /* Smaller size for placeholder */
    line-height: 16px; /* Match container height */
    display: inline-block; /* Ensure proper alignment */
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Take full width */
}

/* Ensure the ANCPI container is properly contained */
.stereo70-ancpi-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 16px; /* Fixed height to match the coords display */
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent overflow */
}

/* Add a special class for accuracy display within coordinates */
.coords-accuracy {
    color: #ff6d00; /* Slightly brighter orange for contrast */
    font-size: 7px; /* Smaller size for accuracy */
    font-weight: normal;
    margin-left: 3px;
    white-space: nowrap;
}

/* Make vertical separators more compact */
.coord-separator {
    margin: 0 1px;
    color: #ff9800;
    opacity: 0.7;
}

/* Panel styling */
.panel {
    position: absolute;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 320px;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    max-height: 80vh;
}

.panel.collapsed {
    max-height: 40px;
    opacity: 0.9;
}

.panel-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.panel-content {
    padding: 10px;
    font-size: 14px;
    overflow-y: auto;
    max-height: calc(80vh - 40px);
}

.panel-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

/* Debug panel specific styles */
.debug-panel {
    top: 10px; /* Changed from 80px to 10px to position at the top */
    right: 10px;
    left: auto;
    width: 300px;
    max-width: 90%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1001;
    padding: 0; /* Remove any default padding */
}

.debug-panel .panel-header {
    background-color: #ff9800;
    padding: 10px; /* Ensure maximum padding of 10px */
}

.debug-panel.collapsed {
    width: auto;
    float: right;
}

.debug-panel:not(.collapsed) {
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#debug-info {
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-line;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px; /* Set maximum padding to 10px */
}

/* Button styling */
button {
    padding: 0 2px; /* Further reduced padding */
    margin: 0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
    font-size: 7px; /* Reduced from 8px */
    height: 15px; /* Reduced from 16px */
    line-height: 13px; /* Reduced from 14px */
    min-width: 20px; /* Reduced from 24px */
    text-align: center;
    user-select: none;
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: auto !important; /* Force pointer events */
    z-index: 1020 !important; /* Higher z-index to ensure clickability */
}

button:hover {
    background-color: #f1f3f4;
    border-color: #dadce0;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

button:active {
    background-color: #e8eaed;
    border-color: #dadce0;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

button.info {
    background-color: #4CAF50;
    color: white;
}

button.info:hover {
    background-color: #45a049;
}

button.danger {
    background-color: #f44336;
    color: white;
}

button.danger:hover {
    background-color: #d32f2f;
}

button.secondary {
    background-color: #2196F3;
    color: white;
}

/* Tooltip styles */
button[data-tooltip] {
    overflow: visible;
}

button[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px); /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1101;
}

button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 4px 6px; /* Reduced from 5px 8px */
    border-radius: 4px;
    font-size: 10px; /* Reduced from 11px */
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    width: max-content;
    max-width: 200px;
    z-index: 1100;
}

button[data-tooltip]:hover::before,
button[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

button[data-tooltip]:hover::before {
    bottom: calc(100% - 3px); /* Adjusted from calc(100% - 5px) */
}

/* Coordinate entry button styling */
.coord-entry-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 5px; /* Reduced from 6px */
}

.coord-entry-button .button-icon {
    margin-right: 0;
    font-size: 8px; /* Reduced from 9px */
}

.coord-entry-button .badge {
    position: absolute;
    top: -2px; /* Adjusted from -3px */
    right: -2px; /* Adjusted from -3px */
    background-color: #ff9800;
    color: white;
    border-radius: 50%;
    width: 10px; /* Reduced from 12px */
    height: 10px; /* Reduced from 12px */
    font-size: 6px; /* Reduced from 7px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Map type buttons */
.map-types {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    max-width: 25%; /* Limit width */
    justify-content: flex-end;
    align-items: center; /* Changed from flex-start to center */
    gap: 2px; /* Reduced from 3px */
    height: 100%;
}

.map-type {
    background-color: #ddd;
    border: 1px solid #ccc;
    color: #333;
    padding: 0 1px; /* Reduced from 0 2px */
    font-size: 6px; /* Reduced from 7px */
    height: 10px; /* Reduced from 11px */
    line-height: 8px; /* Reduced from 9px */
    margin: 0; /* Removed margin */
    min-width: auto;
    width: auto;
    white-space: nowrap;
}

/* Ensure map-types buttons don't use the general button min-width */
.control-section.map-types button {
    min-width: 0;
    pointer-events: auto !important;
}

/* Dropdown menu styling */
.map-type-dropdown {
    position: relative;
    display: inline-block;
}

/* Map type dropdown styling */
.map-type-dropdown > .map-type {
    background-color: #e0e0e0; /* Slightly darker background to indicate dropdown */
    position: relative;
}

.map-type-dropdown > .map-type::after {
    content: " ▾";
    font-size: 8px;
    vertical-align: middle;
    color: #555;
}

/* Style for the topo maps dropdown button to make it visually distinct */
#mapTopoMaps {
    border: 1px solid #aaa;
}

#mapTopoMaps.active {
    background-color: #555;
    color: white;
}

/* Historical maps dropdown styling */
#mapHistorical {
    background-color: #e8d8c3; /* Antique paper color to indicate historical maps */
    border: 1px solid #b89b7a;
    color: #5d4037;
}

#mapHistorical.active {
    background-color: #8d6e63;
    color: white;
}

#mapHistorical::after {
    content: " ▾";
    font-size: 8px;
    vertical-align: middle;
    color: #5d4037;
}

.map-type-dropdown .dropdown-content button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Add new class for JavaScript to toggle */
.dropdown-content.show {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3px;
}

.dropdown-item {
    text-align: left;
    width: 100%;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 10px;
    height: auto;
    margin: 0;
}

/* Toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 20px; /* Reduced from 24px */
    height: 8px; /* Reduced from 10px */
    margin-right: 2px; /* Reduced margin */
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 6px; /* Reduced from 8px */
    width: 6px; /* Reduced from 8px */
    left: 2px; /* Adjusted from 3px */
    bottom: 1px; /* Reduced from 2px */
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(11px); /* Adjusted for smaller switch */
}

.toggle-label {
    font-size: 7px; /* Reduced from 8px */
    vertical-align: middle;
}

/* Search control styling */
.leaflet-control-geocoder {
    margin-top: 10px !important;
    margin-left: 10px !important;
    z-index: 999;
}

.leaflet-control-geocoder-form input {
    width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Popup styling */
.leaflet-popup-content {
    font-size: 13px;
    line-height: 1.5;
}

.leaflet-popup-content strong {
    color: #333;
}

/* Coordinate system info dialog */
.info-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.info-dialog.show {
    opacity: 1;
    visibility: visible;
}

.info-dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.info-dialog h4 {
    margin-top: 0;
    color: #2196F3;
    font-size: 16px;
}

.info-dialog ul {
    margin: 10px 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.info-dialog-actions {
    margin-top: 15px;
    text-align: right;
}

/* Form styling */
.form-group { 
    margin-bottom: 10px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 3px; 
}

.form-group input { 
    width: 100%; 
    padding: 5px; 
    box-sizing: border-box; 
}

.button-group button { 
    margin-right: 6px; /* Reduced from 10px */
}

/* Marker styling */
.wgs84-marker { 
    border: 2px solid #27ae60; 
}

.stereo70-marker { 
    border: 2px solid #8e44ad; 
}

/* Remove spinner from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Add styling for coordinate input forms */

/* Form panel styling */
.coord-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    padding: 0;
    display: none;
    overflow: visible; /* Allow close button to be positioned outside */
}

.coord-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.coord-form-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.coord-form-content {
    padding: 20px;
}

.close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px; /* Reduced from 24px */
    height: 20px; /* Reduced from 24px */
    border-radius: 50%;
    background-color: #f44336;
    color: white;
    font-size: 12px; /* Reduced from 14px */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.close-button:hover {
    background-color: #d32f2f;
}

/* Used for the overlay background when forms are open */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

/* Add styles for distance labels and polygon area display */
.vertex-label {
    background-color: #fff;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Ensure vertex labels are always visible */
.vertex-label.visible-vertex {
    z-index: 2000 !important;
    pointer-events: auto !important;
}

/* Style the vertex number for better visibility */
.vertex-number {
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* Make leaflet marker layer always visible */
.leaflet-marker-pane,
.leaflet-vertex-pane {
    z-index: 999 !important;
}

/* Hide the default Leaflet marker shadow for our custom markers */
.leaflet-marker-shadow {
    display: none;
}

/* Button styling update */
#closePolygon {
    background-color: #FF9800;
    color: white;
}

#closePolygon:hover {
    background-color: #F57C00;
}

#closePolygon:disabled {
    background-color: #FFE0B2;
    cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
    .control-bar {
        height: auto; /* Allow height to adjust on mobile */
        padding: 2px 5px; /* Reduced padding */
        flex-wrap: wrap; /* Allow wrapping on mobile */
    }
    
    .control-section {
        margin: 5px 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .control-section:first-child {
        max-width: 100%; /* Full width on mobile */
        order: 1; /* Show first */
        flex-direction: column;
        height: auto;
    }
    
    .map-types {
        max-width: 100%; /* Full width on mobile */
        order: 3; /* Show last */
        margin-top: 5px;
        justify-content: flex-start;
    }
    
    #map {
        height: calc(100vh - 60px); /* Adjusted for potential wrapping */
    }
    
    .panel:not(.debug-panel) {
        width: calc(100% - 20px);
        max-width: none;
        right: 5%;
        left: 5%;
    }
    
    .debug-panel {
        right: 10px;
        left: auto;
        width: auto;
        max-width: 80%;
    }
    
    button {
        margin: 3px;
    }

    .gps-coords-box {
        width: 100%;
        box-sizing: border-box;
        margin: 5px 0;
    }
    
    /* ANCPI toggle section */
    .control-section:last-child {
        order: 2; /* Show in the middle */
    }

    .coords-display-container {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        gap: 4px;
    }
    
    .coords-box, 
    .stereo70-ancpi-container {
        width: 100%;
    }

    .button-container {
        width: 100%;
        justify-content: center;
    }

    .stereo70-ancpi-container {
        height: auto;
        min-height: 16px;
    }
    
    .stereo70-ancpi-container .coords-display {
        height: auto;
        min-height: 16px;
    }
}

/* Modal styling for import coordinates */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 80%;
    max-width: 800px;
    position: relative;
}

.modal-header {
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    color: white;
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #f1f1f1;
}

.modal-body {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.import-controls {
    margin-bottom: 20px;
}

.import-controls textarea {
    width: 100%;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.button-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.apply-row {
    justify-content: flex-end;
    margin-top: 15px;
}

.table-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

#coordinateTable {
    width: 100%;
    border-collapse: collapse;
}

#coordinateTable th, #coordinateTable td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#coordinateTable th {
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
}

#coordinateTable tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

#coordinateTable tbody tr:hover {
    background-color: #f0f0f0;
}

.import-stats {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Add styles for import tabs and DXF import */
.import-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.import-tab {
    background-color: #f0f0f0;
    border: none;
    border-bottom: 2px solid transparent;
    color: #333;
    padding: 8px 15px;
    margin: 0;
    margin-bottom: -2px;
    font-size: 14px;
    cursor: pointer;
}

.import-tab.active {
    background-color: white;
    border-bottom: 2px solid #4CAF50;
    color: #4CAF50;
    font-weight: bold;
}

.dxf-import-container {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.selected-file-name {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    word-break: break-all;
}

/* DXF import additional styling */
.dxf-success-message {
    margin: 10px 0;
    padding: 5px;
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    font-size: 14px;
}

/* Small button styling for settings */
.small-button {
    width: 20px;
    height: 20px;
    padding: 0;
    margin-left: 5px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-button:hover {
    background-color: #e0e0e0;
}

/* Add active mode styling for buttons */
button.active-mode {
    background-color: #ff9800;
    color: white;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
    font-weight: bold;
    border: 1px solid #e68a00;
}

/* Add helper text display for mode */
.mode-indicator {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1500;
    pointer-events: none;
    display: block; /* Changed from 'none' to 'block' to ensure visibility */
    animation: fadeIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Make crosshair cursor more visible in add vertex mode */
body.add-mode {
    cursor: crosshair !important;
}

/* Force vertex markers to be visible across all layers */
.leaflet-marker-pane,
.leaflet-vertex-pane,
.leaflet-pane.verticesPane {
    z-index: 999 !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* Make sure the vertex icon containers are visible */
.leaflet-marker-icon {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Hide the default Leaflet marker shadow but keep markers visible */
.leaflet-marker-shadow {
    display: none;
}

/* Additional styling specifically for vertex persistence */
.vertex-label.persistent-vertex,
.vertex-number.persistent-vertex {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
}

/* Ensure the leaflet pane for vertices is top-level */
.leaflet-pane.verticesPane,
.leaflet-pane.vertices-pane {
    z-index: 9999 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force the marker icons to be visible */
.leaflet-marker-icon.vertex-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

/* Ensure the vertex numbers are always visible with highest priority */
.vertex-number {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: scale(1) !important;
}

/* Prevent any transitions that might interfere with visibility */
.leaflet-marker-icon,
.vertex-number,
.vertex-label {
    transition: none !important;
}

/* Ensure vertices are always visible */
.vertex-label, .visible-vertex {
    pointer-events: auto !important;
    visibility: visible !important;
    display: block !important;
    z-index: 9999 !important;
    opacity: 1 !important;
}

/* Add a subtle shadow to make markers stand out on any background */
.vertex-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 5px 2px rgba(0,0,0,0.5);
    z-index: -1;
}

/* Style for polylines to ensure they're visible */
.leaflet-polylinesPane path {
    stroke-width: 3px;
    stroke-opacity: 0.8;
    pointer-events: auto !important;
    visibility: visible !important;
    display: block !important;
}

/* Make crosshair cursor more visible in add vertex mode */
body.add-mode {
    cursor: crosshair !important;
}

/* Polygon stats overlay */
.polygon-stats-overlay {
    position: fixed;
    bottom: 30px; /* Increased from 20px to be above the control bar */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1500; /* Ensure it's above the control bar (z-index 1000) */
    max-width: 90%;
    width: 320px;
    text-align: center;
    font-size: 16px;
    display: none; /* Hidden by default, shown via JS */
}

.polygon-stats-overlay h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2e7d32;
    font-size: 18px;
}

.polygon-stats-value {
    font-weight: bold;
    font-size: 18px;
    color: #1b5e20;
    margin-bottom: 8px; /* Reduced margin */
    display: block; /* Ensure each stat is on a new line */
}

.stats-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px; /* Larger for easier clicking */
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px; /* Add some padding */
    line-height: 1;
}

.stats-close-btn:hover {
    color: #333;
}

.polygon-stats-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
    margin: 5px;
}

.polygon-stats-btn:hover {
    background-color: #388e3c;
}

.polygon-stats-btn:active {
    transform: scale(0.97);
}

.polygon-stats-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Stakeout button styling */
#stakeoutButton {
    background-color: #9c27b0;
    color: white;
}

/* Position marker styling to ensure the dot is centered */
.position-marker {
    /* remove the full-width/height override */
    width: auto !important;
    height: auto !important;
}

.position-dot {
    width: 12px;
    height: 12px;
    background-color: #2196F3;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001; /* Ensure it's above the accuracy circle */
}

.accuracy-circle {
    z-index: 1000;
    pointer-events: none !important;
}
