* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #333;
    font-family: Arial, sans-serif;
    overflow: hidden;
    color: white;
}

.container {
    display: flex;
    height: 100vh;
}

#toolbar {
    background-color: #444;
    width: 60px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
}

#properties {
    background-color: #444;
    width: 250px;
    padding: 10px;
}

#canvas-container {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background-color: #666;
}

.canvas-wrapper {
    position: relative;
    margin: 20px;
}

.layer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border: 1px solid #555;
}

.tool-btn {
    width: 40px;
    height: 40px;
    background-color: #555;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tool-btn:hover {
    background-color: #666;
}

.tool-btn.active {
    background-color: #666;
    border: 2px solid #fff;
}

.property-group {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #555;
    border-radius: 4px;
}

.property-title {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    width: 150px;
    height: 20px;
}

input[type="color"] {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#layers-panel {
    background-color: #444;
    width: 200px;
    padding: 10px;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #555;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.layer-item.active {
    background: #666;
    border: 1px solid #fff;
}

.layer-item input[type="checkbox"] {
    margin-right: 8px;
}

.layer-controls {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.layer-controls button {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

#brush-preview {
    background-color: white;
    border-radius: 4px;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #333;
}

.color-swatch:hover {
    border-color: white;
}

#text-input {
    position: absolute;
    background: transparent;
    border: 1px solid #fff;
    color: black;
    padding: 5px;
    font-family: Arial;
    display: none;
}

#shape-container {
    position: absolute;
    background: #444;
    padding: 10px;
    border-radius: 4px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

#shape-container button {
    width: 40px;
    height: 40px;
}

.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #444;
    padding: 5px 10px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.cursor-position {
    color: #fff;
}