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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f6;
}

#root {
    padding: 10px;
}

#main-container {
    display: flex;
    gap: 10px;
}

#canvas-section {
    width: 100%;
    transition: width 0.3s ease;
}

#canvas-container {
    position: relative;
    display: inline-block;
    border: 2px solid #ddd;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#background-image {
    display: block;
    max-width: 100%;
    height: auto;
}

#drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

#controls {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}

#instructions {
    margin-top: 5px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

#properties-panel {
    width: 300px;
    background: white;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 10px;
}

#properties-panel h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f2f6;
    padding-bottom: 8px;
}

.property-group {
    margin-bottom: 15px;
}

.property-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.property-group input,
.property-group select,
.property-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.property-group input[readonly] {
    background: #f8f9fa;
    color: #666;
}

.property-group textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    padding: 8px 16px;
    background: #0e1117;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

button:hover:not(:disabled) {
    background: #262730;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#save-properties {
    width: 100%;
    background: #4CAF50;
}

#save-properties:hover {
    background: #45a049;
}

#debug-info {
    padding: 4px 8px;
    background: #f3e5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #7b1fa2;
    margin-left: auto;
}