body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.toolbar {
    height: 60px;
    background-color: #34495e;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.group {
    display: flex;
    gap: 10px;
    margin-right: 30px;
    align-items: center;
}

.group.right {
    margin-left: auto;
    margin-right: 0;
}

button,
.button {
    background-color: #ecf0f1;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
    transition: all 0.2s;
    font-size: 14px;
    display: inline-block;
}

button:hover,
.button:hover {
    background-color: #bdc3c7;
}

button.active {
    background-color: #3498db;
    color: white;
}

button.primary-btn {
    background-color: #27ae60;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
}

.upload-btn {
    background-color: #e67e22;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 14px;
    display: inline-block;
}

.upload-btn:hover {
    background-color: #d35400;
}

/* Workspace & Canvas */
#workspace {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas-container {
    position: relative;
    display: inline-block;
    transform-origin: center center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#mapImage {
    display: block;
    max-width: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

#drawLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* SVG Shapes */
.shape {
    fill: rgba(0, 0, 0, 0.5);
    stroke: #e74c3c;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    cursor: move;
}

.shape:hover {
    fill: rgba(0, 0, 0, 0.7);
    stroke: #c0392b;
}

.shape.selected {
    /* "Move Zone" style - just highlighted red */
    stroke: #c0392b;
    stroke-width: 3;
}

.shape.editing {
    /* "Edit Zone" style - yellow dotted */
    stroke: #f1c40f;
    stroke-width: 2;
    stroke-dasharray: 5;
}

.poly-handle,
.edit-handle {
    vector-effect: non-scaling-stroke;
    fill: #f1c40f;
    stroke: #000;
    stroke-width: 1px;
    cursor: move;
}

.rotate-handle {
    vector-effect: non-scaling-stroke;
    cursor: grab;
}

.rotate-handle:active {
    cursor: grabbing;
}

#placeholder-text {
    font-size: 24px;
    color: #ecf0f1;
    text-align: center;
    opacity: 0.7;
    position: absolute;
    pointer-events: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    color: #2c3e50;
}

.modal ul {
    line-height: 1.6;
}