* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Menu Bar */
.menu-bar {
    background-color: #502424;
    border-bottom: 2px solid #6B3131;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    z-index: 1000;
    box-shadow: 0 2px 10px #6B3131;
}

.menu-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-section h2 {
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    color: #fff;
}

.color-picker {
    display: flex;
    gap: 8px;
}

.color-btn {
    width: 35px;
    height: 35px;
    border: 3px solid #6B3131;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px #6B3131;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

.action-btn {
    padding: 8px 16px;
    background-color: #6B3131;
    color: #fff;
    border: 1px solid #6B3131;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #555;
}

.action-btn:active {
    background-color: #333;
}

.menu-section label {
    font-size: 13px;
    color: #ccc;
}

.menu-section input {
    padding: 4px 8px;
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 4px;
    font-size: 13px;
}

.file-input-label {
    padding: 8px 16px;
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
    display: inline-block;
}

.file-input-label:hover {
    background-color: #555;
}

#zoom-level {
    font-size: 13px;
    color: #ccc;
    margin-left: 5px;
    min-width: 50px;
    display: inline-block;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #140A17;
    cursor: grab;
}

.map-container.grabbing {
    cursor: grabbing;
}

.map-wrapper {
    position: absolute;
    transform-origin: 0 0;
}

.map-image {
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.markers-layer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 4px currentColor;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.marker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    pointer-events: none;
}

.marker.icon-marker {
    width: 24px;
    height: 24px;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.marker:hover {
    transform: scale(1.3);
    z-index: 20;
}

.marker.selected {
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 8px currentColor;
    transform: scale(1.4);
}

.static-marker {
    border-width: 3px;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 6px currentColor;
}

.static-marker:hover {
    z-index: 20;
}

.player-marker {
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    animation: playerPulse 2s infinite;
}

@keyframes playerPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 255, 0, 1);
    }
}

/* Scrollbar Styling */
.map-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.map-container::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.map-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 6px;
}

.map-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.coordinate-display {
    position: fixed;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    z-index: 10000;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

