.doodle-section {
    padding: var(--nav-height) 0 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.doodle-section .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.doodle-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    overflow: hidden;
}

.doodle-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-soft);
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toolbar-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.toolbar-buttons {
    display: flex;
    gap: 4px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
}

.tool-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.tool-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0edff;
}

.toolbar-divider {
    width: 1px;
    height: 40px;
    background: #ddd;
    align-self: flex-end;
    margin-bottom: 2px;
}

.color-palette {
    display: flex;
    align-items: center;
    gap: 4px;
}

.color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-btn:hover {
    transform: scale(1.2);
}

.color-btn.active {
    border-color: var(--text);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text);
}

.color-picker {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background: none;
    -webkit-appearance: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: 2px solid #ddd;
    border-radius: 50%;
}

.size-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.size-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
}

.size-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
}

.size-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 20px;
    text-align: center;
}

.brush-preview {
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
}

.canvas-container {
    position: relative;
    cursor: crosshair;
    background: #fff;
    flex: 1;
    min-height: 0;
}

.canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .doodle-toolbar {
        padding: 10px 12px;
        gap: 10px;
    }

    .toolbar-divider {
        display: none;
    }

    .size-slider {
        width: 60px;
    }
}
