body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

body::before {
  content: "Desktop stylesheet active";
  position: fixed;
  bottom: 0;
  left: 0;
  background: green;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  z-index: 9999;
}

.top-right-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}


.user-icon {
    background-color: rgba(51, 51, 51, 0.95);
    color: white;
    border: none;
    padding: 9px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.2s;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    height: 48px;
    box-sizing: border-box;
    overflow: hidden;
}

.user-icon:hover {
    background-color: #555;
}

.user-menu {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hamburger-menu {
    position: relative;
}

.hamburger-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.2s;
}

.hamburger-button:hover {
    background-color: #555;
}

.menu-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #333;
    border-radius: 5px;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: none;
}

.menu-dropdown.show {
    display: block;
}

.menu-link {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.menu-link:hover {
    background-color: #555;
}

.menu-link:first-child {
    border-radius: 5px 5px 0 0;
}

.menu-link:last-child {
    border-radius: 0 0 5px 5px;
}

.toolbar {
    display: flex;
    gap: 10px;
}

.tool {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 9px 15px;
    border-radius: 5px;
    transition: background-color 0.2s;
    background-color: rgba(51, 51, 51, 0.95);
    min-width: 50px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    height: 48px;
    box-sizing: border-box;
    overflow: hidden;
}

.tool:hover {
    background-color: #555;
}

.tool.active {
    background-color: #555;
}

#bridge-section {
    position: relative;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
}

#bridge-canvas {
    position: relative;
    width: auto;
    height: 100%;
    cursor: grab; /* Default to grab, JS will update for lock placement */
}

#navigation-section {
    flex-shrink: 0;
}

#minimap-section {
    position: relative;  /* ADD THIS LINE */
    height: 10vh;
    flex-shrink: 0;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
}

.bridge-container {
    position: absolute;
    height: 100%; /* Match parent #bridge-canvas height so bottom: Xpx works on tiles */
    z-index: 1; /* Below locks */
}

.bridge-tile {
    position: absolute;
    pointer-events: none;
    display: block; /* Removes baseline gap that inline images have */
    /* bottom, left, width, height set dynamically per tile */
}

.placed-object {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10; /* Ensure locks appear above bridge tiles */
    
    /* Subtle backdrop blur - preserves bridge details */
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(2px) brightness(0.7);
    -webkit-backdrop-filter: blur(2px) brightness(0.7);
    border-radius: 50%;
    padding: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* User's own locks - gold glow with border */
.placed-object[data-is-owner="true"] {
    background: rgba(255, 215, 0, 0.15); /* Gold tint */
    border: 2px solid rgba(255, 215, 0, 0.9); /* Gold border */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.6),
        0 0 25px rgba(255, 215, 0, 0.3);
}


.coords {
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: 600;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* START POSITION MARKERS - Comment out this entire section when not needed */
.position-marker {
    position: absolute;
    top: 5px;
    color: #999;
    font-size: 10px;
    font-family: monospace;
    pointer-events: none;
}
/* END POSITION MARKERS */

/* Lock Confirmation Modal */
.lock-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: transparent;
    pointer-events: none;
}

.lock-modal-backdrop * {
    pointer-events: auto;
}

.lock-modal-content {
    position: fixed;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    border: 2px solid #333;
    z-index: 2001;
}

.lock-modal-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.lock-modal-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-option {
    font-size: 13px;
    color: #333;
    cursor: pointer;
    padding: 3px 8px;
    transition: all 0.2s;
}

.modal-option:hover {
    color: #000;
    font-weight: bold;
    transform: scale(1.1);
}


/* User Stats Display */
.user-stats {
    background-color: rgba(51, 51, 51, 0.95);
    border-radius: 5px;
    /*padding: 8px 9px 10px 9px;*/
	padding: 7px 9px 11px 9px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    font-size: 9px;
    color: white;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
    min-width: 100px;
    height: 48px;
    box-sizing: border-box;
    overflow: hidden;
	
}

.user-stats .stat-label {
    color: #aaa;
    font-weight: normal;
}

.user-stats .stat-value {
    color: white;
    font-weight: bold;
}

/* Minimap Canvas */
#minimap-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

/* Minimap Controls */
#minimap-controls {
    position: absolute;
    bottom: 100%; /* Position at the top edge of parent */
    margin-bottom: 10px; /* Add 10px spacing above minimap */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1001; /* Above minimap but below top menu */
}

.minimap-nav-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.minimap-nav-btn:hover:not(:disabled) {
    background-color: #555;
}

.minimap-nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

#minimap-page-indicator {
    font-size: 12px;
    color: #333;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

#current-bridge-name {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    color: #333;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

/* Date text in heart modal */
.heart-date-text {
    position: absolute;
    left: calc(50% + 0px);
    top: calc(50% + 35px);
    font-size: 10pt;
    color: black;
    font-weight: normal;
    white-space: nowrap;
    transform-origin: 0 0;
    transform: rotate(-45deg);
    z-index: 5;
}