/* ========== Zeichnungen Panel ========== */
#draw-panel {
    position: absolute;
    right: 8px;
    width: 320px;
    max-height: 300px;
    background: rgba(22, 33, 62, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    z-index: 89;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
}

#draw-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    font-size: 14px;
    color: #ddd;
}

#draw-panel .panel-header button {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 12px;
}

#draw-list {
    overflow-y: auto;
    padding: 6px;
    flex: 1;
}

.draw-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin: 2px 0;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    gap: 6px;
    transition: background 0.2s;
}
.draw-item:hover {
    background: rgba(0,200,120,0.15);
}

.draw-item .d-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.draw-item .d-nr {
    color: #888; font-size: 11px; min-width: 22px;
}
.draw-item .d-icon {
    font-size: 13px; min-width: 16px; color: #7b52ab;
}
.draw-item .d-name {
    flex: 1; font-size: 12px; color: #ddd;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}
.draw-item .d-actions {
    display: flex; gap: 3px; flex-shrink: 0;
}
.draw-item .d-actions button {
    background: none; border: none;
    color: #888; cursor: pointer;
    font-size: 13px; padding: 2px 3px;
    border-radius: 3px;
}
.draw-item .d-actions button:hover {
    color: #00c878;
    background: rgba(0, 200, 120, 0.15);
}

#draw-list:empty::after {
    content: 'Keine Zeichnungen vorhanden';
    display: block;
    text-align: center;
    color: #555;
    padding: 20px 10px;
    font-size: 12px;
}

/* Zeichnung abschliessen Button */
#btn-finish-draw {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 10px 28px;
    background: rgba(0, 200, 120, 0.9);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
