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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.map-canvas-container {
    width: 100%;
    height: 600px;
    overflow: auto;
    position: relative;
    background-color: #333;
}

#mapCanvas {
    position: absolute;
    background-color: #222;
}

.tile-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.tile {
    width: 60px;
    height: 60px;
    background-color: #ddd;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    position: relative;
}

.tile.selected {
    border-color: #2196F3;
    background-color: #e3f2fd;
}

.tile-id {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
}

h2 {
    margin-bottom: 15px;
    color: #333;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"], 
input[type="file"],
button {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #45a049;
}

.control-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.player-points {
    margin-top: 15px;
}

.player-point {
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
}

.tool-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tool-buttons button {
    flex: 1;
}

.export-section {
    margin-top: 20px;
}

.debug-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.toolbar {
    padding: 10px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.zoom-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-controls button {
    margin: 0;
    width: auto;
    padding: 5px 10px;
}

.selected-tile-info {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    border-radius: 0 0 0 4px;
}

.view-options {
    margin-bottom: 15px;
}

.view-options label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

.map-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}