body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a1a;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    background: #2a2a2a;
}

.toolbar {
    width: 70px;
    background: #1e1e1e;
    border-right: 1px solid #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a #1e1e1e;
}

.toolbar::-webkit-scrollbar {
    width: 6px;
}

.toolbar::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.toolbar::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.toolbar::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.toolbar h1 {
    display: none;
}

.tool-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.tool-section:last-child {
    border-bottom: none;
}

.tool-section h3 {
    display: none;
}

.tool-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.tool-btn:hover {
    background: #3a3a3a;
}

.tool-btn.active {
    background: #0a84ff;
}

#colorPicker {
    width: 50px;
    height: 50px;
    border: 3px solid #3a3a3a;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.color-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
}

.color-preset {
    width: 22px;
    height: 22px;
    cursor: pointer;
    border: 2px solid #3a3a3a;
    border-radius: 4px;
}

.color-preset:hover {
    border-color: #0a84ff;
}

#brushSize {
    width: 50px;
    height: 80px;
    writing-mode: bt-lr;
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
}

#sizeValue {
    font-size: 10px;
    color: #999;
    text-align: center;
}

.action-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    border-radius: 8px;
}

.action-btn:hover {
    background: #3a3a3a;
}

#saveBtn {
    background: #0a84ff;
}

#saveBtn:hover {
    background: #0066cc;
}

#clearBtn {
    background: #2a2a2a;
}

.canvas-container {
    flex: 1;
    background: #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#canvas {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
}